Return code of -1 is out of bounds on check_time

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Return code of -1 is out of bounds on check_time

Post 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?
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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.
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

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

Post 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
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
Locked