MIB errors

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
djcomber
Posts: 43
Joined: Sat Nov 28, 2015 5:22 am

MIB errors

Post by djcomber »

Hi,

I'm getting this when running the backup scripts in XI.
It's happend from day 1 of the install. I'm working through some basic tasks (resizing VM, fixing corrupt DB Tables etc), I'd love to know what the issue is. SNMP reporting is find, not sure if I'm receiving traps.

Code: Select all

add_mibdir: strings scanned in from /usr/share/snmp/mibs/.index are too large.                                                                                     count = 26
 Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 5 in /usr/share/snmp/mibs/HOST-                                                                                   RESOURCES-TYPES.txt
Did not find 'hrMIBAdminInfo' in module #-1 (/usr/share/snmp/mibs/HOST-RESOURCES                                                                                   -TYPES.txt)
Did not find 'hrStorage' in module #-1 (/usr/share/snmp/mibs/HOST-RESOURCES-TYPE                                                                                   S.txt)
Did not find 'hrDevice' in module #-1 (/usr/share/snmp/mibs/HOST-RESOURCES-TYPES                                                                                   .txt)
Unlinked OID in HOST-RESOURCES-TYPES: hostResourcesTypesModule ::= { hrMIBAdminI                                                                                   nfo 4 }
Undefined identifier: hrMIBAdminInfo near line 7 of /usr/share/snmp/mibs/HOST-RE                                                                                   SOURCES-TYPES.txt
Unlinked OID in HOST-RESOURCES-TYPES: hrFSTypes ::= { hrDevice 9 }
Undefined identifier: hrDevice near line 226 of /usr/share/snmp/mibs/HOST-RESOUR                                                                                   CES-TYPES.txt
Unlinked OID in HOST-RESOURCES-TYPES: hrDeviceTypes ::= { hrDevice 1 }
Undefined identifier: hrDevice near line 108 of /usr/share/snmp/mibs/HOST-RESOUR                                                                                   CES-TYPES.txt
Unlinked OID in HOST-RESOURCES-TYPES: hrStorageTypes ::= { hrStorage 1 }
Undefined identifier: hrStorage near line 37 of /usr/share/snmp/mibs/HOST-RESOUR                                                                                   CES-TYPES.txt
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 5 in /usr/share/snmp/mibs/MTA-MIB.txt
Cannot find module (SNMPv2-TC): At line 7 in /usr/share/snmp/mibs/MTA-MIB.txt
Cannot find module (SNMP-FRAMEWORK-MIB): At line 11 in /usr/share/snmp/mibs/MTA-                                                                                   MIB.txt
Cannot find module (SNMPv2-SMI): At line 5 in /usr/share/snmp/mibs/NETWORK-SERVI                                                                                   CES-MIB.txt
Cannot find module (SNMPv2-TC): At line 7 in /usr/share/snmp/mibs/NETWORK-SERVIC                                                                                   ES-MIB.txt
Cannot find module (SNMP-FRAMEWORK-MIB): At line 11 in /usr/share/snmp/mibs/NETW                                                                                   ORK-SERVICES-MIB.txt
Did not find 'mib-2' in module #-1 (/usr/share/snmp/mibs/NETWORK-SERVICES-MIB.tx                                                                                   t)
Did not find 'TimeStamp' in module #-1 (/usr/share/snmp/mibs/NETWORK-SERVICES-MI                                                                                   B.txt)
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NETWORK-SERVI                                                                                   CES-MIB.txt)
Unlinked OID in NETWORK-SERVICES-MIB: application ::= { mib-2 27 }
Undefined identifier: mib-2 near line 13 of /usr/share/snmp/mibs/NETWORK-SERVICE                                                                                   S-MIB.txt
Did not find 'mib-2' in module #-1 (/usr/share/snmp/mibs/MTA-MIB.txt)
Did not find 'TimeInterval' in module #-1 (/usr/share/snmp/mibs/MTA-MIB.txt)
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/MTA-MIB.txt)
Did not find 'applIndex' in module NETWORK-SERVICES-MIB (/usr/share/snmp/mibs/MT                                                                                   A-MIB.txt)
Unlinked OID in MTA-MIB: mta ::= { mib-2 28 }
Undefined identifier: mib-2 near line 15 of /usr/share/snmp/mibs/MTA-MIB.txt
Cannot find module (SNMPv2-SMI): At line 6 in /usr/share/snmp/mibs/SCTP-MIB.txt
Cannot find module (SNMPv2-TC): At line 8 in /usr/share/snmp/mibs/SCTP-MIB.txt
Cannot find module (INET-ADDRESS-MIB): At line 12 in /usr/share/snmp/mibs/SCTP-M                                                                                   IB.txt
Did not find 'mib-2' in module #-1 (/usr/share/snmp/mibs/SCTP-MIB.txt)
Did not find 'TimeStamp' in module #-1 (/usr/share/snmp/mibs/SCTP-MIB.txt)
Did not find 'TruthValue' in module #-1 (/usr/share/snmp/mibs/SCTP-MIB.txt)
Did not find 'InetAddressType' in module #-1 (/usr/share/snmp/mibs/SCTP-MIB.txt)
Did not find 'InetAddress' in module #-1 (/usr/share/snmp/mibs/SCTP-MIB.txt)
Did not find 'InetPortNumber' in module #-1 (/usr/share/snmp/mibs/SCTP-MIB.txt)
Unlinked OID in SCTP-MIB: sctpMIB ::= { mib-2 104 }
Undefined identifier: mib-2 near line 14 of /usr/share/snmp/mibs/SCTP-MIB.txt
Cannot find module (SNMPv2-SMI): At line 6 in /usr/share/snmp/mibs/RMON-MIB.txt
Cannot find module (SNMPv2-TC): At line 8 in /usr/share/snmp/mibs/RMON-MIB.txt
Did not find 'mib-2' in module #-1 (/usr/share/snmp/mibs/RMON-MIB.txt)
Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/RMON-MIB.txt)
Unlinked OID in RMON-MIB: rmon ::= { mib-2 16 }
Undefined identifier: mib-2 near line 88 of /usr/share/snmp/mibs/RMON-MIB.txt
Cannot find module (EtherLike-MIB): At line 0 in (none)
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 34 in /usr/share/snmp/mibs/IP-MIB.my
Cannot find module (SNMPv2-TC): At line 38 in /usr/share/snmp/mibs/IP-MIB.my
Cannot find module (INET-ADDRESS-MIB): At line 42 in /usr/share/snmp/mibs/IP-MIB                                                                                   .my
Cannot find module (IF-MIB): At line 43 in /usr/share/snmp/mibs/IP-MIB.my
Did not find 'mib-2' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'zeroDotZero' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'PhysAddress' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'TruthValue' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'TimeStamp' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'RowPointer' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'TestAndIncr' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'RowStatus' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'StorageType' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'InetAddress' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'InetAddressType' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'InetAddressPrefixLength' in module #-1 (/usr/share/snmp/mibs/IP-MI                                                                                   B.my)
Did not find 'InetVersion' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'InetZoneIndex' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Did not find 'InterfaceIndex' in module #-1 (/usr/share/snmp/mibs/IP-MIB.my)
Unlinked OID in IP-MIB: icmp ::= { mib-2 5 }
Undefined identifier: mib-2 near line 3452 of /usr/share/snmp/mibs/IP-MIB.my
Unlinked OID in IP-MIB: ip ::= { mib-2 4 }
Undefined identifier: mib-2 near line 219 of /usr/share/snmp/mibs/IP-MIB.my
Unlinked OID in IP-MIB: ipMIB ::= { mib-2 48 }
Undefined identifier: mib-2 near line 45 of /usr/share/snmp/mibs/IP-MIB.my
Cannot find module (SNMPv2-SMI): At line 6 in /usr/share/snmp/mibs/SNMPv2-MIB.tx                                                                                   t
Cannot find module (SNMPv2-TC): At line 9 in /usr/share/snmp/mibs/SNMPv2-MIB.txt
Did not find 'snmpModules' in module #-1 (/usr/share/snmp/mibs/SNMPv2-MIB.txt)
Did not find 'mib-2' in module #-1 (/usr/share/snmp/mibs/SNMPv2-MIB.txt)
Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/SNMPv2-MIB.txt)
Did not find 'TestAndIncr' in module #-1 (/usr/share/snmp/mibs/SNMPv2-MIB.txt)
Did not find 'TimeStamp' in module #-1 (/usr/share/snmp/mibs/SNMPv2-MIB.txt)
Unlinked OID in SNMPv2-MIB: snmp ::= { mib-2 11 }
Undefined identifier: mib-2 near line 262 of /usr/share/snmp/mibs/SNMPv2-MIB.txt
Unlinked OID in SNMPv2-MIB: system ::= { mib-2 1 }
Undefined identifier: mib-2 near line 75 of /usr/share/snmp/mibs/SNMPv2-MIB.txt
.....
and the list goes on, too many to list here I get a char size error when I try and put them all in the list
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: MIB errors

Post by tgriep »

Can you run the following and post the output here?

Code: Select all

ls -al /usr/share/snmp/mibs
df -h
df -i
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
djcomber
Posts: 43
Joined: Sat Nov 28, 2015 5:22 am

Re: MIB errors

Post by djcomber »

Code: Select all

[root@sucgrdc01nxi01 ~]# ls -al /usr/share/snmp/mibs
total 3588
drwxrwsr-x 2 root nagios   4096 Oct 17 23:24 .
drwxr-xr-x 5 root root     4096 Aug 24 04:47 ..
-rw-rw-r-- 1 root nagios  17455 Aug 24 04:47 AGENTX-MIB.txt
-rw-rw-r-- 1 root nagios  50948 Aug 24 04:47 BRIDGE-MIB.txt
-rw-rw-r-- 1 root nagios   6634 Jan 11  2016 CISCO-ACCESS-ENVMON-MIB.txt
-rw-rw-r-- 1 root nagios  63010 Jan 11  2016 CISCO-ACL-MIB.txt
-rw-rw-r-- 1 root nagios 285319 Nov 30  2015 CISCO-CCM-MIB.my
-rw-rw-r-- 1 root nagios  36285 Nov 30  2015 CISCO-CDP-MIB.my
-rw-rw-r-- 1 root nagios 375411 Jan 11  2016 CISCO-CLASS-BASED-QOS-MIB.txt
-rw-rw-r-- 1 root nagios  87213 Jan 11  2016 CISCO-DSP-MGMT-MIB.txt
-rw-rw-r-- 1 root nagios  37349 Jan 11  2016 CISCO-ENVMON-MIB.txt
-rw-rw-r-- 1 root nagios  13966 Jan 11  2016 CISCO-LINK-ERROR-MONITOR-MIB.txt
-rw-rw-r-- 1 root nagios 104190 Nov 30  2015 CISCO-PROCESS-MIB.my
-rw-rw-r-- 1 root nagios   3005 Jan 11  2016 CISCO-QOS-TC-MIB.txt
-rw-rw-r-- 1 root nagios 208063 Jan 11  2016 CISCO-SWITCH-QOS-MIB.txt
-rw-rw-r-- 1 root nagios  70641 Jan 11  2016 CISCO-TELEPRESENCE-MIB.txt
-rw-rw-r-- 1 root nagios  43665 Nov 30  2015 CISCO-UNITY-EXPRESS-MIB.my
-rw-rw-r-- 1 root nagios   2033 Nov 30  2015 CISCO-VOICE-APPLICATIONS-OID-MIB.my
-rw-rw-r-- 1 root nagios  23930 Nov 30  2015 CISCO-VOICE-CONNECTIVITY-MIB.my
-rw-rw-r-- 1 root nagios  68104 Aug 24 04:47 DISMAN-EVENT-MIB.txt
-rw-rw-r-- 1 root nagios  24613 Aug 24 04:47 DISMAN-SCHEDULE-MIB.txt
-rw-rw-r-- 1 root nagios  64311 Aug 24 04:47 DISMAN-SCRIPT-MIB.txt
-rw-rw-r-- 1 root nagios  60963 Jan 11  2016 Entity MIB.txt
-rw-rw-r-- 1 root nagios  84492 Aug 24 04:47 EtherLike-MIB.txt
-rw-rw-r-- 1 root nagios   4660 Aug 24 04:47 HCNUM-TC.txt
-rw-rw-r-- 1 root nagios  52544 Aug 24 04:47 HOST-RESOURCES-MIB.txt
-rw-rw-r-- 1 root nagios  10583 Aug 24 04:47 HOST-RESOURCES-TYPES.txt
-rw-rw-r-- 1 root nagios   4819 Aug 24 04:47 IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
-rw-rw-r-- 1 root nagios  29665 Aug 24 04:47 IANAifType-MIB.txt
-rw-rw-r-- 1 root nagios   4299 Aug 24 04:47 IANA-LANGUAGE-MIB.txt
-rw-rw-r-- 1 root nagios   3513 Aug 24 04:47 IANA-RTPROTO-MIB.txt
-rw-rw-r-- 1 root nagios   5066 Aug 24 04:47 IF-INVERTED-STACK-MIB.txt
-rw-rw-r-- 1 root nagios  71705 Nov 30  2015 IF-MIB.my
-rw-rw-r-- 1 root nagios  71691 Aug 24 04:47 IF-MIB.txt
-rw-rw-r-- 1 root nagios  16782 Aug 24 04:47 INET-ADDRESS-MIB.txt
-rw-rw-r-- 1 root nagios  46286 Aug 24 04:47 IP-FORWARD-MIB.txt
-rw-rw-r-- 1 root nagios 186550 Nov 30  2015 IP-MIB.my
-rw-rw-r-- 1 root nagios 185667 Aug 24 04:47 IP-MIB.txt
-rw-rw-r-- 1 root nagios  15936 Aug 24 04:47 IPV6-ICMP-MIB.txt
-rw-rw-r-- 1 root nagios  48703 Aug 24 04:47 IPV6-MIB.txt
-rw-rw-r-- 1 root nagios   7257 Aug 24 04:47 IPV6-TCP-MIB.txt
-rw-rw-r-- 1 root nagios   2367 Aug 24 04:47 IPV6-TC.txt
-rw-rw-r-- 1 root nagios   4400 Aug 24 04:47 IPV6-UDP-MIB.txt
-rw-rw-r-- 1 root nagios   5931 Aug 24 04:47 LM-SENSORS-MIB.txt
-rw-rw-r-- 1 root nagios  42375 Aug 24 04:47 MTA-MIB.txt
-rw-rw-r-- 1 root nagios  19760 Oct 17 23:24 NAGIOS-NOTIFY-MIB.txt
-rw-rw-r-- 1 root nagios   2093 Oct 17 23:24 NAGIOS-ROOT-MIB.txt
-rw-rw-r-- 1 root nagios  42862 Jan 11  2016 NBAR Protocol Discovery MIB.txt
-rw-rw-r-- 1 root nagios  15901 Aug 24 04:47 NET-SNMP-AGENT-MIB.txt
-rw-rw-r-- 1 root nagios   9160 Aug 24 04:47 NET-SNMP-EXAMPLES-MIB.txt
-rw-rw-r-- 1 root nagios   9198 Aug 24 04:47 NET-SNMP-EXTEND-MIB.txt
-rw-rw-r-- 1 root nagios   2036 Aug 24 04:47 NET-SNMP-MIB.txt
-rw-rw-r-- 1 root nagios   3350 Aug 24 04:47 NET-SNMP-PASS-MIB.txt
-rw-rw-r-- 1 root nagios   4686 Aug 24 04:47 NET-SNMP-TC.txt
-rw-rw-r-- 1 root nagios   5039 Aug 24 04:47 NET-SNMP-VACM-MIB.txt
-rw-rw-r-- 1 root nagios  21006 Aug 24 04:47 NETWORK-SERVICES-MIB.txt
-rw-rw-r-- 1 root nagios  24694 Aug 24 04:47 NOTIFICATION-LOG-MIB.txt
-rw-rw-r-- 1 root nagios   3067 Aug 24 04:47 RFC1155-SMI.txt
-rw-rw-r-- 1 root nagios  79667 Aug 24 04:47 RFC1213-MIB.txt
-rw-rw-r-- 1 root nagios   1174 Aug 24 04:47 RFC-1215.txt
-rw-rw-r-- 1 root nagios 147822 Aug 24 04:47 RMON-MIB.txt
-rw-rw-r-- 1 root nagios  45323 Aug 24 04:47 SCTP-MIB.txt
-rw-rw-r-- 1 root nagios   4649 Aug 24 04:47 SMUX-MIB.txt
-rw-rw-r-- 1 root nagios  15490 Aug 24 04:47 SNMP-COMMUNITY-MIB.txt
-rw-rw-r-- 1 root nagios  22342 Aug 24 04:47 SNMP-FRAMEWORK-MIB.txt
-rw-rw-r-- 1 root nagios   5496 Aug 24 04:47 SNMP-MPD-MIB.txt
-rw-rw-r-- 1 root nagios  20014 Aug 24 04:47 SNMP-NOTIFICATION-MIB.txt
-rw-rw-r-- 1 root nagios   9106 Aug 24 04:47 SNMP-PROXY-MIB.txt
-rw-rw-r-- 1 root nagios  22769 Aug 24 04:47 SNMP-TARGET-MIB.txt
-rw-rw-r-- 1 root nagios  39201 Aug 24 04:47 SNMP-USER-BASED-SM-MIB.txt
-rw-rw-r-- 1 root nagios   2205 Aug 24 04:47 SNMP-USM-AES-MIB.txt
-rw-rw-r-- 1 root nagios  21101 Aug 24 04:47 SNMP-USM-DH-OBJECTS-MIB.txt
-rw-rw-r-- 1 root nagios   8263 Aug 24 04:47 SNMPv2-CONF.txt
-rw-rw-r-- 1 root nagios  29305 Aug 24 04:47 SNMPv2-MIB.txt
-rw-rw-r-- 1 root nagios   8924 Aug 24 04:47 SNMPv2-SMI.txt
-rw-rw-r-- 1 root nagios  38034 Aug 24 04:47 SNMPv2-TC.txt
-rw-rw-r-- 1 root nagios   5775 Aug 24 04:47 SNMPv2-TM.txt
-rw-rw-r-- 1 root nagios  34162 Aug 24 04:47 SNMP-VIEW-BASED-ACM-MIB.txt
-rw-rw-r-- 1 root nagios  66546 Nov 30  2015 SYSAPPL-MIB.my
-rw-rw-r-- 1 root nagios  28564 Aug 24 04:47 TCP-MIB.txt
-rw-rw-r-- 1 root nagios  16418 Aug 24 04:47 TRANSPORT-ADDRESS-MIB.txt
-rw-rw-r-- 1 root nagios   2163 Aug 24 04:47 UCD-DEMO-MIB.txt
-rw-rw-r-- 1 root nagios   4402 Aug 24 04:47 UCD-DISKIO-MIB.txt
-rw-rw-r-- 1 root nagios   3010 Aug 24 04:47 UCD-DLMOD-MIB.txt
-rw-rw-r-- 1 root nagios   8118 Aug 24 04:47 UCD-IPFWACC-MIB.txt
-rw-rw-r-- 1 root nagios  46150 Aug 24 04:47 UCD-SNMP-MIB.txt
-rw-rw-r-- 1 root nagios  20882 Aug 24 04:47 UDP-MIB.txt

Code: Select all

[root@sucgrdc01nxi01 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       18G  5.9G   11G  36% /
tmpfs                 939M     0  939M   0% /dev/shm
/dev/sda1             477M  101M  352M  23% /boot
[root@sucgrdc01nxi01 ~]#

Code: Select all

[root@sucgrdc01nxi01 ~]# df -i
Filesystem            Inodes  IUsed   IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
                     1143792 100868 1042924    9% /
tmpfs                 240163      1  240162    1% /dev/shm
/dev/sda1             128016     56  127960    1% /boot
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: MIB errors

Post by tgriep »

The files in that folder look good.
Can you post the process you are doing to run the backup?
If you are running it from the command line, or from the GUI?
Be sure to check out our Knowledgebase for helpful articles and solutions!
djcomber
Posts: 43
Joined: Sat Nov 28, 2015 5:22 am

Re: MIB errors

Post by djcomber »

running the backup from the command line as per documentation

/usr/local/nagiosxi/scripts/backup_xi.sh
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: MIB errors

Post by tgriep »

Strange thing is that the backup script doesn't back up that folder, at least the script on my system doesn't.
Login as root to the XI server and run the following. It could be the spaces in the MIB filenames causing the error.

Code: Select all

mv /usr/share/snmp/mibs/Entity\ MIB.txt /usr/share/snmp/mibs/Entity-MIB.txt
mv /usr/share/snmp/mibs/NBAR\ Protocol\ Discovery\ MIB.txt /usr/share/snmp/mibs/NBAR-Protocol-Discovery-MIB.txt
Then run the backup script and see if it works for you.
If not, can you post the full error output?
Be sure to check out our Knowledgebase for helpful articles and solutions!
djcomber
Posts: 43
Joined: Sat Nov 28, 2015 5:22 am

Re: MIB errors

Post by djcomber »

wow nice spotting. I've renamed both files as specified. Ran a back up and no errors are showing anymore


thank you once again.

Godo to close
Locked