SNMP query, multi-layer index question

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
simestd
Posts: 1
Joined: Mon Jan 24, 2011 4:45 pm

SNMP query, multi-layer index question

Post by simestd »

Hi all,

I'm a Cacti newb, but worked with SNMP quite a bit. I'm building XML query syntax for a DSLAM model I want to poll and I'm having a problem with oid_index.

This particular chassis returns index table entries in the format of Index_Base.slot.port, like so:

Index_Base.1.1 = INTEGER: 1
Index_Base.1.2 = INTEGER: 2
Index_Base.1.3 = INTEGER: 3
Index_Base.1.4 = INTEGER: 4
Index_Base.1.5 = INTEGER: 5
Index_Base.1.6 = INTEGER: 6
Index_Base.1.7 = INTEGER: 7
Index_Base.1.8 = INTEGER: 8
Index_Base.1.9 = INTEGER: 9
Index_Base.1.10 = INTEGER: 10
Index_Base.1.11 = INTEGER: 11
Index_Base.1.12 = INTEGER: 12
Index_Base.1.13 = INTEGER: 13
Index_Base.1.14 = INTEGER: 14
Index_Base.1.15 = INTEGER: 15
Index_Base.1.16 = INTEGER: 16
Index_Base.1.17 = INTEGER: 17
Index_Base.1.18 = INTEGER: 18
Index_Base.1.19 = INTEGER: 19
Index_Base.1.20 = INTEGER: 20
Index_Base.1.21 = INTEGER: 21
Index_Base.1.22 = INTEGER: 22
Index_Base.1.23 = INTEGER: 23
Index_Base.1.24 = INTEGER: 24
Index_Base.2.1 = INTEGER: 1
Index_Base.2.2 = INTEGER: 2
Index_Base.2.3 = INTEGER: 3
Index_Base.2.4 = INTEGER: 4
....

Currently I'm building a separate .xml file per slot but I'm thinking there has to be a more efficient way.
If this is in the docs or the forum somewhere, a gentle pointer would be appreciated and sufficient!

TIA
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP query, multi-layer index question

Post by gandalf »

Please search for OID/REGEXP. YOu may define a regexp that parses a (multi-dimensional) OID index out of your base OID. This will then be used as an index to your <field> definitions.
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests