Xymon Mailing List Archive search

Escaping special characters in analysis.cfg

list John Rothlisberger
Thu, 26 Mar 2015 12:21:44 +0000
Message-Id: <user-8d3418413714@xymon.invalid>

I have a slightly different issue with special characters in analysis.cfg.  Although, I get errors - both tests work fine.

On one server (which was 4.3.0 and recently upgraded to 4.3.18 on Ubuntu 64bit) I get the following errors in xymonlaunch.log:
2015-03-26 11:24:29 xgetenv: Cannot find value for variable MYSERVERNAME1

The only place this seems relevant is from the analysis.cfg file entry:
HOST=myservername1
        SVC IISADMIN status=started
        SVC ReportServer$MYSERVERNAME1 status=started

On a separate Xymon server (4.3.13 Ubuntu 32bit) I do not get errors like those above, the entries in analysis.cfg look like:
HOST=anotherserver1
        SVC MSSQL$SQL_2012 status=started
        SVC SQLAgent$SQL_2012 status=started

Again, both tests work, just one seems to throw errors.

Thanks,
John
Upcoming PTO:

John Rothlisberger
IT Strategy, Infrastructure & Security - Technology Growth Platform
TGP for Business Process Outsourcing
Accenture
XXX.XXX.XXXX office

-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of David
Baldwin
Sent: Wednesday, March 25, 2015 5:07 PM
To: Timothy; xymon at xymon.com
Subject: Re: [Xymon] Escaping special characters in analysis.cfg

On 25/03/15 7:00 PM, Timothy wrote:
Hi all,

I'm trying to monitor the Windows Internal Database service. The
Service Name is the following:
MSSQL$MICROSOFT##WID

However, thanks to the ## it shows all the characters that follow as
comment so I added this line with regex to my analysis.cfg SVC
^MSSQL\$MICROSOFT##WID status=started

This gives following (wrong) output on my webpage:
^MSSQL\$MICROSOFT: No matching service - want started/Any

Is there a way I can monitor this particular service?
I have the following working fine:

         SVC "MSSQL$MICROSOFT##WID" startup=automatic status=started

David.

--
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Information and Communication Technology Services
Australian Sports Commission          http://ausport.gov.au
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid          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.
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.

www.accenture.com