Page 1 of 1

Nagios Passive check received but service not found

Posted: Tue Jun 03, 2014 1:33 pm
by VarunJK
Hi,
I did an interface trap test by bringing down eth4 of a server. I am receiving the snap traps and I also see nagios receiving passive check result but it could not find the service. When I bring the eth4 up, I see the traps received and I also see nagios able to find the network interface up service.

Logs of eth4 down-
Nagios logs-
[1401817600] Warning: Passive check result was received for service 'Status Events' on host 'cc38-t1-pcmm01a.sys.comcast.net', but the service could not be found!

SNMPTT logs-
Agent IP address (10.253.125.138) resolved to: cc38-t1-pcmm01a.sys.comcast.net
Trap received from cc38-t1-pcmm01b.hsi.cc38.ula.comcast.net: .1.3.6.1.4.1.21274.1.999.4.5
Value 0: cc38-t1-pcmm01b.hsi.cc38.ula.comcast.net
Agent dns name: cc38-t1-pcmm01a.sys.comcast.net
.1.3.6.1.4.1.21274.1.999.4.5 CRITICAL "Network Interface Down" cc38-t1-pcmm01a.sys.comcast.net - 1 3cd92bece64c (slave) warning eth4 bond1 appIf1
EXEC command:/data/nagios/snmptt/bin/submit_check_result "cc38-t1-pcmm01a.sys.comcast.net" "Network Interface Down" CRITICAL "1 3cd92bece64c (slave) warning eth4 bond1 appIf1" "1 3cd92bece64c (slave) warning eth4 bond1 appIf1”

Logs for eth4 up-
Nagios log-
[1401818305] PASSIVE SERVICE CHECK: cc38-t1-pcmm01a.sys.comcast.net;Network Interface Up;0;1 3cd92bece64c (slave) warning eth4 bond1 appIf1

SNMPTT logs-
Agent IP address (10.253.125.138) resolved to: cc38-t1-pcmm01a.sys.comcast.net
Trap received from cc38-t1-pcmm01b.hsi.cc38.ula.comcast.net: .1.3.6.1.4.1.21274.1.999.4.6
Value 0: cc38-t1-pcmm01b.hsi.cc38.ula.comcast.net
Agent dns name: cc38-t1-pcmm01a.sys.comcast.net
.1.3.6.1.4.1.21274.1.999.4.6 Ok "Network Interface Up" cc38-t1-pcmm01a.sys.comcast.net - 1 3cd92bece64c (slave) warning eth4 bond1 appIf1
EXEC command:/data/nagios/snmptt/bin/submit_check_result "cc38-t1-pcmm01a.sys.comcast.net" "Network Interface Up" Ok "1 3cd92bece64c (slave) warning eth4 bond1 appIf1" "1 3cd92bece64c (slave) warning eth4 bond1 appIf1"

I have defined my passive services for both interface up and down-

define service {
use pcmm-passive-base
service_description Network Interface Down
}

define service {
use pcmm-passive-base
service_description Network Interface Up
}

and I also have the snmptt.conf file having the traps with OID for both interface up and interface down.

Please help what am I missing? Why is nagios not detecting network interface down service?

Re: Nagios Passive check received but service not found

Posted: Wed Jun 04, 2014 11:15 am
by slansing
You will need to configure your services properly to display and hook in with those traps, have you taken a look at a guide such as this one?:

http://askaralikhan.blogspot.com/2010/1 ... agios.html