[Nagiosplug-devel] FW: SERVICESTATE fails with $ imbedded in registry name
Michael R Burgess
michael.r.burgess at dom.com
Wed Aug 31 13:34:08 CEST 2011
Here is the source I found: http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=413&expand=false&showdesc=true
Actually need two backslashes and a second $. So service$name would be service\\$$name.
From: Nygren, Ray [mailto:rnygren at frhg.org]
Sent: Tuesday, August 30, 2011 2:09 PM
To: nagiosplug-devel at lists.sourceforge.net
Subject: [Nagiosplug-devel] FW: SERVICESTATE fails with $ imbedded in registry name
Micorsoft puts a $ in the SQL server services but your code truncates the service registry name after the $
check_command check_nt!SERVICESTATE! -d SHOWALL -l MSSQL$HEMS
returns service not found MSSQL$
Is there any solution? I tried single quotes, double quotes, \ and back tick with same error
I even renamed the service without $ and still no go.(Not display name but registry name)
Ray Nygren
Database Administrator
(530) 740-1940 X3801
[cid:image001.gif at 01CC67B0.54F020F0]
CONFIDENTIALITY NOTICE: This electronic message contains
information which may be legally confidential and/or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect. The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful. If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20110831/a7251ca4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 9771 bytes
Desc: image001.gif
URL: <http://nagios-plugins.org/archive/devel/attachments/20110831/a7251ca4/attachment.gif>
More information about the Devel
mailing list