Connection refused while manual check succeeds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
remc0
Posts: 2
Joined: Thu Jan 20, 2011 9:35 am

Connection refused while manual check succeeds

Post 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 ?
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Connection refused while manual check succeeds

Post by tonyyarusso »

Is your service also calling check_nrpe only with the -H flag, or are you passing a full range of values there?
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
remc0
Posts: 2
Joined: Thu Jan 20, 2011 9:35 am

Re: Connection refused while manual check succeeds

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Connection refused while manual check succeeds

Post 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.
Locked