check_nt and "Connection refused by host"

Thomas.Schweikle at fiducia.de Thomas.Schweikle at fiducia.de
Sat Jan 17 02:17:54 CET 2004


Hi,


> Thomas.Schweikle at fiducia.de wrote: 
>> I am trying to check if the terminal services are running on a 
>> Windows 2000 sever. I am using the command: 
>> 
>> /usr/lib/nagios/plugins/check_nt -H xcnlm04s.fag.fiducia.de -p 1248 
>> -v SERVICESTATE -d SHOWALL -l TermService Connection refused by host 
>> 
>> But this is answered with "Connection refused". What do I have to do 
>> to make it work? 
>
> Presuming you are using NS client, I would setup a checkcommand as 
follows : 
> # 'check_nt_service' command definition 
> define command{ 
>        command_name    check_nt_service 
>        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v 
SERVICESTATE -l $ARG1$ 
>        } 
>
> Then you service check would be something like this: 
> # Service definition for Terminal Service Check 
> define service{ 
>        use                             generic-service         ; Name of 
service template to use 
>
>        host_name                   host1 
>        service_description             Terminal Service 
>        is_volatile                     0 
>        check_period                    24x7 
>        max_check_attempts              3 
>        normal_check_interval           5 
>        retry_check_interval            1 
>        contact_groups                  nt-admins 
>        notification_interval           120 
>        notification_period             24x7 
>        notification_options            w,u,c 
>        check_command                   check_nt_service!TermService 
>        } 

This is a bit more universal than my setup, but does not help with the 
error I am receiving:
~> /usr/lib/nagios/plugins/check_nt \
>  -H xcnlm04s.fag.fiducia.de -p1248 \
>  -v SERVICESTATE -l TermService
Connection refused by host

The Host rejects my request! So again: how do I have to set up my Host to 
make this command work?

-- 
Thomas




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list