SNMP TRAP PROBLEM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zzbouabsa
Posts: 7
Joined: Wed Apr 22, 2015 8:33 am

SNMP TRAP PROBLEM

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP TRAP PROBLEM

Post 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.
zzbouabsa
Posts: 7
Joined: Wed Apr 22, 2015 8:33 am

Re: SNMP TRAP PROBLEM

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: SNMP TRAP PROBLEM

Post 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
Former Nagios employee
Locked