Hi all.
I have a windows service "MSSQL$MICROSOFT##WID" that is being reported by the XymonPSClient. To monitor this service I need to add the following line in my analysis.cfg file:
SVC MSSQL$MICROSOFT##WID status=started
But, the # characters are seen as the start of a comment, so the result is this:
MSSQL$MICROSOFT: No matching service - want started/Any
I tried escaping the # characters with \ but that just resulted in:
MSSQL$MICROSOFT\: No matching service - want started/Any
Any ideas?
Thanks, JT
On 09/08/16 10:04, Jonathan Trott wrote:
Hi all.
I have a windows service "MSSQL$MICROSOFT##WID" that is being reported by the XymonPSClient. To monitor this service I need to add the following line in my analysis.cfg file:
SVC MSSQL$MICROSOFT##WID status=started
But, the # characters are seen as the start of a comment, so the result is this:
MSSQL$MICROSOFT: No matching service - want started/Any
I tried escaping the # characters with \ but that just resulted in:
MSSQL$MICROSOFT\: No matching service - want started/Any
Any ideas?
Can you use a regex? %^MSSQL.MICROSOFT..WID$
You might be able to insert the actual needed chars with the escape \ but I expect the above should work also...
Regards, Adam
-- Adam Goryachev Website Managers www.websitemanagers.com.au
From: Adam Goryachev <mailinglists at websitemanagers.com.au> To: xymon at xymon.com Date: 09/08/2016 10:17 Subject: Re: [Xymon] Service names from XymonPSClient Sent by: "Xymon" <xymon-bounces at xymon.com>
On 09/08/16 10:04, Jonathan Trott wrote:
Hi all.
I have a windows service "MSSQL$MICROSOFT##WID" that is being reported by the XymonPSClient. To monitor this service I need to add the following line in my analysis.cfg file:
SVC MSSQL$MICROSOFT##WID status=started
But, the # characters are seen as the start of a comment, so the result is this:
MSSQL$MICROSOFT: No matching service - want started/Any
I tried escaping the # characters with \ but that just resulted in:
MSSQL$MICROSOFT\: No matching service - want started/Any
Any ideas?
Can you use a regex? %^MSSQL.MICROSOFT..WID$
You might be able to insert the actual needed chars with the escape \ but I expect the above should work also...
Escaping the characters doesn't work, but regex works. Thanks for the fix!
Regards, Adam
Thanks, JT
On 09/08/16 10:57, Jonathan Trott wrote:
From: Adam Goryachev <mailinglists at websitemanagers.com.au> To: xymon at xymon.com Date: 09/08/2016 10:17 Subject: Re: [Xymon] Service names from XymonPSClient Sent by: "Xymon" <xymon-bounces at xymon.com>
On 09/08/16 10:04, Jonathan Trott wrote:
Hi all.
I have a windows service "MSSQL$MICROSOFT##WID" that is being reported by the XymonPSClient. To monitor this service I need to add the following line in my analysis.cfg file:
SVC MSSQL$MICROSOFT##WID status=started
But, the # characters are seen as the start of a comment, so the result is this:
MSSQL$MICROSOFT: No matching service - want started/Any
I tried escaping the # characters with \ but that just resulted in:
MSSQL$MICROSOFT\: No matching service - want started/Any
Any ideas?
Can you use a regex? %^MSSQL.MICROSOFT..WID$
You might be able to insert the actual needed chars with the escape
but I expect the above should work also... Escaping the characters doesn't work, but regex works. Thanks for the fix! Not sure if it was clear, but I meant escaping the $ and # characters within the regex like this:
%^MSSQL\$MICROSOFT\#\#WID$
Just in case you also need to monitor MSSQL$MICROSOFT__WID and don't want to confuse the two....
Regards, Adam
Adam Goryachev Website Managers www.websitemanagers.com.au
This works for me:
SVC "MSSQL$MICROSOFT##WID" status=started
David.
On 09/08/16 10:57, Jonathan Trott wrote:
From: Adam Goryachev <mailinglists at websitemanagers.com.au> To: xymon at xymon.com Date: 09/08/2016 10:17 Subject: Re: [Xymon] Service names from XymonPSClient Sent by: "Xymon" <xymon-bounces at xymon.com>
On 09/08/16 10:04, Jonathan Trott wrote:
Hi all.
I have a windows service "MSSQL$MICROSOFT##WID" that is being reported by the XymonPSClient. To monitor this service I need to add the following line in my analysis.cfg file:
SVC MSSQL$MICROSOFT##WID status=started
But, the # characters are seen as the start of a comment, so the result is this:
MSSQL$MICROSOFT: No matching service - want started/Any
I tried escaping the # characters with \ but that just resulted in:
MSSQL$MICROSOFT\: No matching service - want started/Any
Any ideas?
Can you use a regex? %^MSSQL.MICROSOFT..WID$
You might be able to insert the actual needed chars with the escape
but I expect the above should work also... Escaping the characters doesn't work, but regex works. Thanks for the fix! Not sure if it was clear, but I meant escaping the $ and # characters within the regex like this:%^MSSQL\$MICROSOFT\#\#WID$
Just in case you also need to monitor MSSQL$MICROSOFT__WID and don't want to confuse the two....
Regards, Adam
-- David Baldwin - Senior Systems Administrator (Datacentres + Networks) Digital Information Management and Technology Australian Sports Commission http://ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 david.baldwin at ausport.gov.au 1 Leverrier Street Bruce ACT 2617 Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE
Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au
This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.
try double \\ ?
Scot Kreienkamp
Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: Scot.Kreienkamp at la-z-boy.com
On Aug 8, 2016, at 8:04 PM, Jonathan Trott <jtrott at dancrai.com> wrote:
Hi all.
I have a windows service "MSSQL$MICROSOFT##WID" that is being reported by the XymonPSClient. To monitor this service I need to add the following line in my analysis.cfg file:
SVC MSSQL$MICROSOFT##WID status=started
But, the # characters are seen as the start of a comment, so the result is this:
MSSQL$MICROSOFT: No matching service - want started/Any
I tried escaping the # characters with \ but that just resulted in:
MSSQL$MICROSOFT\: No matching service - want started/Any
Any ideas?
Thanks, JT
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com> wrote on 09/08/2016 10:34:48:
try double \\ ?
Scot Kreienkamp
Nope, results in this:
MSSQL$MICROSOFT\\: No matching service - want started/Any
Thanks, JT
On Aug 8, 2016, at 8:04 PM, Jonathan Trott <jtrott at dancrai.com> wrote:
Hi all.
I have a windows service "MSSQL$MICROSOFT##WID" that is being reported by the XymonPSClient. To monitor this service I need to add the following line in my analysis.cfg file:
SVC MSSQL$MICROSOFT##WID status=started
But, the # characters are seen as the start of a comment, so the result is this:
MSSQL$MICROSOFT: No matching service - want started/Any
I tried escaping the # characters with \ but that just resulted in:
MSSQL$MICROSOFT\: No matching service - want started/Any
Any ideas?
Thanks, JT
participants (4)
-
david.baldwin@ausport.gov.au
-
jtrott@dancrai.com
-
mailinglists@websitemanagers.com.au
-
Scot.Kreienkamp@la-z-boy.com