I think the problem is not related to Nagios but to the machine, even if I not able to know what is the root cause.
As the problem is solved by using the following code for event handler script, we can consider that as solved
Code: Select all
#!/bin/sh
/bin/echo "[$(date +%s)] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$3;$4" >> /app/monitor/MASTER1/var/rw/nagios.cmd
# end of code