check_ups: Critical time must be a positive integer - ups

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ehehron
Posts: 2
Joined: Sat Sep 12, 2020 6:45 pm

check_ups: Critical time must be a positive integer - ups

Post by ehehron »

Hello,

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:~$
My commands.cfg entry

Code: Select all

define command{
        command_name check_ups
        command_line $USER1$/check_ups -H $ARG1$ -u $ARG2$ -c $ARG2$
}
My localhost.cfg entry:

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
}
I have looked at the documentation, and I just don't understand what I'm missing. I'm sure it's something super simple.
ehehron
Posts: 2
Joined: Sat Sep 12, 2020 6:45 pm

Re: check_ups: Critical time must be a positive integer - up

Post by ehehron »

Any one?
Locked