Insert index into OID for xml query

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

Moderators: Developers, Moderators

Post Reply
cpubob
Posts: 2
Joined: Fri Oct 27, 2006 10:24 am

Insert index into OID for xml query

Post by cpubob »

I have a set of OID's that have the index in the middle of the oid, rather then the end: example:

the index is .1.3.6.1.4.1.4641.4.1.1.1.2.1.2.(something)

an example would be :
.1.3.6.1.4.1.4641.4.1.1.1.2.1.2.13 = STRING: "congested"

To collect stats on this item, the input and output are as follows:

.1.3.6.1.4.1.4641.4.2.1.1.2.1.14.1.13.1.2.1.2 = Counter64: 45124

.1.3.6.1.4.1.4641.4.2.1.1.2.1.14.1.13.2.1.2.1 = Counter64: 658645

The 13 is the index and is inserted into the oid to get the stats for the items, inbound being 1.2.1.2 and outbound being 2.1.2.1.

Currenlty I have an XML query that is able to get a list of the items and now I want to collect stats from them but I could not find anything on the forum on inserting the index value into the oid. Is this possible?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

AFAIK no, as the index is always appended to the fields OID (that's why it is called an index). But there are some very "creative" snmp implementors out there in the wild ...
You may want to build a script data query, where you can do what you want, see http://docs.cacti.net/node/284 for a walkthrough
Reinhard
cpubob
Posts: 2
Joined: Fri Oct 27, 2006 10:24 am

Post by cpubob »

thanks for the reply. After checking the forum I figured that was what I would have to do but I wanted to double check. Thanks for the links also.

-Rob
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest