oid_index_parse in SNMP query not working

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

Moderators: Developers, Moderators

Post Reply
mait
Posts: 16
Joined: Wed Feb 23, 2005 2:14 am

oid_index_parse in SNMP query not working

Post by mait »

hey,

has anyone successfully used the oid_index_parse -feature in SNMP query?

it works fine, until i add another 'direction -> input' -field to the query which returns "all" instances (not only the one that the oid_index_parse passes)


at the same time, i do need these additional input field to show other data ...

as in the following:

+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.10.7.2.1.1'
+ Located input field 'myIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.10.7.2.1.1'
+ Found item [myIndex='1'] index: 1 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='ae0'] index: 1 [from value]
+ Found item [ifDescr='lo0'] index: 2 [from value]
+ Found item [ifDescr='ar0'] index: 3 [from value]
+ Found item [ifDescr='ar1'] index: 4 [from value]


Mait
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need to post the entire Walk. Then also post the xml file if you want an answer.

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?
mait
Posts: 16
Joined: Wed Feb 23, 2005 2:14 am

Post by mait »

hey,

here's the query:

+ Running data query [14].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/data_query_rfc1643.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.10.7.2.1.1'
+ Located input field 'dot3StatsIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.10.7.2.1.1'
+ Found item [dot3StatsIndex='1'] index: 1 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='dp0'] index: 1 [from value]
+ Found item [ifDescr='lo0'] index: 2 [from value]
+ Found item [ifDescr='wlc0'] index: 3 [from value]
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/data_query_rfc1643.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/data_query_rfc1643.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/data_query_rfc1643.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/data_query_rfc1643.xml'


and the xml of the query is attached.

ps: i guess i should redefine the problem:
oid_index_parse may not be the source of the problem, rather the fact that altghough the walk of oid_index -OID results in 1 entry, adding additional input -fields presents me ALL the indexes
(one would think that specifying the oid_index would restrict the indexes to this OID, no matter what other input field are alson present)


Mait
Attachments
data_query_rfc1643.xml
(3.77 KiB) Downloaded 201 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please run the following command from the command line and post your results:

Code: Select all

snmpwalk -c <yourcommunity> -v <yourversion> <yourhost> <startingoid>
The starting OID will be the base for the query in question.

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?
mait
Posts: 16
Joined: Wed Feb 23, 2005 2:14 am

Post by mait »

hi,

if by 'starting oid' you mean the 'oid_index', then here's the output:

[root@localhost root]# snmpwalk -c public -v 1 1.1.1.1 .1.3.6.1.2.1.10.7.2.1.1
SNMPv2-SMI::transmission.7.2.1.1.1 = INTEGER: 1
[root@localhost root]#

Mait
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please backup enough digits to display the entire tree.

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?
mait
Posts: 16
Joined: Wed Feb 23, 2005 2:14 am

Post by mait »

hey,

if i back up from that OID, i end up in the 'root' OID.
the only OID that shows me the entire index is the standard ifIndex.

Mait
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hmm. Please walk the entire tree and e-mail to me. Although, '.1.3.6.1.2.1.10.7.2.1' Should have gotten it. I will not take a look at the XML file as well. Thanks!

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests