Page 2 of 2
Re: SNMP trap not coming for new device in nagios
Posted: Tue Oct 29, 2019 1:55 pm
by mbellerue
Okay the files and permissions look correct. In Nagios XI, can you go to Admin -> SNMP Trap Interface. Are there any traps showing up under Received Traps for this Windows machine?
If you run cat /usr/local/nagiosxi/var/corelog.newobjects do you see traps from the Windows machine?
Re: SNMP trap not coming for new device in nagios
Posted: Wed Oct 30, 2019 9:55 am
by mejokj
Hi Team,
We are using the standard nagios version, so there is nothing we can see under Admin/SNMP Trap Interface.
Please see the requested output below.
[root@nagios ~]# cat /usr/local/nagiosxi/var/corelog.newobjects
a:1:{s:8:"somehost";a:2:{s:9:"last_seen";i:1569520582;s:8:"services";a:1:{s:11:"someservice";i:1569520582;}}}
[root@nagios ~]#
Thanks
Re: SNMP trap not coming for new device in nagios
Posted: Wed Oct 30, 2019 2:43 pm
by mbellerue
All of that seems correct. Can you try removing and re-creating the SNMP trap service for that host and see if it picks up the trap?
Re: SNMP trap not coming for new device in nagios
Posted: Thu Oct 31, 2019 8:42 am
by mejokj
OK will try and let you know
Re: SNMP trap not coming for new device in nagios
Posted: Thu Oct 31, 2019 1:38 pm
by mbellerue
Okay, we will keep this thread open and wait to hear back.
Re: SNMP trap not coming for new device in nagios
Posted: Tue Nov 12, 2019 9:56 am
by mejokj
Hi Team,
Still we didn't get any trap in nagios for this device.
Thanks
Re: SNMP trap not coming for new device in nagios
Posted: Tue Nov 12, 2019 2:54 pm
by mbellerue
What if you go to Admin -> Monitoring Config -> Unconfigured Objects
Do you see any objects there?
Re: SNMP trap not coming for new device in nagios
Posted: Tue Nov 12, 2019 2:55 pm
by ssax
What do you have set for
Admin > Unconfigured Objects > Auto Configure Settings? (please attach a screenshot).
What about for
Admin > Performance Settings > Subsystem > Enable Listener For Unconfigured Objects?
See anything in
Code: Select all
/usr/local/nagiosxi/var/feedproc.log
Does this output any errors?
Code: Select all
su - nagios
/usr/bin/php /usr/local/nagiosxi/cron/feedproc.php
Re: SNMP trap not coming for new device in nagios
Posted: Wed Nov 13, 2019 12:38 am
by mejokj
Hi Team,
I have attached the requested details.
What about for Admin > Performance Settings > Subsystem > Enable Listener For Unconfigured Objects?
yes it is enabled
CODE: SELECT ALL
cat /etc/cron.d/nagiosxi
attached the details
See anything in
CODE: SELECT ALL
/usr/local/nagiosxi/var/feedproc.log
attached in logs.txt
Does this output any errors?
CODE: SELECT ALL
su - nagios
/usr/bin/php /usr/local/nagiosxi/cron/feedproc.php
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (SNMP-FRAMEWORK-MIB): At line 11 in /usr/share/snmp/mibs/MTA-MIB.txt
Cannot find module (SNMP-FRAMEWORK-MIB): At line 11 in /usr/share/snmp/mibs/NETWORK-SERVICES-MIB.txt
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NETWORK-SERVICES-MIB.txt)
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/MTA-MIB.txt)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 11 in /usr/share/snmp/mibs/NOTIFICATION-LOG-MIB.txt
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NOTIFICATION-LOG-MIB.txt)
Did not find 'SnmpEngineID' in module #-1 (/usr/share/snmp/mibs/NOTIFICATION-LOG-MIB.txt)
Cannot find module (SNMP-TARGET-MIB): At line 15 in /usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt
Cannot find module (SNMP-FRAMEWORK-MIB): At line 16 in /usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt
Did not find 'SnmpTagValue' in module #-1 (/usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt)
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 16 in /usr/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 12 in /usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt)
Did not find 'SnmpEngineID' in module #-1 (/usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt)
Did not find 'snmpAuthProtocols' in module #-1 (/usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt)
Did not find 'snmpPrivProtocols' in module #-1 (/usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt)
Unlinked OID in SNMP-USER-BASED-SM-MIB: usmHMACSHAAuthProtocol ::= { snmpAuthProtocols 3 }
Undefined identifier: snmpAuthProtocols near line 103 of /usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt
Unlinked OID in SNMP-USER-BASED-SM-MIB: usmHMACMD5AuthProtocol ::= { snmpAuthProtocols 2 }
Undefined identifier: snmpAuthProtocols near line 93 of /usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt
Unlinked OID in SNMP-USER-BASED-SM-MIB: usmNoAuthProtocol ::= { snmpAuthProtocols 1 }
Undefined identifier: snmpAuthProtocols near line 88 of /usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt
Unlinked OID in SNMP-USER-BASED-SM-MIB: usmDESPrivProtocol ::= { snmpPrivProtocols 2 }
Undefined identifier: snmpPrivProtocols near line 118 of /usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt
Unlinked OID in SNMP-USER-BASED-SM-MIB: usmNoPrivProtocol ::= { snmpPrivProtocols 1 }
Undefined identifier: snmpPrivProtocols near line 113 of /usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt
Cannot find module (SNMP-FRAMEWORK-MIB): At line 11 in /usr/share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt)
Did not find 'SnmpSecurityLevel' in module #-1 (/usr/share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt)
Did not find 'SnmpSecurityModel' in module #-1 (/usr/share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt
Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt)
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thanks,
Re: SNMP trap not coming for new device in nagios
Posted: Wed Nov 13, 2019 2:51 pm
by tgriep
The cannot find module messages means that there is a missing MIB file.
Does the /usr/share/snmp/mibs/SNMP-FRAMEWORK-MIB.txt exist of the server?
I attached a new copy to the post you can use to upload to the server.
Upload it to the Nagios server and see if the traps show up in the unconfigures objects menu.
If not, it could be another corrupt or missing MIB file so I 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.
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
Also, what is the make and model number of the device that is sending the traps?