NagisQL cfgs in wrong folder

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
ThyRaven
Posts: 19
Joined: Mon Jul 08, 2013 3:48 pm

Re: NagisQL cfgs in wrong folder

Post by ThyRaven »

Looks like Nagios is able to talk to the Switch now but it is still throwing an error:

External command error: MIB search path: $HOME/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/mibs/netsnmp/NET-SNMP-AGENT-MIB
Did not find 'SnmpAdminString' in module #-1 (/usr/share/mibs/netsnmp/NET-SNMP-AGENT-MIB)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/mibs/netsnmp/NET-SNMP-VACM-MIB
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 16 in /usr/share/mibs/netsnmp/NET-SNMP-VACM-MIB
Did not find 'SnmpAdminString' in module #-1 (/usr/share/mibs/netsnmp/NET-SNMP-VACM-MIB)
Did not find 'vacmGroupName' in module #-1 (/usr/share/mibs/netsnmp/NET-SNMP-VACM-MIB)
Did not find 'vacmAccessContextPrefix' in module #-1 (/usr/share/mibs/netsnmp/NET-SNMP-VACM-MIB)
Did not find 'vacmAccessSecurityModel' in module #-1 (/usr/share/mibs/netsnmp/NET-SNMP-VACM-MIB)
Did not find 'vacmAccessSecurityLevel' in module #-1 (/usr/share/mibs/netsnmp/NET-SNMP-VACM-MIB)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/mibs/netsnmp/NET-SNMP-EXAMPLES-MIB
Cannot find module (INET-ADDRESS-MIB): At line 13 in /usr/share/mibs/netsnmp/NET-SNMP-EXAMPLES-MIB
Did not find 'SnmpAdminString' in module #-1 (/usr/share/mibs/netsnmp/NET-SNMP-EXAMPLES-MIB)
Did not find 'InetAddressType' in module #-1 (/usr/share/mibs/netsnmp/NET-SNMP-EXAMPLES-MIB)
Did not find 'InetAddress' in module #-1 (/usr/share/mibs/netsnmp/NET-SNMP-EXAMPLES-MIB)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/mibs/netsnmp/NET-SNMP-PASS-MIB
Did not find 'SnmpAdminString' in module #-1 (/usr/share/mibs/netsnmp/NET-SNMP-PASS-MIB)
Timeout: No Response from 10.2.0.1:161

Any ideas what I am missing now? If I got to /usr/share/mibs/netsnmp I have the following files:

GNOME-SMI NET-SNMP-EXTEND-MIB NET-SNMP-VACM-MIB SNMPv2-SMI.my.1 UCD-IPFWACC-MIB
IANAifType-MIB.my NET-SNMP-MIB RFC1213-MIB.my SNMPv2-TC.my UCD-SNMP-MIB
IANAifType-MIB.my.1 NET-SNMP-MONITOR-MIB RFC1213-MIB.my.1 SNMPv2-TC.my.1
LM-SENSORS-MIB NET-SNMP-PASS-MIB SNMPv2-MIB.my UCD-DEMO-MIB
NET-SNMP-AGENT-MIB NET-SNMP-SYSTEM-MIB SNMPv2-MIB.my.1 UCD-DISKIO-MIB
NET-SNMP-EXAMPLES-MIB NET-SNMP-TC SNMPv2-SMI.my UCD-DLMOD-MIB


So I don't think I am missing any files. Maybe its permissions. Not sure. Any help is greatly appreciated.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagisQL cfgs in wrong folder

Post by abrist »

I think you most definitely *are* missing some mibs, look at the errors:

Code: Select all

Cannot find module (SNMP-FRAMEWORK-MIB)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB)
Cannot find module (INET-ADDRESS-MIB)
All of those mibs are missing from your directory listing . . .
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ThyRaven
Posts: 19
Joined: Mon Jul 08, 2013 3:48 pm

Re: NagisQL cfgs in wrong folder

Post by ThyRaven »

Well crap... How do I get those? I know I installed the plugin pack and NRPE plugin before I got to NagiosQL.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagisQL cfgs in wrong folder

Post by abrist »

Lets make sure that you have all the necessary packages:

Code: Select all

apt-get install snmp-mibs-downloader snmp snmpd
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ThyRaven
Posts: 19
Joined: Mon Jul 08, 2013 3:48 pm

Re: NagisQL cfgs in wrong folder

Post by ThyRaven »

Ok I ran that and a whole bunch of MIBs downloaded but doesnt look like anything changed in the /usr/share/mibs/netsnmp folder.
ThyRaven
Posts: 19
Joined: Mon Jul 08, 2013 3:48 pm

Re: NagisQL cfgs in wrong folder

Post by ThyRaven »

Looks like the error updated:

External command error: Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/DIFFSERV-MIB)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/MPLS-LSR-STD-MIB)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/DOCS-CABLE-DEVICE-MIB)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/DISMAN-EVENT-MIB)
Bad operator (INTEGER): At line 73 in /usr/share/mibs/ietf/SNMPv2-PDU
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/GMPLS-LSR-STD-MIB)
Unlinked OID in IPATM-IPMC-MIB: marsMIB ::= { mib-2 57 }
Undefined identifier: mib-2 near line 18 of /usr/share/mibs/ietf/IPATM-IPMC-MIB
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/DISMAN-SCHEDULE-MIB)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/DIFFSERV-CONFIG-MIB)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/IP-MIB)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/APPLICATION-MIB)
Undefined OBJECT-GROUP (diffServMIBMultiFieldClfrGroup): At line 2195 in /usr/share/mibs/ietf/IPSEC-SPD-MIB
Undefined OBJECT-GROUP (diffServMultiFieldClfrNextFree): At line 2157 in /usr/share/mibs/ietf/IPSEC-SPD-MIB
Undefined OBJECT-GROUP (diffServMIBMultiFieldClfrGroup): At line 2062 in /usr/share/mibs/ietf/IPSEC-SPD-MIB
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/DISMAN-EXPRESSION-MIB)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/ALARM-MIB)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/MPLS-TE-STD-MIB)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/GMPLS-TE-STD-MIB)
Expected "::=" (RFC5644): At line 493 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Expected "{" (EOF): At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Bad object identifier: At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Bad parse of OBJECT-IDENTITY: At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Timeout: No Response from 10.2.0.1:161.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagisQL cfgs in wrong folder

Post by abrist »

You may have some mib collisions, could you post your /etc/snmp/snmp.conf ?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ThyRaven
Posts: 19
Joined: Mon Jul 08, 2013 3:48 pm

Re: NagisQL cfgs in wrong folder

Post by ThyRaven »

Code: Select all

#
# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loaging them by commenting out the following line.
mibs :
mibs +sysUpTime
~
That's all I got. Missing stuff?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagisQL cfgs in wrong folder

Post by abrist »

Now this is interesting, before, we had to explicitly define the mibs you wished to use in snmp.conf. But now, it is pulling all of them in . . . what is the listing of the following directory?

Code: Select all

ls -la /usr/share/mibs/ietf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ThyRaven
Posts: 19
Joined: Mon Jul 08, 2013 3:48 pm

Re: NagisQL cfgs in wrong folder

Post by ThyRaven »

Code: Select all

lrwxrwxrwx 1 root root 18 Jun  7  2010 /usr/share/mibs/ietf -> /var/lib/mibs/ietf
Locked