Help! nrpe_nt, service check when name contains $ problem

L. Mark Stone lmstone at rnome.com
Wed Jun 29 14:24:28 CEST 2005


On Wednesday, June 29, 2005 04:02 am, Andreas Ericsson wrote:
> >>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.

We use the single quotes successfully on our production Nagios 1.2 
installation, and we are preparing a test Nagios 2.0 installation to 
replace our 1.2 setup, once 2.0 is released. 

Are you saying the single quote trick won't work with the 2.0 CVS 
version we downloaded yesterday?

Thanks,
Mark

-- 
_________________________________________________________
A Message From...  L. Mark Stone

Reliable Networks of Maine, LLC

"We manage your network so you can manage your business."

477 Congress Street
Portland, ME 04101
Tel: (207) 772-5678
Web: http://www.rnome.com




-------------------------------------------------------
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_idt77&alloc_id492&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