brijniersce
Joined: 05 Aug 2008 Posts: 1
|
Posted: Tue Aug 05, 2008 2:18 pm Post subject: Problem getting data into Cacti from my Smart-UPS 1500 XML |
|
|
Hello,
I'm trying to graph the temperature measured by my APC Smart-UPS 1500 and have some trouble getting the data read.
I used the Powernet MIB provide by APC to figure out that .1.3.6.1.4.1.318.1.1.1.2.2.2.0 is PowerNet-MIB::upsAdvBatteryTemperature.0 = Gauge32: 35
I created a data query XML (documentation is quite confusing, so my guess is that the problem is here) that looks like:
<interface>
<name>APC SmartUPS</name>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.318.1.1.1.1.1.1.0</oid_index>
<fields>
<apcCapacity>
<name>Capacity</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.318.1.1.1.2.2.1.0</oid>
</apcCapacity>
<apcBatTemp>
<name>Battery Temperature</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.318.1.1.1.2.2.2.0</oid>
</apcBatTemp>
</fields>
</interface>
When I go to "Devices" in Cacti, I have the correct (?) data query and after switching to SNMP v1 the top of the page shows the correct location, so it's getting data from the device. But the "Verbose query" link show:
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/apc.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.318.1.1.1.1.1.1.0'
+ No SNMP data returned
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/apc.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/apc.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/apc.xml'
So it's not seeing the data?
Where am I going wrong?
Tx
Bas |
|