Page 1 of 1

SNMP Trap results not in passive check "SNMP Traps"

Posted: Thu Mar 03, 2022 10:39 am
by BR_Nagios
Hello Support,

we try to monitor a device through it's snmp traps. we installed the mib's in Nagios XI (latest version) in "Manage MIBs" with "Process traps" checked. All the Traps are imported and we can see them in "Defined Traps" in "SNMP Trap Interface". We added the device as a new host with a passive check. The passive Check was added using the "SNMP Trap"-Wizard (we followed the instructions from this document: https://assets.nagios.com/downloads/nag ... h-NXTI.pdf)
What we expected is, that all SNMP Traps would result in a Notification generated by the passive Check "SNMP Traps". We see a lot of Traps in "Received Traps" in "SNMP Trap Interface" from the device, in the passive Service noting is shown, there is always "Wating for trap..." as Status Information.
are there any additional things that need to be done to make this work?

Best Regards
Reinhold Krinninger

Re: SNMP Trap results not in passive check "SNMP Traps"

Posted: Thu Mar 03, 2022 5:38 pm
by tgriep
Try this
Login to XI and go to the Admin > Unconfigured Objects menu and see if the Trap is there. If so, configure it so the system will automatically receive the traps the next time it is received.

If DNS is not setup, the trap would show up in the Unconfigured Objects as the IP address and if that does not match what you setup with the wizard if you used a Hostname, then it will not show up in XI as the IP address does not match the hostname.

If it is not in the Unconfigured Objects menu, we would need to see the SNMP configuration files and the MIB files from the server so can you run the following 3 commands as root in the Nagios XI server.

Code: Select all

tar cvfz /tmp/snmp.tgz /etc/snmp/*
tar cvfz /tmp/sharesnmp.tgz /usr/share/snmp/mibs/* --dereference
tar cvfz /tmp/snmplog.tgz /var/log/snmptt/*
Then post these 3 files so we can check the settings and the MIB files for any errors.

Code: Select all

/tmp/snmp.tgz
/tmp/sharesnmp.tgz
/tmp/snmplog.tgz
Thank you.

Re: SNMP Trap results not in passive check "SNMP Traps"

Posted: Wed Mar 09, 2022 9:39 am
by BR_Nagios
Hello,

thanks for the hint. The Traps were in "unconfigured Objects". I updated the host configuration, now the Traps are visible in the "SNMP Traps"-Service. Many Thanks for your help.

Best Regards
Reinhold Krinninger

Re: SNMP Trap results not in passive check "SNMP Traps"

Posted: Thu Mar 10, 2022 11:29 am
by tgriep
Your welcome, glad it is all working now.