APC UPS Data Center & Enterprise Solutions Forum
Schneider Electric support forum for our Data Center and Business Power UPS, UPS Accessories, Software, Services, and associated commercial products designed to share knowledge, installation, and configuration.
Posted: 2021-06-30 11:17 PM
This was originally posted on APC forums on 2/9/2011
I am using the following MIB's with snmpget/nagios fine:
......
.1.3.6.1.4.1.318.1.1.1.2.1.1.0 Main Battery Status
.1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1 Environment Temperature in degree F
.1.3.6.1.4.1.318.1.1.1.2.2.1.0 Battery Capacity %
.1.3.6.1.4.1.318.1.1.1.2.2.2.0 Internal Temperature in degree celsius
.1.3.6.1.4.1.318.1.1.1.4.2.3.0 Output Load %
.1.3.6.1.4.1.318.1.1.1.4.2.4.0 Output Current in Ampere 3~'
.1.3.6.1.4.1.318.1.1.1.4.2.1.0 Output Voltage in Volt 3~'
.1.3.6.1.4.1.318.1.1.1.4.2.2.0 Output Frequency in Herz'
......
but can't figure out the OID I need to get battery runtime, I want to get several more data points, is there a list somewhere? I've run snmpwalk, but need help decoding the big long list it produces so I can port it to nagios check_snmp.
Posted: 2021-06-30 11:17 PM
This was originally posted on APC forums on 4/1/2011
turns out the OID was correct, but check_snmp in nagios isn't convering units when used in conjunction with -w and -c (warning and critical) flags enabled for some reason, so this
check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -l 'Runtime Remaining' -u 'Minutes'
returns
SNMP OK - Runtime Remaining Timeticks: (132000) 0:22:00.00 Minutes |
but wouldn't trigger an event if it was low, making nagios3 notification useless, but this:
check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 130000 -c 100000 -l 'Runtime Remaining' -u 'Minutes'
returns the output in seconds for some reasons like
SNMP CRITICAL - Runtime Remaining *132000* Minutes | Runtime Remaining=132000
and does the same if I specify units in minutes too. I've looked into the various range formats you can specify for units, but haven't found much, even after asking on the nagios users list, I don't know what to do, this must be a common requirement: monitor apc9619 runtime in minutes with threshold triggers on a Debian Squeeze Nagios3 server, should be simple I'd think.
Posted: 2021-06-30 11:17 PM
This reply was originally posted by Jonathan on APC forums on 2/10/2011
On the UPS that I have, I used the OID of .1.3.6.1.4.1.318.1.1.1.2.2.3.0 to get the Runtime Remaining (upsAdvBatteryRunTimeRemaining). I hope this is the one that you are looking for, by the way the UPS that I used was a regular APC Smart-UPS (SUA1500RM2U).
Posted: 2021-06-30 11:17 PM
This was originally posted on APC forums on 2/11/2011
thanks. Somehow I get a battery-runtime of 132000 minutes, is that a unit or config issue, or am I looking at the wrong oid?
Posted: 2021-06-30 11:17 PM
This was originally posted on APC forums on 2/11/2011
I guess the bigger question is how would I find out the overall schema, trying to understand how to understand the OID's on a snmp device, starting with this one.
Posted: 2021-06-30 11:17 PM
This reply was originally posted by Angela on APC forums on 2/11/2011
sometimes it will give you the runtime in seconds or a different, unexpected unit of measure. you may want to use a MIB browser or another tool that also gives you the descriptions of the OIDs to find out what unit the value returns in or to see if you have to move the decimal point, etc
Posted: 2021-06-30 11:17 PM
This was originally posted on APC forums on 4/1/2011
turns out the OID was correct, but check_snmp in nagios isn't convering units when used in conjunction with -w and -c (warning and critical) flags enabled for some reason, so this
check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -l 'Runtime Remaining' -u 'Minutes'
returns
SNMP OK - Runtime Remaining Timeticks: (132000) 0:22:00.00 Minutes |
but wouldn't trigger an event if it was low, making nagios3 notification useless, but this:
check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 130000 -c 100000 -l 'Runtime Remaining' -u 'Minutes'
returns the output in seconds for some reasons like
SNMP CRITICAL - Runtime Remaining *132000* Minutes | Runtime Remaining=132000
and does the same if I specify units in minutes too. I've looked into the various range formats you can specify for units, but haven't found much, even after asking on the nagios users list, I don't know what to do, this must be a common requirement: monitor apc9619 runtime in minutes with threshold triggers on a Debian Squeeze Nagios3 server, should be simple I'd think.
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.