Page 1 of 1

Return code of -1 is out of bounds on check_time

Posted: Wed Mar 27, 2013 6:22 am
by johndoe
I've got the plugin check_time in some of my machines, however some of them are returning me a CRITICAL status "Return code of -1 is out of bounds"

I'm using the following: check_command check_time!localhost!37!30!90

When run by hand all seems ok, and it gives me an OK status.

What can be the problem here?

Re: Return code of -1 is out of bounds on check_time

Posted: Wed Mar 27, 2013 8:50 am
by slansing
Can you show us an example of your command definition from within Nagios xi, and how you run the plugin manually from the Nagios command line to the remote server when it works?

Configuration > CCM > Commands.

Re: Return code of -1 is out of bounds on check_time

Posted: Thu Mar 28, 2013 5:54 am
by johndoe
Thanks for the reply slansing, It appears it was a misconfiguration on my side from a variable badly placed, this thread can be binned