Re: UPS battery lifetime alert
Posted: Fri Nov 04, 2016 1:36 pm
What do you mean that the replacement date was too old? Also, what do you mean in both cases? I thought the UPS GUI was showing it replaced.
Support for Nagios products and services
https://support.nagios.com/forum/
I am very confused, that is polling an integer value.sa77if wrote:is this fine?
***** Nagios *****
Notification Type: PROBLEM
Service: Check UPS Battery LifeTime
Host: SmartUPS 2200B
Address: 192.168.0.7
State: CRITICAL
Date/Time: Fri Nov 4 11:04:40 PDT 2016
Additional Info:
SNMP CRITICAL - Battery LifeTime *60000*
Why do you expect changing a date on your appliance GUI is going to effect the OID value? Your alert is from that OID value, not on some date. If you expect that OID value to change after your process and it isn't, that is a question for your device manufacturer. Nagios can only act on the information it is given.after replacing the old batteries i logged into the UPS and changed the date to the replacement date but still getting the warning with the same values
sa77if wrote:sorry just found it at another folder
Code: Select all
# 'snmp_ups_stat' command definition define command{ command_name snmp_ups_stat command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 3 -c 4 -l 'Battery LifeTime' }
sa77if wrote: ***** Nagios *****
Notification Type: PROBLEM
Service: Check UPS Battery LifeTime
Host: SmartUPS 2200B
Address: 192.168.0.7
State: CRITICAL
Date/Time: Fri Nov 4 11:04:40 PDT 2016
Additional Info:
SNMP CRITICAL - Battery LifeTime *60000*
Yes, you'll need to change the -c and -w to something like this. Also, if I were you I'd change the name to Battery RunTime.sa77if wrote:so its not the battery lifetime that warn for replacing
its the one that warn for remaining charge
ok, how can raise the values to reduce warnings like that, because i am on AC its not important to have 10m or 5m
Code: Select all
# 'snmp_ups_stat' command definition
define command{
command_name snmp_ups_stat
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 30000 -c 18000 -l 'Battery RunTime'
}