Hi all, I don't know if it is possible to do what I want to do, but what I'm thinking about is to have a Data Query with a "Get Script Data (Indexed)" Data Input Method that, given a index, returns two OIDs (I have already programed this script). Then I would like that Cacti could use these OIDs to draw a graph.
The question is, how can I make the graph use those returned OIDs to get the data?
I cannot use a "Get SNMP Data (Indexed)" Data Query because the device I'm trying to monitor doesn't has the inbound and outbound counters under different trees. I mean, in a Cisco router you have:
.1.3.6.1.2.1.2.2.1.10.1 --> Inbound traffic for interface 1
.1.3.6.1.2.1.2.2.1.10.2 --> Inbound traffic for interface 2
...
.1.3.6.1.2.1.2.2.1.16.1 --> Outbound traffic for interface 1
.1.3.6.1.2.1.2.2.1.16.2 --> Outbound traffic for interface 2
...
But this device has:
.1.3.6.<no care>.5.1233 --> Inbound traffic of class 1
...
.1.3.6.<no care>.5.8543 --> Outbound traffic of class 2
...
.1.3.6.<no care>.5.11894 --> Outbound traffic of class 1
...
.1.3.6.<no care>.5.20019 --> Inbound traffic of class 2
...
For this reason I cannot use a Data Query that uses a "Get SNMP Data (Indexed)" Data Input Method. But I can determine which OIDs are related with some scripting. Then, I would like to make a graph using these OIDs.
It is possible to do what I want to do?
Thanks a lot
SNMP Graphs using OIDs obtained from a Script Data Query
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please research the Index method OID_INDEX_PARSE. There are several posts and a few good examples posted on this forum.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 0 guests