SNMP Waiting for traps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
gwijnant
Posts: 37
Joined: Tue Sep 08, 2015 4:22 am

Re: SNMP Waiting for traps

Post by gwijnant »

Additional info:

[root@TEST]# snmptranslate -Td .1.3.6.1.4.1.9.9.305.1.3.5.0.2
SNMPv2-SMI::enterprises.9.9.305.1.3.5.0.2
enterprises OBJECT-TYPE
-- FROM SNMPv2-SMI, RFC1155-SMI
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) 9 9 305 1 3 5 0 2 }


[root@TEST]# snmptranslate -Td .1.3.6.1.6.3.1.1.5.3
IF-MIB::linkDown
linkDown NOTIFICATION-TYPE
-- FROM IF-MIB
OBJECTS { ifIndex, ifAdminStatus, ifOperStatus }
DESCRIPTION "A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus."
::= { iso(1) org(3) dod(6) internet(1) snmpV2(6) snmpModules(3) snmpMIB(1) snmpMIBObjects(1) snmpTraps(5) 3 }
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Waiting for traps

Post by tgriep »

It looks like something corrupted the SNMPv2-SMI MIB file.
When I run

Code: Select all

snmptranslate -Td .1.3.6.1.4.1.9.9.305.1.3.5.0.2
I get this

Code: Select all

CISCO-SMI::ciscoMgmt.305.1.3.5.0.2
ciscoMgmt OBJECT-IDENTITY
  -- FROM       CISCO-SMI
  DESCRIPTION   "ciscoMgmt is the main subtree for new mib development."
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) cisco(9) ciscoMgmt(9) 305 1 3 5 0 2 }
You may want to reinstall the SNMPv2-SMI MIB file and check the Cisco MIB files to see if they are the correct ones.
Be sure to check out our Knowledgebase for helpful articles and solutions!
gwijnant
Posts: 37
Joined: Tue Sep 08, 2015 4:22 am

Re: SNMP Waiting for traps

Post by gwijnant »

Hi tgriep,

I tried the SNMPv2-SMI MIB file from several websites, all lead to the same outcome.
I have followed the necessary MIB files from the cisco website for version 2 and this does not help.
Can you share me your SNMPv2-SMI MIB file and Cisco MIB file so I can try with those.
Thanks in advance

Best Regards,

Guy
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Waiting for traps

Post by tgriep »

I have attached the files to this post.
Before adding the MIB files to your system, you probably want to delete the bad entry from the snmptt.conf file and them re-import these files.

Also, you may want to check the /usr/share/snmp/mibs folder to see if there are any duplicated files, etc...
You 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!
gwijnant
Posts: 37
Joined: Tue Sep 08, 2015 4:22 am

Re: SNMP Waiting for traps

Post by gwijnant »

Hi tgriep,

I removed the entries from the snmptt.conf file, removed the 3 mibs that you attached. Restarted snmptt and received some errors (due to missing mibs). Uploaded your 3 mib files. Restarted snmptt (without erros). Tested the snmptranslate -Td .1.3.6.1.4.1.9.9.305.1.3.5.0.2 and received same output as before:
SNMPv2-SMI::enterprises.9.9.305.1.3.5.0.2
enterprises OBJECT-TYPE
-- FROM SNMPv2-SMI, RFC1155-SMI
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) 9 9 305 1 3 5 0 2 }

Is it possible for testing purpose that you can share your /etc/snmp folder and your directory of mib files?

Thanks!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Waiting for traps

Post by tgriep »

Can you run the following on your server and post the output?

Code: Select all

ls -l /usr/share/snmp/mibs
Be sure to check out our Knowledgebase for helpful articles and solutions!
gwijnant
Posts: 37
Joined: Tue Sep 08, 2015 4:22 am

Re: SNMP Waiting for traps

Post by gwijnant »

[root@localhost~]# ls -l /usr/share/snmp/mibs
total 2008
-rw-r--r-- 1 root nagios 17455 Feb 29 10:36 AGENTX-MIB.txt
-rw-r--r-- 1 root nagios 50948 Feb 29 10:36 BRIDGE-MIB.txt
-rw-rw-r-- 1 apache apache 16811 Feb 26 14:14 CISCO-SMI.txt
-rw-rw-r-- 1 apache apache 38117 Feb 26 14:20 CISCO-SYSTEM-EXT-MIB.txt
-rw-rw-r-- 1 apache apache 102922 Feb 26 14:17 CISCO-TC.txt
-rw-r--r-- 1 root nagios 68104 Feb 29 10:36 DISMAN-EVENT-MIB.txt
-rw-r--r-- 1 root nagios 24613 Feb 29 10:36 DISMAN-SCHEDULE-MIB.txt
-rw-r--r-- 1 root nagios 64311 Feb 29 10:36 DISMAN-SCRIPT-MIB.txt
-rw-r--r-- 1 root nagios 84492 Feb 29 10:36 EtherLike-MIB.txt
-rw-r--r-- 1 root nagios 4660 Feb 29 10:36 HCNUM-TC.txt
-rw-r--r-- 1 root nagios 52544 Feb 29 10:36 HOST-RESOURCES-MIB.txt
-rw-r--r-- 1 root nagios 10583 Feb 29 10:36 HOST-RESOURCES-TYPES.txt
-rw-r--r-- 1 root nagios 4819 Feb 29 10:36 IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
-rw-rw-r-- 1 apache apache 25042 Feb 26 14:14 IANAifType-MIB.txt
-rw-r--r-- 1 root nagios 4299 Feb 29 10:36 IANA-LANGUAGE-MIB.txt
-rw-r--r-- 1 root nagios 3513 Feb 29 10:36 IANA-RTPROTO-MIB.txt
-rw-r--r-- 1 root nagios 5066 Feb 29 10:36 IF-INVERTED-STACK-MIB.txt
-rw-r--r-- 1 root nagios 71691 Feb 29 10:36 IF-MIB.txt
-rw-rw-r-- 1 apache apache 17177 Feb 26 14:17 INET-ADDRESS-MIB.txt
-rw-r--r-- 1 root nagios 46286 Feb 29 10:36 IP-FORWARD-MIB.txt
-rw-r--r-- 1 root nagios 185667 Feb 29 10:36 IP-MIB.txt
-rw-r--r-- 1 root nagios 15936 Feb 29 10:36 IPV6-ICMP-MIB.txt
-rw-r--r-- 1 root nagios 48703 Feb 29 10:36 IPV6-MIB.txt
-rw-r--r-- 1 root nagios 7257 Feb 29 10:36 IPV6-TCP-MIB.txt
-rw-r--r-- 1 root nagios 2367 Feb 29 10:36 IPV6-TC.txt
-rw-r--r-- 1 root nagios 4400 Feb 29 10:36 IPV6-UDP-MIB.txt
-rw-r--r-- 1 root nagios 5931 Feb 29 10:36 LM-SENSORS-MIB.txt
-rw-r--r-- 1 root nagios 42375 Feb 29 10:36 MTA-MIB.txt
-rw-r--r-- 1 root nagios 19760 Feb 29 10:36 NAGIOS-NOTIFY-MIB.txt
-rw-r--r-- 1 root nagios 2093 Feb 29 10:36 NAGIOS-ROOT-MIB.txt
-rw-r--r-- 1 root nagios 15732 Feb 29 10:36 NET-SNMP-AGENT-MIB.txt
-rw-r--r-- 1 root nagios 9160 Feb 29 10:36 NET-SNMP-EXAMPLES-MIB.txt
-rw-r--r-- 1 root nagios 9198 Feb 29 10:36 NET-SNMP-EXTEND-MIB.txt
-rw-r--r-- 1 root nagios 2036 Feb 29 10:36 NET-SNMP-MIB.txt
-rw-r--r-- 1 root nagios 3350 Feb 29 10:36 NET-SNMP-PASS-MIB.txt
-rw-r--r-- 1 root nagios 4686 Feb 29 10:36 NET-SNMP-TC.txt
-rw-r--r-- 1 root nagios 5039 Feb 29 10:36 NET-SNMP-VACM-MIB.txt
-rw-r--r-- 1 root nagios 21006 Feb 29 10:36 NETWORK-SERVICES-MIB.txt
-rw-r--r-- 1 root nagios 24694 Feb 29 10:36 NOTIFICATION-LOG-MIB.txt
drwxr-sr-x 2 apache nagios 4096 Feb 25 11:38 processed_mibs
-rw-rw-r-- 1 apache apache 3396 Feb 26 14:16 RFC1155-SMI.txt
-rw-rw-r-- 1 apache apache 2706 Feb 26 14:16 RFC-1212.txt
-rw-rw-r-- 1 apache apache 102081 Feb 26 14:17 RFC1213-MIB.txt
-rw-rw-r-- 1 apache apache 1344 Feb 26 14:18 RFC-1215.txt
-rw-r--r-- 1 root nagios 147822 Feb 29 10:36 RMON-MIB.txt
-rw-r--r-- 1 root nagios 45323 Feb 29 10:36 SCTP-MIB.txt
-rw-r--r-- 1 root nagios 4649 Feb 29 10:36 SMUX-MIB.txt
-rw-r--r-- 1 root nagios 15490 Feb 29 10:36 SNMP-COMMUNITY-MIB.txt
-rw-rw-r-- 1 apache apache 22354 Feb 26 14:17 SNMP-FRAMEWORK-MIB.txt
-rw-r--r-- 1 root nagios 5496 Feb 29 10:36 SNMP-MPD-MIB.txt
-rw-r--r-- 1 root nagios 20014 Feb 29 10:36 SNMP-NOTIFICATION-MIB.txt
-rw-r--r-- 1 root nagios 9106 Feb 29 10:36 SNMP-PROXY-MIB.txt
-rw-r--r-- 1 root nagios 22769 Feb 29 10:36 SNMP-TARGET-MIB.txt
-rw-r--r-- 1 root nagios 39201 Feb 29 10:36 SNMP-USER-BASED-SM-MIB.txt
-rw-r--r-- 1 root nagios 2205 Feb 29 10:36 SNMP-USM-AES-MIB.txt
-rw-r--r-- 1 root nagios 21101 Feb 29 10:36 SNMP-USM-DH-OBJECTS-MIB.txt
-rw-rw-r-- 1 apache apache 528 Feb 26 14:14 SNMPv2-CONF.txt
-rw-r--r-- 1 root nagios 29305 Feb 29 10:36 SNMPv2-MIB.txt
-rw-rw-r-- 1 apache apache 9552 Feb 26 14:14 SNMPv2-SMI.txt
-rw-rw-r-- 1 apache apache 35185 Feb 26 14:14 SNMPv2-TC.txt
-rw-rw-r-- 1 apache apache 33261 Feb 26 14:19 SNMPv2-TC-v1.txt
-rw-r--r-- 1 root nagios 5775 Feb 29 10:36 SNMPv2-TM.txt
-rw-r--r-- 1 root nagios 34162 Feb 29 10:36 SNMP-VIEW-BASED-ACM-MIB.txt
-rw-r--r-- 1 root nagios 28564 Feb 29 10:36 TCP-MIB.txt
-rw-r--r-- 1 root nagios 16418 Feb 29 10:36 TRANSPORT-ADDRESS-MIB.txt
-rw-r--r-- 1 root nagios 2163 Feb 29 10:36 UCD-DEMO-MIB.txt
-rw-r--r-- 1 root nagios 4402 Feb 29 10:36 UCD-DISKIO-MIB.txt
-rw-r--r-- 1 root nagios 3010 Feb 29 10:36 UCD-DLMOD-MIB.txt
-rw-r--r-- 1 root nagios 8118 Feb 29 10:36 UCD-IPFWACC-MIB.txt
-rw-r--r-- 1 root nagios 46150 Feb 29 10:36 UCD-SNMP-MIB.txt
-rw-r--r-- 1 root nagios 20882 Feb 29 10:36 UDP-MIB.txt
[root@locahost ~]#
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Waiting for traps

Post by tgriep »

Can you run the following commands and post the output?

Code: Select all

grep ciscoMgmt /usr/share/snmp/mibs/*
net-snmp-config --default-mibdirs
Be sure to check out our Knowledgebase for helpful articles and solutions!
gwijnant
Posts: 37
Joined: Tue Sep 08, 2015 4:22 am

Re: SNMP Waiting for traps

Post by gwijnant »

Hi tgriep,

Below requested output
[root@localhost ~]# grep ciscoMgmt /usr/share/snmp/mibs/*
/usr/share/snmp/mibs/CISCO-SMI.txt:ciscoMgmt OBJECT-IDENTITY
/usr/share/snmp/mibs/CISCO-SMI.txt: "ciscoMgmt is the main subtree for new mib development."
/usr/share/snmp/mibs/CISCO-SYSTEM-EXT-MIB.txt: ciscoMgmt
/usr/share/snmp/mibs/CISCO-SYSTEM-EXT-MIB.txt: ::= { ciscoMgmt 305 }
grep: /usr/share/snmp/mibs/processed_mibs: Is a directory
[root@vcn-wil-mon02 ~]# net-snmp-config --default-mibdirs
/root/.snmp/mibs:/usr/share/snmp/mibs
[root@localhost ~]#
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Waiting for traps

Post by tgriep »

On my system, I do not have the following file

Code: Select all

/usr/share/snmp/mibs/CISCO-SYSTEM-EXT-MIB.txt
Try moving that file from that folder and see if snmptranslate command returns the correct info.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked