Interfaces Query <ifIndex> with sub entries

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

Moderators: Developers, Moderators

Post Reply
kschroeder
Posts: 1
Joined: Sun Oct 27, 2013 5:56 am

Interfaces Query <ifIndex> with sub entries

Post by kschroeder »

Hello,

I have an SNMP OID where I have up to 10 Subentries under a ifIndex:

<oid>.<ifIndex>.1
<oid>.<ifIndex>.2
<oid>.<ifIndex>.3
<oid>.<ifIndex>.4

I want to get all the data pushed into cacti without doing all the stuff manually?

Is there any implementation of place-holders/variables that I can use in interfaces.xml:

<oid>x.y.z.ifIndex.1</oid>

When I use just x.y.z I get the response that i.e.l the Index is not 1645789233 as expected, the index is 1, 2, 3 or 4. But these are the elements I want to put into the graph.

Kind Regards,
Kay
squeak
Posts: 27
Joined: Fri Nov 26, 2010 5:59 pm

Re: Interfaces Query <ifIndex> with sub entries

Post by squeak »

Hi,

Just picking up on this thread because i have hit the same issue and have exactly the same requirement. Did you ever find a resolution to this? Or does anyone else know how this can be achieved?

Thanks in advance!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Interfaces Query <ifIndex> with sub entries

Post by BSOD2600 »

Cacti doesn't handle multi valued index queries out of the box. One option is to write a PHP Script Server script which handles the parsing. another possibly method is to use snmp data query script (like the snmp interface one) which then uses a regex to treat the entire x.y.z.ifIndex AS the index... it can work with mixed results.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests