Help! nrpe_nt, service check when name contains $ problem

Andreas Ericsson ae at op5.se
Wed Jun 29 10:02:12 CEST 2005


L. Mark Stone wrote:
> On Tuesday, June 28, 2005 09:59 am, Andreas Ericsson wrote:
> 
>>Evan Touchett wrote:
>>
>>>I am trying to get nagios and nrpe to check a windows 2003 server
>>>service.  The problem I am experiencing is that the name of the
>>>service contains a $ in it.
> 
>  <snip> 
> 
>>Escape the $ with a $, so that you have double dollar-signs in your
>>command, like so
>>MSSQL\$$BKUPEXEC
> 
> 
> Never tried escaping the dollar sign, we just use vertical, single 
> quotes, like this:
> 
>                check_nt_service!'MSSQL$SHAREPOINT'
> 
> Works great for services that have spaces in them, too, like:
> 
>                check_nt_service!'Symantec AntiVirus'
> 

The dollar-sign escape was necessary a couple of versions ago (beta 2?) 
to make Nagios not add a second dollar sign after the string, thinking 
it was a macro but not being able to resolve it.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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