XML interface

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Locked
azhnm2006
Posts: 14
Joined: Mon Mar 28, 2022 8:37 am

XML interface

Post by azhnm2006 »

I'm trying to build new xml file. the MIB OID as follow :

snmpwalk -v 2c -c Hamed_1234 10.100.150.164 1.3.6.1.4.1.2011.2.25.4.70.10.10.20.1.5.7
SNMPv2-SMI::enterprises.2011.2.25.4.70.10.10.20.1.5.7.255.7 = INTEGER: 258
SNMPv2-SMI::enterprises.2011.2.25.4.70.10.10.20.1.5.7.255.8 = INTEGER: 258
SNMPv2-SMI::enterprises.2011.2.25.4.70.10.10.20.1.5.7.255.9 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.2.25.4.70.10.10.20.1.5.7.255.10 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.2.25.4.70.10.10.20.1.5.7.255.11 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.2.25.4.70.10.10.20.1.5.7.255.12 = INTEGER: 0

here is my xml file

<Interface>
<name>Get SNMP Interfaces</name>
<description>Queries a host for a list of monitorable interfaces</description>
<oid_index>.1.3.6.1.4.1.2011.2.25.4.70.10.10.20.1.5.7</oid_index>
<index_order>ifIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>

<fields>
<ifIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2011.2.25.4.70.10.10.20.1.5.7</oid>
</ifIndex>
</fields>
<Interface>


otal: 0.000000, Delta: 0.000000, Found data query XML file at '/opt/cacti-1.2.19/resource/snmp_queries/TEST.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [10].
Total: 0.000000, Delta: 0.000000, Found Type = '3' [SNMP Query].
Total: 0.000000, Delta: 0.000000, Found data query XML file at '/opt/cacti-1.2.19/resource/snmp_queries/TEST.xml'
Total: 0.000000, Delta: 0.000000, Error parsing XML file into an array.

please could you support
azhnm2006
Posts: 14
Joined: Mon Mar 28, 2022 8:37 am

Re: XML interface

Post by azhnm2006 »

we can close this case. as was the permission wrong of the file
Locked

Who is online

Users browsing this forum: No registered users and 1 guest