APC UPS Data Center & Enterprise Solutions Forum
Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
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.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
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.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
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).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
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?
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
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.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
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
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 11:17 PM . Last Modified: 2024-03-06 03:21 AM
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.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.