NSClient - and args with spaces

Bishop, Dean dean.bishop at tcdsb.org
Wed Oct 30 22:12:01 CET 2002


yup.

 <<delme.bmp>> 

-----Original Message-----
From: Steve Burton [mailto:steve at sliderule.demon.co.uk]
Sent: Wednesday, October 30, 2002 4:00 PM
To: Bishop, Dean; Nagios Users
Subject: Re: [Nagios-users] NSClient - and args with spaces


Dean,

have you checked in the registry that this service is actually called
that? This foxed me until I read the documentation :-)
Look in 'readme.html' that comes with NSClient under 'Services states'

Steve.

"Bishop, Dean" wrote:
> 
> Good morning,
> 
>         does this actually work?  i have tried it but because my service
> check_command has spaces in it, only the first word is loaded into $ARG1$.
> 
>         What should the check_command look like for a service called
"Octel
> Unified Messenger Tracing System"??
> 
> thanks,
> dean
> 
> -----Original Message-----
> From: John Sellens [mailto:jsellens at generalconcepts.com]
> Sent: Tuesday, September 10, 2002 10:05 PM
> To: Daniel.Rusch at GlobalCrossing.com; nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] NSClient - and args with spaces
> 
> Put quotes around the ARG in the command definition i.e.
>     command_line        /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$
> -v SERVICESTATE -t 30 -l "$ARG1$"
> 
> This doesn't work for perl scripts with the embedded perl interpreter,
> but check_nt is a C program.
> 
> Cheers
> 
> John
> jsellens at generalconcepts.com
> 
> | From: "Rusch, Daniel" <Daniel.Rusch at GlobalCrossing.com>
> | Date: Tue, 10 Sep 2002 17:01:39 -0400
> |
> | All,
> |
> | Using NSClient:
> |
> | I have the following command defined:
> |
> | # 'check_nt_service' command definition
> | define command{
> |       command_name    check_nt_service
> |       command_line    /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$
> | -v SERVICESTATE -t 30 -l $ARG1$
> |       }
> |
> | In my services.cfg I have two services with the following commands
defined
> | for the same host:
> |
> | check_command                 check_nt_service!MESSENGER
> |
> | check_command                 check_nt_service!TREND SERVERPROTECT
> 
> -------------------------------------------------------
> In remembrance
> www.osdn.com/911/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users

-- 
Steve Burton

Webmaster & Sub-optimal Coder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: delme.bmp
Type: image/bmp
Size: 263970 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021030/86b2ca74/attachment.bin>


More information about the Users mailing list