Page 1 of 1

check_xi_by_ssh

Posted: Wed Oct 02, 2013 9:26 pm
by aquinlan
Recently installed a CentOS virtual host loaded with preconfigured NagiosXI. I'm trying to use the SSH Wizard but each time I try to configure a system I get '(Return code of 127 is out of bounds - plugin may be missing)'. The system being monitored is a Solaris 8 system so I don't think that nrpe is an option.

The service configuration file has these entries:

host_name italy
service_description Total Processes
use generic-service
check_command check_xi_by_ssh!-C "/usr/local/nagios/libexec/check_procs -w 150 -c 170"
...

I can find no check_xi_by_ssh executable on the nagios server. I looked or check_by_ssh but found no linux executable for that either.

What's wrong here?

Thanks for any help
aquinlan

Re: check_xi_by_ssh

Posted: Thu Oct 03, 2013 10:14 am
by slansing
check_by_ssh should be located in:

Code: Select all

/usr/local/nagios/libexec
Do you get the same error when you manually run the command from the CLI?

Re: check_xi_by_ssh

Posted: Thu Oct 03, 2013 1:53 pm
by aquinlan
That's where I looked but it wasn't there. I was unable to find a check_xi_by_ssh anywhere either. Without finding the executables, how can I test the configuration file entry?

Re: check_xi_by_ssh

Posted: Thu Oct 03, 2013 5:01 pm
by scottwilkerson
Actually, the path to the executable is

Code: Select all

/usr/local/nagios/libexec/check_by_ssh
check_xi_by_ssh is the name of the command.

If somehow you are missing the plugin, you can to the following and it should compile it

Code: Select all

wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd /tmp/nagiosxi/subcomponents/nagiosplugins/
./install