filipnet / checkmk-telegram-notify

Get alerted by Check_MK via Telegram bash script
https://www.filipnet.de/checkmk-telegram-notify
BSD 3-Clause "New" or "Revised" License
58 stars 27 forks source link

Store any errors somewhere #16

Closed Commifreak closed 3 months ago

Commifreak commented 6 months ago

I noticed spooler failed notifications because the script was unable to send any message.

I see that the script echoes some messages as well as the telegram reponse to stderr. Where is this then being recognized?

If no where, I would suggest that the script redirects any error to a log inside the site's tmp folder..?

Elompenta commented 3 months ago

@Commifreak You can get the error output from "/omd/sites/{sitename}/var/log/notify.log"

filipnet commented 3 months ago

This is also described in the "troubleshooting" chapter, so there is no problem in the code.