Help! nrpe_nt, service check when name contains $ problem
L. Mark Stone
lmstone at rnome.com
Wed Jun 29 06:52:40 CEST 2005
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'
HTH,
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_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