nsclient modified to deal with services that i nclude spaces
Bishop, Dean
dean.bishop at tcdsb.org
Thu Oct 31 16:33:06 CET 2002
drat. i hate it when that happens.
i read in the archive that someone tried single and double quotes without
success. i tried double but apparently didn't try singles.
thanks Torgeir you have saved my much heartache.
later,
dean
-----Original Message-----
From: Torgeir Steinde [mailto:torgeir at falcon.no]
Sent: Thursday, October 31, 2002 3:37 AM
To: Bishop, Dean; nagios-users at lists.sourceforge.net
Cc: rubiyz at yahoo.com
Subject: Re: [Nagios-users] nsclient modified to deal with services that
include spaces
Hi,
I'm running the check_nt plugin without any modifications and still have
spaces in my service names. Here is my check_nt_service definition from
checkcommands.cfg:
define command{
command_name check_nt_service
command_line $USER1$/check_nt -p 1248 -H $HOSTADDRESS$ -v
SERVICESTAT
E -l $ARG1$
}
My service definition:
define service{
use generic-service
host_name abcd
service_description Octel
check_command check_nt_service!'Octel Unified
Messenger Tracing System'
}
Regards
Torgeir Steinde
RDZ AB
----- Original Message -----
From: "Bishop, Dean" <dean.bishop at tcdsb.org>
To: <nagios-users at lists.sourceforge.net>
Cc: <rubiyz at yahoo.com>
Sent: Wednesday, October 30, 2002 6:23 PM
Subject: [Nagios-users] nsclient modified to deal with services that include
spaces
> Good morning all,
>
> i have modified the check_nt code a bit to deal with Windows
> services whose real name includes spaces.
>
> For me the real service name is "Octel Unified Messenger Tracing
> System".
>
> The new check_nt code simply replaces tildes "~" in the arguments
> with spaces " ". So, my checkcommand definition is:
>
> # 'check_nt_service1' command definition
> define command{
> command_name check_nt_service1
> command_line $USER1$/check_nt_modified -H $HOSTADDRESS$ -p 1248
> -v SERVICESTATE -l $ARG1$
> }
>
> My service definition is:
>
> # Service definition for NonCritical Mail Servers Octel Unified Messenger
> System Service
> define service {
> name MailServers-OctelUMTraceService-NonCritical
> use WindowsService
> service_description Mail Servers NonCritical - Octel Trace
> Service
> contact_groups ServerAdmins
> check_command
> check_nt_service1!Octel~Unified~Messenger~Tracing~System
> host_name cectrace01.tcdsb.org,cectrace01.tcdsb.org
> }
>
>
>
>
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
More information about the Users
mailing list