NetXMS Support Forum

English Support => General Support => Topic started by: slm4996 on December 05, 2012, 05:44:34 PM

Title: Monitor APC UPS via SNMP
Post by: slm4996 on December 05, 2012, 05:44:34 PM
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.
Title: Re: Monitor APC UPS via SNMP
Post by: lindeamon on December 05, 2012, 09:55:21 PM
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
Title: Re: Monitor APC UPS via SNMP
Post by: SKYnv on December 07, 2012, 12:47:26 PM
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)
Title: Re: Monitor APC UPS via SNMP
Post by: slm4996 on December 07, 2012, 01:20:19 PM
Thank everyone, I was forgetting the .0 on the end