Script data queries with multiple sets of indexes?

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

Moderators: Developers, Moderators

Post Reply
gm20175
Posts: 14
Joined: Wed Nov 15, 2006 8:07 pm
Location: Tokyo, Japan

Script data queries with multiple sets of indexes?

Post by gm20175 »

Hello,

Are there sample data query scripts that fit this example (or tutorials, etc.)?

There are 2 physical interfaces on a device, each physical interface has 3 virtual interfaces.

We wish to graph 1 physical interface's 3 virtual interfaces' statistics (say, utilization) on one graph (that is, 3 lines on 1 graph).

So, the initial script data query of the device will return 2 rows of data:
physical interface id x, virtual id x1, virtual id x2, virtual id x3
physical interface id y, virtual id y1, virtual id y2, virtual id y3

(the above has been implemented without issue)

Now, when a "get utilization" is performed on id x, 3 outputs are returned:
id x1 utilization, id x2 utilization, id x3 utilization

Then, the 3 values can be graphed on 1 graph.

Excuse me for my lousy explanation, thank you for any help,
gm20175
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I'm not aware of any howto of this kind. Taken into account, that I've written most of the HowTo stuff at http://docs.cacti.net, you will have to search the forums for this. I'm quite sure that you will find none after Dec, 2005
Reinhard
marnues
Posts: 40
Joined: Fri Mar 02, 2007 4:33 pm

Post by marnues »

I'm almost certain you have to use a script Data Query for this.
I'm working on one right now where each interface has 4 Queues that traffic gets stuck in.
So I'm using a script to use the ifIndex and snmp.php to grab all 4 entries for each graphed interface

of course, I can't get the thing to index...my struggles are outlined at http://forums.cacti.net/viewtopic.php?t=21128
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests