how to escape special characters checking a windows service

Anthony Montibello amontibello at gmail.com
Tue May 6 04:40:46 CEST 2008


If my memory is correct $$ for each $ works in the Service Config.

Depending on your Windows plugin and version of check_nt this may be
documented in the help or other files

Tony (Author of NC_NEt)

On Mon, May 5, 2008 at 4:00 PM, Jan Kuhn <jkuhn at siumed.edu> wrote:

> This works when running from the command line:
>
> /usr/lib/nagios/plugins/check_nt -H xxx.xxx.xxx.xxx -p 1248 -v
> SERVICESTATE -l 'mssql$waspdb'
> All services are running
>
> But this doesn't in the servers.cfg  It adds the second $.
>
> check_command                   "/usr/lib/nagios/plugins/check_nt -H
> xxx.xxx.xxx.xxx  -p 1248 -v SERVICESTATE -l 'mssql$waspdb'"
>
> It adds the second $.
>
> mssql$waspdb$: Unknown
>
> I've got other services working correctly with embedded spaces.  Special
> characters are causing trouble.  I've tried escaping with \, all sort of
> quote combinations.
> Any ideas?
>
> thanks, jan
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080505/6d967f2a/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-------------- next part --------------
_______________________________________________
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