Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
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?
Do you see anything in nagios.log when these events come in? It sounds like a passive service hasn't been configured and it will say as much in this log if this is the case. See https://assets.nagios.com/downloads/nag ... hecks.html.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
I don't see any error in nagios.log. I see the trap being handled and send the "PROCESS_SERVICE_CHECK_RESULT" to nagios.cmd properly. However its not being processed. Also I noticed nagios creates zombie/defunct process whenever any command being written to nagios.cmd file externally. Not sure where to check for this.
I found the issue. The "nagios.cmd" file was not created a "pipe" file rather a regular one. This is due to my eventhandler script which keep writing file to nagios.cmd.
Here is what i did to fix incase anyone is interested.
Wait for nagios.cmd to create itself as a pipe file
Then start snmptrapd and snmptt (make sure the event handler script is just appending (>>) command to nagios.cmd )