Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

little warning on line 29, fixed #8

Closed
riccardospeggiorin-centropaghe opened this issue Sep 9, 2021 · 1 comment
Closed

little warning on line 29, fixed #8

riccardospeggiorin-centropaghe opened this issue Sep 9, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@riccardospeggiorin-centropaghe

I was taking a look at the notify log and notice this warning/error:

check_mk_telegram-notify.sh: line 29: [: =: unary operator expected

Line 29 is this:
if [ ${NOTIFY_PARAMETER_3} = "privacy" ]; then

I fix it with (like you did on line 63):
if [[ ${NOTIFY_PARAMETER_3} == "privacy" ]]; then

hope it helps.
bye

@filipnet filipnet added the bug Something isn't working label Sep 9, 2021
@filipnet
Copy link
Owner

filipnet commented Sep 9, 2021

Thank you for this information and especially directly the solution for this. I just modified the code and made a reference to the notify.log in the "troubleshooting" chapter.

@filipnet filipnet closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants