I am a newbie here. snmp_queries XML files have always given me grief.
<name>Get Raritan PX3-4610R Outlet Values</name>
<oid_index>.1.3.6.1.4.1.13742.6.3.5.3.1.2.1</oid_index>
<index_order>index</index_order>
<index_order_type>numeric</index_order_type>
<fields>
<index>
<name>Index</name>
<source>index</source>
<direction>input</direction>
</index>
<outletrmsVoltage>
<name>rmsVoltage</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.13742.6.5.4.3.1.6.1</oid>
<oid_suffix>4</oid_suffix>
</outletrmsVoltage>
</fields>
I have simplified my file down to just one value and changed direction to "input" for debugging.
+ Running data query [79].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/opt/cacti-app/cacti-0.8.8h/resource/snmp_queries/raritan-outlets.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.13742.6.3.5.3.1.2.1' Index Count: 18
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.1' value: '1'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.2' value: '2'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.3' value: '3'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.4' value: '4'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.5' value: '5'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.6' value: '6'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.7' value: '7'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.8' value: '8'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.9' value: '9'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.10' value: '10'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.11' value: '11'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.12' value: '12'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.13' value: '13'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.14' value: '14'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.15' value: '15'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.16' value: '16'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.17' value: '17'
+ Index found at OID: 'enterprises.13742.6.3.5.3.1.2.1.18' value: '18'
+ Inserting index data for field 'index' [value='1']
+ Inserting index data for field 'index' [value='2']
+ Inserting index data for field 'index' [value='3']
+ Inserting index data for field 'index' [value='4']
+ Inserting index data for field 'index' [value='5']
+ Inserting index data for field 'index' [value='6']
+ Inserting index data for field 'index' [value='7']
+ Inserting index data for field 'index' [value='8']
+ Inserting index data for field 'index' [value='9']
+ Inserting index data for field 'index' [value='10']
+ Inserting index data for field 'index' [value='11']
+ Inserting index data for field 'index' [value='12']
+ Inserting index data for field 'index' [value='13']
+ Inserting index data for field 'index' [value='14']
+ Inserting index data for field 'index' [value='15']
+ Inserting index data for field 'index' [value='16']
+ Inserting index data for field 'index' [value='17']
+ Inserting index data for field 'index' [value='18']
+ Located input field 'outletrmsVoltage' [get]
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.1.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.2.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.3.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.4.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.5.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.6.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.7.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.8.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.9.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.10.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.11.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.12.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.13.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.14.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.15.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.16.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.17.4' [value='240']
+ Executing SNMP get for data @ '.1.3.6.1.4.1.13742.6.5.4.3.1.6.1.18.4' [value='240']
That's doing exactly what I expect and want. But when I turn the <direction>output</direction> and make graphs, the data sources never end up in the poller cache and no rrd files are created. Graphs for the same host that use other snmp_query files seem to work properly.
Cacti Version 0.8.8h
SNMP Version NET-SNMP version: 5.7.2
RRDTool Version RRDTool 1.4.x
Type SPINE 0.8.8h
PHP Version 5.6.40
PHP OS Linux
snmp_queries and oid_suffix
Moderators: Developers, Moderators
-
- Posts: 3
- Joined: Fri Dec 22, 2023 12:30 pm
snmp_queries and oid_suffix
Thanks for being here to help.
-
- Posts: 3
- Joined: Fri Dec 22, 2023 12:30 pm
Re: snmp_queries and oid_suffix
I think perhaps I have posted prematurely.
I found a discrepancy in my data query definition that needs further investigation first.
I found a discrepancy in my data query definition that needs further investigation first.
Thanks for being here to help.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: snmp_queries and oid_suffix
I'm not even sure I could install Cacti 0.8.8h any longer
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?
-
- Posts: 3
- Joined: Fri Dec 22, 2023 12:30 pm
Re: snmp_queries and oid_suffix
The embarrassment of the premature post has made me reluctant to do so over the past 22 years.
I gave in today and posted; and seconds later found a new rabbit hole.
Happy Holidays.
I gave in today and posted; and seconds later found a new rabbit hole.
Happy Holidays.
Thanks for being here to help.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: snmp_queries and oid_suffix
Yea, we've been doing this a long time right? Same to you!
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 2 guests