Data Query Question

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

Moderators: Developers, Moderators

Post Reply
jkukis
Posts: 29
Joined: Mon Sep 24, 2007 1:41 pm

Data Query Question

Post by jkukis »

From reading the howtos on data queries it seems like they can only be done with indexed snmp variables.
Am I right in assuming that there is no way to use a data query for the below data:

Code: Select all

nms01:# snmpwalk <OUTPUT OMITTED> 1.3.6.1.4.1.5655.4.2.3.1.1.3.1
SNMPv2-SMI::enterprises.5655.4.2.3.1.1.3.1.1 = STRING: "Default Package"
SNMPv2-SMI::enterprises.5655.4.2.3.1.1.3.1.2 = STRING: "Administrative"
SNMPv2-SMI::enterprises.5655.4.2.3.1.1.3.1.3 = STRING: "Residential"
SNMPv2-SMI::enterprises.5655.4.2.3.1.1.3.1.4 = STRING: "Academic"
SNMPv2-SMI::enterprises.5655.4.2.3.1.1.3.1.5 = STRING: "Wireless"
SNMPv2-SMI::enterprises.5655.4.2.3.1.1.3.1.6 = STRING: "Public and Roaming Spaces"
SNMPv2-SMI::enterprises.5655.4.2.3.1.1.3.1.7 = STRING: "Testing"
SNMPv2-SMI::enterprises.5655.4.2.3.1.1.3.1.8 = STRING: "VPN and Dialup"
I would need it to query each of the 8 packages above , and then for each of those there is a corresponding OID that gives a numerical value for each label.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Yes you can, just need to write a script to do the query and spit out the data to cacti. Using the php script server would be a good idea, since its fairly fast/efficient. I've done this for several of my scripts (mib/docsis/etc).
jkukis
Posts: 29
Joined: Mon Sep 24, 2007 1:41 pm

Post by jkukis »

Is there somewhere I can see a sample of a similar script?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You could download the scripts I referenced. they're in my signature. Newest scripts are at the end of the list of scripts I've made.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest