Page 1 of 1

TRAP SNMP Dont show information in nagios

Posted: Thu Nov 02, 2017 10:12 am
by rjjimenez
Hello.

I am trying to monitor an f5 device with SNMP traps, nagios receives the traps correctly but when verifying in nagios "Unconfigured Objects" the description that shows is the one that is attached in the screenshot: "TRAP"
unnamed.png
Data received:

- TRAP:
2017-10-04 16:30:56 UDP: [192.168.247.223]:56799 [UDP: [192.168.247.223]:56799]:
.1.3.6.1.2.1.1.3.0 = Timeticks: (672039652) 77 days, 18:46:36.52 .1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.4.1.3375.2.4.0.141 .1.3.6.1.4.1.3375.2.4.1.1 = STRING: "Standby for traffic group /Common/DESARROLLO." .1.3.6.1.6.3.1.1.4.3.0 = OID: .1.3.6.1.4.1.3375.2.4

- snmtpp.conf:

EVENT bigipTrafficGroupStandby .1.3.6.1.4.1.3375.2.4.0.141 "Status Events" Normal
FORMAT A traffic group is going into standby mode on the system. $*
EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result $aR TRAP 1 "$*" "A traffic group is going into standby mode on the system. $*"
SDESC
A traffic group is going into standby mode on the system.
Variables:
1: bigipNotifyObjMsg
EDESC
#
#
#

I also attach the mib file that contains the OID corresponding to this TRAP:

Re: TRAP SNMP Dont show information in nagios

Posted: Thu Nov 02, 2017 3:52 pm
by npolovenko
Hello, @rjjimenez.

Did you upload the MIb file in Nagios XI with checked box "Process trap"?

Also, it seems like you used a Nagios Core template to define EXEC command?
EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result $aR TRAP 1 "$*" "A traffic group is going into standby mode on the system. $*"
In XI should be:
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "The SNMP trap that is generated as a result of an event with the service $*"

I highly suggest taking a look at this article: https://support.nagios.com/kb/article/n ... orial.html
Especially at everything after the section called Sending Traps To Nagios XI .
Data received:

- TRAP:
2017-10-04 16:30:56 UDP: [192.168.247.223]:56799 [UDP: [192.168.247.223]:56799]:
.1.3.6.1.2.1.1.3.0 = Timeticks: (672039652) 77 days, 18:46:36.52 .1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.4.1.3375.2.4.0.141 .1.3.6.1.4.1.3375.2.4.1.1 = STRING: "Standby for traffic group /Common/DESARROLLO." .1.3.6.1.6.3.1.1.4.3.0 = OID: .1.3.6.1.4.1.3375.2.4
Is that the output in XI GUI service check or was it in the log file?
Your output doesn't match the template defined /etc/snmp/snmptt.conf file. Can you upload the whole snmptt.conf file here?