On Thu, March 26, 2015 5:21 am, john.r.rothlisberger at accenture.com wrote:
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.
This is being caused by attempted variable substitution in the files present. "$MYSERVERNAME1" presumably isn't present in the environment, and libxymon is complaining since it doesn't have an internal default for it either.
Does encasing that field in quotes solve the problem for you? That might be the easiest option, as I believe escaping the '$' there will send the escape downstream.
Regards,
-jc