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"
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:
TRAP SNMP Dont show information in nagios
TRAP SNMP Dont show information in nagios
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: TRAP SNMP Dont show information in nagios
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/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 .
Your output doesn't match the template defined /etc/snmp/snmptt.conf file. Can you upload the whole snmptt.conf file here?
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?
In XI should be:EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result $aR TRAP 1 "$*" "A traffic group is going into standby mode on the system. $*"
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 .
Is that the output in XI GUI service check or was it in the log file?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
Your output doesn't match the template defined /etc/snmp/snmptt.conf file. Can you upload the whole snmptt.conf file here?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.