Page 1 of 1

Connection refused while manual check succeeds

Posted: Thu Jan 20, 2011 9:50 am
by remc0
Hi,

We are evaluating NagiosXI as possible monitoring solution.

When I try to monitor a Windows host through nrpe, I get an error: connection refused.

When I do a manual test from the NagiosXI server it succeeds. I do that with this command:

Code: Select all

[root@localhost libexec]# ./check_nrpe -H 192.168.50.14
I (0.3.7.493 2009-10-12) seem to be doing fine...
[root@localhost libexec]#
The strange thing is that I always used to do it with groundwork, and that setup works fine.
I even compared the groundwork nsc.ini with the one of nagiosxi, and I cannot find any changes.

Can someone help ?

Re: Connection refused while manual check succeeds

Posted: Thu Jan 20, 2011 10:16 am
by tonyyarusso
Is your service also calling check_nrpe only with the -H flag, or are you passing a full range of values there?

Re: Connection refused while manual check succeeds

Posted: Thu Jan 20, 2011 10:49 am
by remc0
When I look in the service it calls

Code: Select all

$USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$ 
so, appearantly it calls check_nt.

The service I let check is: check_xi_service_nsclient which is the default after adding a windows server through the wizard.

Re: Connection refused while manual check succeeds

Posted: Mon Jan 24, 2011 11:35 am
by mguthrie
I think check_nt actually calls the check_nrpe plugin. Usually with issues like this there's an argument or set of arguments that needs quotes in the $ARGx$ fields.