Adding MIBS into Zenoss
From SysAdminWiki
So far getting extra mibs loaded into zenoss has been the most confusing part about it i've come across yet. I assume its because my lack of knowledge of mibs, tho all the tutorials make it seem so easy.
EDIT: Its actually pretty straightforward now that i'm not mib illerate anymore. Spend some time learning what mibs are if your knowledge is weak on them, it will same lots of frustration.
Contents |
What is a MIB?
A MIB (Management Information Base) is defined as a database of management information called managed objects. Each object represents some resource to be managed. It is used and maintained by a network management protocol such as SNMP. The values of the MIB object can be changed or retrieved using SNMP commands, usually through a GUI network management system.
Where to get MIBS
http://www.plixer.com/support/mib_resources.php
Procedure
- 1. Make a new folder in $ZENHOME/share/site/ for the new mibs you want to load.
- 2. Copy the mibs into that folder. Change into that directory as well if you are not already there.
- 3. run 'zenmib run *'
- 4. If it worked you can see them in the mibs section in the site now. If it didnt work check out the troubleshooting section.
Here is an example of a successful load, these are mibs for the IRONPORT email device:
zenoss:/usr/zenoss/share/mibs/site/ironport # zenmib run * INFO:zen.zenmib:Skipping file /usr/zenoss/share/mibs/irtf/IRTF-NMRG-SMING INFO:zen.zenmib:Skipping file /usr/zenoss/share/mibs/irtf/IRTF-NMRG-SMING-TYPES INFO:zen.zenmib:Skipping file /usr/zenoss/share/mibs/irtf/IRTF-NMRG-SMING-EXTENSIONS INFO:zen.zenmib:Loaded mib ASYNCOS-MAIL-MIB INFO:zen.zenmib:Loaded mib IRONPORT-SMI
- NOTE:There is now a zenpack that allows you to add mibs via the webUI instead of the command line. The zenpack has a couple really neat features. I've been loading mibs with this the most recently due to the time it saves. It can be downloaded from here.
Troubleshooting
Best thing to do here is make zenmib verbose as hell and spit everything out at you:
zenmib run -v 10
Check to see what its complaining about.
If you are seeing something like this:
INFO:zen.zenmib:Loaded mib RAID-Adapter-MIB INFO:zen.zenmib:Unable to find a file providing the MIB RFC1155-SMI INFO:zen.zenmib:Unable to find a file providing the MIB RFC1213-MIB INFO:zen.zenmib:Unable to find a file providing the MIB RFC-1212 INFO:zen.zenmib:Unable to find a file providing the MIB RFC-1215
Try this command (subsitute or add the paths to mibs your mibload is complaining about specifically):
zenmib run <mibname> /usr/local/zenoss/common/share/mibs/site/hpproliant/cpqhost.mib /usr/local /zenoss/common/share/mibs/site/hpproliant/cpqstdeq.mib /usr/local/zenoss/common/share/mibs/site /hpproliant/cpqsinfo.mib /usr/local/zenoss/common/share/mibs/site/hpproliant/cpqstsys.mib /usr/local /zenoss/common/share/mibs/site/hpproliant/compaq-agent.mib /usr/local/zenoss/common/share/mibs/site /hpproliant/compaq-id-rec.mib /usr/local/zenoss/common/share/mibs/site/hpproliant/cpqrack.mib /usr/local/zenoss/common/share/mibs/ietf/RFC1155-SMI /usr/local/zenoss/common/share/mibs/ietf /RFC1213-MIB /usr/local/zenoss/common/share/mibs/ietf/RFC-1212 /usr/local/zenoss/common/share /mibs/ietf/RFC-1215 /usr/local/zenoss/common/share/mibs/ietf/RFC1158-MIB
