check_nt and "Connection refused by host"
Yost, Karl
Karl.Yost at mptotalcare.com
Thu Jan 15 14:49:41 CET 2004
Thomas.Schweikle at fiducia.de wrote:
> Hi!
>
> 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
}
***** The information in this email may contain confidential health
information that is legally privileged. This information is intended for
the use of the individual or entity named above. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or action taken in reliance on the contents of this email is
strictly prohibited. If you have received this information in error, please
notify the sender immediately and arrange for the return or destruction of
this information. *****
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040115/5d6658a2/attachment.html>
More information about the Users
mailing list