External command to nagios.cmd not working
Posted: Sun Jan 27, 2019 1:38 pm
Hello Folks,
I have installed Nagios core version 4.2.4 and running nagiosql version 3.4.0.
I have configured hosts with active checks and see them working fine. However for the passive (snmp trap) i see the trap goes into eventhandler (submit_check_ then to the nagios.cmd however, I dont see any change in the service status. I tried manually but no luck. Any idea what could be causing this?
[/code]
I have installed Nagios core version 4.2.4 and running nagiosql version 3.4.0.
I have configured hosts with active checks and see them working fine. However for the passive (snmp trap) i see the trap goes into eventhandler (submit_check_ then to the nagios.cmd however, I dont see any change in the service status. I tried manually but no luck. Any idea what could be causing this?
Code: Select all
[code]echo "[`date +%s`] PROCESS_SERVICE_CHECK_RESULT;<IP>;AU_COMM_LOST-Trap;2;"Critical"" >> /usr/local/nagios/var/rw/nagios.cmdCode: Select all
drwxrwsr-x 2 nagios nagcmd 50 Jan 27 18:21 rw
Code: Select all
[root@nagios-core-4 rw]# ls -lh
total 512K
srw-rw---- 1 nagios nagcmd 0 Jan 27 18:21 live
-rw-rw-r-- 1 root nagcmd 322K Jan 27 18:37 nagios.cmd
srw-rw---- 1 nagios nagcmd 0 Jan 27 18:21 nagios.qh