Apr 24, 2012 6:57 PM
Tutorial request
-
Like (0)
I'm looking for a tutorial in how to generate graphs similar to the built in "interfaces" section. I want to go to walk a MIB branch, match the number of leaves on it, and generate a unique graph on each leaf. For instance, say I have a device that has:
.1.3.6.1.4.1.XXX.3.1.[1-4].[1-2]
.1.3.6.1.4.1.XXX.3.1.1.1 = valueA1
.1.3.6.1.4.1.XXX.3.1.1.2 = valueA2
.1.3.6.1.4.1.XXX.3.1.2.1 = valueB1
.1.3.6.1.4.1.XXX.3.1.2.2 = valueB2
.1.3.6.1.4.1.XXX.3.1.3.1 = valueC1
.1.3.6.1.4.1.XXX.3.1.3.2 = valueC2
.1.3.6.1.4.1.XXX.3.1.4.1 = name1
.1.3.6.1.4.1.XXX.3.1.4.2 = name2
The final [1-2] will be an different number per device, so I won't know exactly how many entries are in in advance. I want to plot .1.3.6.1.4.1.XXX.3.1.X.1 and .1.3.6.1.4.1.XXX.3.1.X.2 on two separate graphs, linked to their names. This is pretty much exactly like the interface graphs, but I don't see a way of doing it. Can anyone point me in the right direction?
Its tough to answer without knowing the device type in question, but at a high level you probably want to look at adding a new component type. You should look Jane Curry's ZenPack development paper
Thanks for the reply - I will look in to that. The device I'm working on is a specialized switch, but I assume the same technique should apply to any scenario. For instance, if I want to monitor devices that arbitrary number of CPU cores, right now I create graphs that pull all possible ones (32 cores in my case), although that leaves a large number of them in graphs as NaN for a device that has only 8 cores.
My ZenPack paper ( docs/DOC-10268 ) actually uses as an example, switches that support the BRIDGE MIB so hopefully you should find that it maps reasonably well to what you want to do. The Bridge MIB ZenPack is aalso available at docs/DOC-3583 .
Cheers,
Jane
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||