SNMP trap not coming for new device in nagios
Re: SNMP trap not coming for new device in nagios
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?
If you run cat /usr/local/nagiosxi/var/corelog.newobjects do you see traps from the Windows machine?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP trap not coming for new device in nagios
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
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
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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP trap not coming for new device in nagios
OK will try and let you know
Re: SNMP trap not coming for new device in nagios
Okay, we will keep this thread open and wait to hear back.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP trap not coming for new device in nagios
Hi Team,
Still we didn't get any trap in nagios for this device.
Thanks
Still we didn't get any trap in nagios for this device.
Thanks
Re: SNMP trap not coming for new device in nagios
What if you go to Admin -> Monitoring Config -> Unconfigured Objects
Do you see any objects there?
Do you see any objects there?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP trap not coming for new device in nagios
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
Does this output any errors?
What about for Admin > Performance Settings > Subsystem > Enable Listener For Unconfigured Objects?
Code: Select all
cat /etc/cron.d/nagiosxiCode: Select all
/usr/local/nagiosxi/var/feedproc.logCode: Select all
su - nagios
/usr/bin/php /usr/local/nagiosxi/cron/feedproc.phpRe: SNMP trap not coming for new device in nagios
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,
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,
You do not have the required permissions to view the files attached to this post.
Re: SNMP trap not coming for new device in nagios
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.
Then post these 3 files so we can check the settings and the MIB files for any errors.
Also, what is the make and model number of the device that is sending the traps?
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/*
Code: Select all
/tmp/snmp.tgz
/tmp/sharesnmp.tgz
/tmp/snmplog.tgzYou do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!