Nagios Event Handler script not working
Posted: Mon Feb 14, 2022 1:56 am
Hi Nagios Support,
I created an event handler script, to write into a log file every time a service hits critical hard state. I've defined the command of the event handler as shown in the nagios documentation for event handler. However, I'm using the standard macros that already available in nagios. The issue is when event handler is unable to complete and nothing is written in the log file. when i tried to run the script in the backend by manually inputting the variables then it is able to write the output to the log file. attaching the event handler script as well.
I created an event handler script, to write into a log file every time a service hits critical hard state. I've defined the command of the event handler as shown in the nagios documentation for event handler. However, I'm using the standard macros that already available in nagios. The issue is when event handler is unable to complete and nothing is written in the log file. when i tried to run the script in the backend by manually inputting the variables then it is able to write the output to the log file. attaching the event handler script as well.