Monitor APC UPS via SNMP

Started by slm4996, December 05, 2012, 05:44:34 PM

Previous topic - Next topic

slm4996

I have been trying to monitor some of our APC networked UPS via their SNMP interface. Now I am completely new to NetXMS so probably this error is entirely my fault :-) .

I added a new DCI for the UPS using snmp and the oid of .1.3.6.1.4.1.318.1.1.1.2.2.3 (upsAdvBatteryRunTimeRemaining) and I get the error:
Status of DCI 975 (SNMP: .1.3.6.1.4.1.318.1.1.1.2.2.3) changed to UNSUPPORTED


Here is the output of a snmpget of that OID:
.1.3.6.1.4.1.318.1.1.1.2.2.3.0 = Timeticks: (2412000) 6:42:00.00

I should add that I have tried all of the available "Data Types" for the snmp return string.

lindeamon

hi,

the snmpget adds the .0 at the end and this is what you should add to the snmp of the dci.
here is a link to a template i wrote in which you can see when i had to use .1 or .3 instead of .0
https://www.netxms.org/forum/general-support/sharing-standard-templates-for-netxms/msg9024/#msg9024
there is a cool freeware tool from manageengine called snmp mib broswer in which you can load mib files, query the node according to it and see if you need to add the .0 .1 or anything else.

have fun,
Lindeamon

SKYnv

i'm use these oids

1) upsAdvInputLineVoltage
.1.3.6.1.4.1.318.1.1.1.3.2.1.0

2) upsAdvOutputVoltage
.1.3.6.1.4.1.318.1.1.1.4.2.1.0

3) upsAdvOutputLoad
.1.3.6.1.4.1.318.1.1.1.4.2.3.0

3) upsAdvBatteryCapacity
.1.3.6.1.4.1.318.1.1.1.2.2.1.0

4) upsAdvBatteryTemperature
.1.3.6.1.4.1.318.1.1.1.2.2.2.0

5) upsAdvRunTimeRemaining
.1.3.6.1.4.1.318.1.1.1.2.2.3.0

6) upsBasicBatteryTimeOnBattery
.1.3.6.1.4.1.318.1.1.1.2.1.2.0

for this oid i use this transformation script for converting to minutes.

sub main()
{
return ($1/6000);
}


7) upsBasicBatteryStatus
.1.3.6.1.4.1.318.1.1.1.2.1.1.0

don't forget about instance ('.0' on the end of oid)

slm4996

Thank everyone, I was forgetting the .0 on the end