Discussion:
Monitoring an SNMP table
joll200x
2011-02-16 16:44:32 UTC
Permalink
Hey all - not sure if I'm approaching this in the wrong way but I'm finding it difficult to find any documentation about graphing and monitoring an OID which returns a table. I can create a template which can pull this OID but it's not clear on how to seperate or format the values that get returned.
 
So in this example - the OID is .1.3.6.1.4.1.3375.2.1.7.3.2 (F5 BIGIP Hard Disk Info) and when walked you get...
 
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.1.1.47 = STRING: "/"
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.1.4.47.117.115.114 = STRING: "/usr"
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.1.4.47.118.97.114 = STRING: "/var"
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.1.7.47.99.111.110.102.105.103 = STRING: "/config"
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.1.7.47.115.104.97.114.101.100 = STRING: "/shared"
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.1.8.47.118.97.114.47.108.111.103 = STRING: "/var/log"
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.2.1.47 = INTEGER: 4096
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.2.4.47.117.115.114 = INTEGER: 4096
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.2.4.47.118.97.114 = INTEGER: 4096
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.2.7.47.99.111.110.102.105.103 = INTEGER: 4096
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.2.7.47.115.104.97.114.101.100 = INTEGER: 4096
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.2.8.47.118.97.114.47.108.111.103 = INTEGER: 4096
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.3.1.47 = INTEGER: 1563269
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.3.4.47.117.115.114 = INTEGER: 1563268
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.3.4.47.118.97.114 = INTEGER: 9379734
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.3.7.47.99.111.110.102.105.103 = INTEGER: 1563268
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.3.7.47.115.104.97.114.101.100 = INTEGER: 7914298
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.3.8.47.118.97.114.47.108.111.103 = INTEGER: 1722496
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.4.1.47 = INTEGER: 1463211
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.4.4.47.117.115.114 = INTEGER: 1336655
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.4.4.47.118.97.114 = INTEGER: 8330811
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.4.7.47.99.111.110.102.105.103 = INTEGER: 1474760
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.4.7.47.115.104.97.114.101.100 = INTEGER: 5605093
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.4.8.47.118.97.114.47.108.111.103 = INTEGER: 1602168
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.5.1.47 = INTEGER: 794976
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.5.4.47.117.115.114 = INTEGER: 794976
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.5.4.47.118.97.114 = INTEGER: 4767744
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.5.7.47.99.111.110.102.105.103 = INTEGER: 794976
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.5.7.47.115.104.97.114.101.100 = INTEGER: 4022592
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.5.8.47.118.97.114.47.108.111.103 = INTEGER: 876096
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.6.1.47 = INTEGER: 774125
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.6.4.47.117.115.114 = INTEGER: 780671
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.6.4.47.118.97.114 = INTEGER: 4764179
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.6.7.47.99.111.110.102.105.103 = INTEGER: 794468
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.6.7.47.115.104.97.114.101.100 = INTEGER: 4022216
SNMPv2-SMI::enterprises.3375.2.1.7.3.2.1.6.8.47.118.97.114.47.108.111.103 = INTEGER: 875942
 
As a table, it looks like Loading Image... - however I don't understand how to configure each one of these OIDs under the top index as a seperate data point. I know I could add each OID seperately but this could potentially change per device so isn't a scalable solution. Can anyone offer any help - or point me toward the right documentation (please don't say the admin guide - it's not there or at least not explained very well). The OID is just an example - the same applies to any tree structure OID as I'm looking to add more in the future. Also - is there a good zenpack tutorial anywhere (there's mention of a 'helloWorld' tutorial but I can't find this?). Thanks all.
 
Stu

--------------------------------------------------------------

To post a reply to the thread message, either reply to this email (recommended) or visit the message page: http://community.zenoss.org/message/56854#56854





--end--
jmp242
2011-02-16 17:27:50 UTC
Permalink
Jane Curry has created a zenpack tutorial here: http://www.skills-1st.co.uk/papers/jane/zenpacks/zenpacks3.pdf
As to tables - I think that is tricky. You may have to look at the dev guide and potentially the quick FAQ on modelers... Also searching the dev forum might give more info.
 
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University

--------------------------------------------------------------

To post a reply to the thread message, either reply to this email (recommended) or visit the message page: http://community.zenoss.org/message/56864#56864





--end--
joll200x
2011-02-16 18:31:49 UTC
Permalink
Hi James - thanks for the link. Unfortunately I've spent most of today trying to understand the PDF (there's a fair amount in there) and I'm still none the wiser. I was hoping to avoid any coding but perhaps thats the only way. I'll take a look in the dev forum - the modeller FAQ might be a step in the right direction. Thanks.

--------------------------------------------------------------

To post a reply to the thread message, either reply to this email (recommended) or visit the message page: http://community.zenoss.org/message/56860#56860





--end--
jmp242
2011-02-16 19:39:23 UTC
Permalink
I believe coding is going to be the only way to tackle a table... Zenoss pretty much in the built in SNMP only does snmpget style requests. You could look at the script to load some of or all of a MIB that was posted last month to see if that plus some bridge code might get you what you want. I created a FAQ entry on that script here:
http://community.zenoss.org/docs/DOC-4724#How_do_I_autoload_a_template_from_a_MIB_file
 
 
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University

--------------------------------------------------------------

To post a reply to the thread message, either reply to this email (recommended) or visit the message page: http://community.zenoss.org/message/56866#56866





--end--
chitambira
2011-02-17 11:35:55 UTC
Permalink
This, to me looks pretty straight foward. I can e asili compare this to the Filesystem table in zenoss for linux devices. That has got two scripts FileSystemMap.py and Filesystem.py, so if you have excaly similar copies (modified appropriately) then you should be able to model, monitor and probably graph (.pt file) your BIGIP filesystems

--------------------------------------------------------------

To post a reply to the thread message, either reply to this email (recommended) or visit the message page: http://community.zenoss.org/message/56898#56898





--end--

Loading...