oid_index_parse in SNMP query not working
Moderators: Developers, Moderators
oid_index_parse in SNMP query not working
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
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
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You need to post the entire Walk. Then also post the xml file if you want an answer.
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?
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
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
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please run the following command from the command line and post your results:
The starting OID will be the base for the query in question.
TheWitness
Code: Select all
snmpwalk -c <yourcommunity> -v <yourversion> <yourhost> <startingoid>
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please backup enough digits to display the entire tree.
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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 3 guests