Page 1 of 1
SNMP TRAP PROBLEM
Posted: Tue May 05, 2015 9:00 am
by zzbouabsa
Hello
in have problem with nagiosxi , I am not receving notifications
I triied to debug and I found this errors in
/usr/local/nagios/var/nagios.log
Code: Select all
[1430831132] Warning: Passive check result was received for service 'TRAP' on host '192.168.150.206', but the service could not be found!
[1430831132] Error: External command failed -> PROCESS_SERVICE_CHECK_RESULT;192.168.150.206;TRAP;1;18 down down 18 (null)
[1430831132] External command error: Command failed
can any one have the solution to this
SNMP-TRAP is configured for the host in the web interface
Best Regards
Re: SNMP TRAP PROBLEM
Posted: Tue May 05, 2015 9:05 am
by ssax
Most likely the entry in your /etc/snmp/snmptt.conf file for the service says "TRAP" instead of of the actual service name, do you see it under Admin > Monitoring Config > Unconfigured Objects?
If so, you can either change TRAP to the actual service name in /etc/snmp/snmptt.conf or you can just configure the service with the new name so it matches.
Re: SNMP TRAP PROBLEM
Posted: Wed May 06, 2015 2:44 am
by zzbouabsa
I fixed the problem I add this line in /etc/snmp/snmptt.conf
Code: Select all
EVENT linkDown .1.3.6.1.6.3.1.1.5.3 "Status Events" Critical
FORMAT Link down on interface $1. Admin state: $2. Operational state: $3
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "" "Link up on interface $1. Admin state: $2. Operational state: $3"
SDESC
A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus.
EDESC
this scrit sends notification to the nagiosxi , it cant work without this
Code: Select all
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "" "Link up on interface $1. Admin state: $2. Operational state: $3"
IP address = "$r"
Service name = "SNMP Traps"
Critical = "$s"
Time = "$@"
""
"Link up on interface $1. Admin state: $2. Operational state: $3"
hope that can halp others
Re: SNMP TRAP PROBLEM
Posted: Wed May 06, 2015 9:35 am
by tmcdonald
Just for the record, some of that info is covered in our SNMP Traps doc:
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf