Page 1 of 1

check_nagios command on remote host

Posted: Fri Oct 25, 2013 4:21 pm
by vhoover
I am trying to setup a check in NagiosXI using the following command:

./check_nagios -e 5 -F /usr/local/nagios/var/nagios.log -C /usr/local/nagios/bin/nagios

I can get it to run locally with no issue, but if I apply it to a remote host and stop the nagios service on that host the command still pulls information from the local host. I am setting this up as a verification for a failover implementation of NagiosXI. Is there a way to apply this to a remote host, or is there an equivalent?

Re: check_nagios command on remote host

Posted: Mon Oct 28, 2013 10:14 am
by tmcdonald
check_nagios only works on the localhost. You will need to implement passive or remote checks via NRPE.

Re: check_nagios command on remote host

Posted: Mon Oct 28, 2013 11:17 am
by vhoover
That is what I figured, I just wanted to make sure.