Been using Nagios Core for about 3 weeks and really enjoying it.I'm having trouble using check_ups.
I have an NUT server located on a RPi at 1923.168.1.3 at my network, and can be seen using upsc ups@192.168.1.3 on any of the servers where I have a client.
When I add this service, I'm getting the following: check_ups: Critical time must be a positive integer - ups
I am also able to see this same server using the following:
Code: Select all
aaron@maria-fritz:~$ /usr/local/nagios/libexec/check_ups -H 192.168.1.3 -u ups
UPS OK - Status=Online Utility=122.0V Batt=100.0% Load=22.0% Left=30.0min|voltage=122.000000;;;0.000000 battery=100.000000%;;;0.000000;100.000000 load=22.000000%;;;0.000000;100.000000 left=30.000000;;;0.000000
aaron@maria-fritz:~$
Code: Select all
define command{
command_name check_ups
command_line $USER1$/check_ups -H $ARG1$ -u $ARG2$ -c $ARG2$
}
Code: Select all
define service {
use local-service
host_name fritz-grafana
service_description UPS
check_command check_ups!192.168.1.3!ups!60
}