Problem with custom SNMP query for a Delta Electronics UPS

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
OwenB
Posts: 5
Joined: Mon Oct 20, 2014 5:47 am

Problem with custom SNMP query for a Delta Electronics UPS

Post by OwenB »

Hi there,

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
Issue:

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
Please note: those are friendly names I've assigned. The MIB seems to have other names for them.

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 go through the process of building the Data Query, the Data Template, Associating the query with the device (which currently reports 0 items, 0 rows), creating a Graph Template, associating that with the data query and adding the graph to a device.

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
OwenB
Posts: 5
Joined: Mon Oct 20, 2014 5:47 am

Re: Problem with custom SNMP query for a Delta Electronics U

Post by OwenB »

Apologies, but if it helps I believe this UPS is using the "upsv4.0.1.0" standard.
OwenB
Posts: 5
Joined: Mon Oct 20, 2014 5:47 am

Re: Problem with custom SNMP query for a Delta Electronics U

Post by OwenB »

After a bit more digging it appears what I want to do is something similar to what has been done for the "SNMP - Generic OID Template" graphs.

Does anyone know where I could find the back-end items for that template?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests