[Xymon] msgs add-on from wiki.xymonton.org - multiple dynamic logfile monitoring
Becker Christian
christian.becker at rhein-zeitung.net
Wed Mar 18 16:24:30 CET 2020
Hello together,
first of all I hope my english is good enough to explain.....
-And- of course- I hope you are OK in these times!
I took msgs.sh (https://wiki.xymonton.org/doku.php/monitors:msgs) from wiki.xymonton.org.
This works for me as described.
For one new server, for our purposes we need to have more than one logfile configured.
The thing is, that all of these additional logfiles have a dynamic name which contains date-stamps in their name, for example
/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORD1_20200318_050110.log
/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORD2_20200318_050110.log
/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORD3_20200318_050110.log
/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORD4_20200318_050110.log
/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORD5_20200318_050110.log
/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORD6_20200318_050110.log
/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORD7_20200318_050109.log
/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORD8_20200318_050110.log
/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORD9_20200318_050109.log
/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORDA_20200318_050110.log
/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORDB_20200318_050109.log
But that's not my problem, all of the wanted logfiles appear in the normal msgs column, after I configured them in client-local.cfg.
[cid:image001.png at 01D5FD41.D7AC1BE0]
Now for msgs.sh, I added a tag to the corresponding host in hosts.cfg like MSGS:/adsuite/AdSuite/runtime/log/AdSuite.OrderServer_ORD:msgsalfa
The result is, that in column msgsalfa only the first logfile is being displayed in a normal readable way, the other logfiles contain html-code around them:
[cid:image002.png at 01D5FD41.D7AC1BE0]
At this point I'm not sure if I made a mistake at any step or if the msgs.sh needs some adjustment?
Can somebody body point me to any solution here?
Best regards from my home office in Germany - and stay healthy!
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200318/8af72b19/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 55046 bytes
Desc: image001.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200318/8af72b19/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 76103 bytes
Desc: image002.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200318/8af72b19/attachment-0001.png>
More information about the Xymon
mailing list