Jan 7, 2010 12:11 PM
Nice oid to datasource loader script
-
Like (0)
Per the discussion in IRC, here's a script we use around here for loading oid's from a mib into a template.
Chip
Zenoss
Any usage notes for this script?
Looking at the script source code, it looks like you do
bulkLoadSnmpCounters {/Device/Class,TemplateName}
Of course, where their code would spit out the WMI part, it's actually looking for OIDs in a MIB file. It's a short script, looking at the code does show some cool stuff you can do with dmd and apparently some methods they expose in Zenoss core.
This should be prominently placed I think . . . I'll make a FAQ entry.
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
Created a template MMCisco under Devices -> Network -> MMCisco
Uploaded the mib CISCO-STACK-MIB.mib along with bulkLoadSnmpCounters.py to the same folder.
Tried running both:
python bulkLoadSnmpCounters.py /Devices/Network,MMCisco CISCO-STACK-MIB.mib
python bulkLoadSnmpCounters.py /Network,MMCisco CISCO-STACK-MIB.mib
But keep getting the error:
Traceback (most recent call last):
File "bulkLoadSnmpCounters.py", line 50, in <module>
(id, oid, type) = dp.split(" ")
ValueError: need more than 2 values to unpack
I thought this script would allow me to create a template and then load a mib into the data sources of my template. Did I misunderstand something? Is there a problem loading the Cisco MIB's?
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||