cannot import MIBS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: cannot import MIBS

Post by scottwilkerson »

shakra2005 wrote:when i run snmpwalk -v1 -c public localhost

i cannot see the mib
You won't see them by running this against localhost, you would need to do the snmpwalk against a device that uses these mibs, ie. an APC

Code: Select all

snmpwalk -v1 -c public <YOUR_APC_IP_ADDRESS>
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
shakra2005
Posts: 70
Joined: Sun Aug 05, 2012 4:24 pm

Re: cannot import MIBS

Post by shakra2005 »

It runs but only with the following MIBS

UDP-MIB
SNMPv2-MIB
IF-MIB

It should run with the powernet405.mib
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: cannot import MIBS

Post by lmiltchev »

What happens when you run the command like this?

Code: Select all

snmpwalk -v1 -c public <YOUR_APC_IP_ADDRESS> -m all
Are you positive that your device actually uses "powernet405.mib"? It's seems like this is a MIB used for SNMP traps, so you are not going to be able to snmpwalk it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
shakra2005
Posts: 70
Joined: Sun Aug 05, 2012 4:24 pm

Re: cannot import MIBS

Post by shakra2005 »

Did not find 'enterprises' in module RFC1155-SMI (/usr/share/snmp/mibs/nsascsi.mib)
Unlinked OID in HPNSASCSI-MIB: hp ::= { enterprises 11 }

Unlinked OID in CPQIODRV-MIB: compaq# ::= { compaq 0 }

Did not find 'compaq' in module CPQHOST-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'ifIndex' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'ifDescr' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'sysName' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'sysDescr' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'sysContact' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'sysLocation' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: cannot import MIBS

Post by sreinhardt »

Based on the error, it looks like you may be using a mib that requires non-free mibs that are no longer packaged with snmp rpms. The other option appears to be adding a -M /usr/share/snmp/mibs/ to the snmpwalk command. This forces the directory and with the -m all command will include all mibs located there.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
shakra2005
Posts: 70
Joined: Sun Aug 05, 2012 4:24 pm

Re: cannot import MIBS

Post by shakra2005 »

Same Error with the APC

when i check a Cisco Switch it runs with more MIBS
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: cannot import MIBS

Post by scottwilkerson »

Is there a specific value you are looking for from this device?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
shakra2005
Posts: 70
Joined: Sun Aug 05, 2012 4:24 pm

Re: cannot import MIBS

Post by shakra2005 »

no,

i want to receive all crtical Traps from the Device
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: cannot import MIBS

Post by scottwilkerson »

You cannot view traps by doing an SNMP walk.

Have you setup this device to send traps to your XI server IP Address?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
shakra2005
Posts: 70
Joined: Sun Aug 05, 2012 4:24 pm

Re: cannot import MIBS

Post by shakra2005 »

for traps i must configure snmptt right ?

What must i do to monitor the hardware status
Locked