Background info:
- I used CactiEZ to setup this install, so it's running Cent OS 6.5 and Cacti 0.8.8b (patched to fix the COMMENT issue with thumbnail graphs)
- I'm used to Windows admin, and have recently started delving into Linux, so my Linux knowledge is growing (slowly)
- This is my first real in-depth experience with SNMP and how to query things
I'm trying to use Cacti to monitor a Delta Electronics UPS and I'm hitting some stumbling blocks.
I've tried following some tutorials (e.g. this one: http://www.mad-hacking.net/documentatio ... -query.xml) however the issue I seem to be stumbling on most is that the Delta UPS doesn't seem to provide information in the same manner as the devices in examples do.
What I mean by that is, there aren't any obvious indexes when I use SNMPtable or SNMPwalk. The example I linked above is an obvious table, however the information I can pull out of the Delta isn't. I've found a MIB file, and I've used that along side SNMPwalk to understand which OID's I want to query; however I can't seem to get the XML syntax quite right.
So, if I run: "snmpwalk -v 1 -c public upsHostName -m DeltaUPS-MIB .1.3.6.1.4.1.2254.2.4"
I get a list of all of the different data points and I want to be able to graph a subset of them. Additionally, it seems the items are grouped into subsets along these lines:
- .1.3.6.1.4.1.2254.2.4.1 - upsSystemInfo
- .1.3.6.1.4.1.2254.2.4.2 - upsSystemActions
- .1.3.6.1.4.1.2254.2.4.3 - upsConfigSettings
- .1.3.6.1.4.1.2254.2.4.4 - upsInputItems
- .1.3.6.1.4.1.2254.2.4.5 - upsOutputItems
- .1.3.6.1.4.1.2254.2.4.6 - upsBypassItems
- .1.3.6.1.4.1.2254.2.4.7 - upsBatteryItems
- .1.3.6.1.4.1.2254.2.4.8 - upsTestItems
- .1.3.6.1.4.1.2254.2.4.9 - upsAlarmItems
- .1.3.6.1.4.1.2254.2.4.10 - upsEnvironmentItems
Ideally I want to pull back items from 4 of those groups.
As I understand it the XML query needs to have an index, but I'm unsure what to use (...1.2254.2.4 or ...1.2254.2.4.1 etc.) so my xml looks like this at the moment:
Code: Select all
<interface>
<name>Get Delta UPS System Information</name>
<description>Get SNMP based information out of DeltaUPS</description>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.2254.2.4.1</oid_index>
<fields>
<upsRatingOutputVA>
<name>RatingOutputVA</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2254.2.4.1.7</oid>
</upsRatingOutputVA>
<upsRatingOutputVoltage>
<name>RatingOutputVoltage</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2254.2.4.1.8</oid>
</upsRatingOutputVoltage>
<upsRatingOutputFrequency>
<name>RatingOutputFrequency</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2254.2.4.1.9</oid>
</upsRatingOutputFrequency>
<upsRatingInputVoltage>
<name>RatingInputVoltage</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2254.2.4.1.10</oid>
</upsRatingInputVoltage>
<upsRatingInputFrequency>
<name>RatingInputFrequency</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2254.2.4.1.11</oid>
</upsRatingInputFrequency>
<upsRatingBatteryVoltage>
<name>RatingBatteryVoltage</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2254.2.4.1.12</oid>
</upsRatingBatteryVoltage>
</fields>
</interface>
I have had the query reporting data back (at the bottom of the device config), however that's when using "input" as the direction and that doesn't allow the drop down boxes in Associated Data Templates section aren't empty.
Can anyone shed some light on where I'm going wrong here? I feel like I've started revolving with this issue.
If there is anything that would be useful to help troubleshoot this let me know and I'll provide it (if I can).
Thanks,
Owen