<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"><div><font size="2">xymon 4.3.17 / 4.3.28 /  4.3.15 / 4.3.12 /    (multiple servers)<br>centos 6 & 7</font></div><div><font size="2"><br></font></div><div><font size="2">For a client Ive been asked to set up a reasonably simple LOG file check in their various xymon installations.<br><br>Each client to be checked has daily changing messages filenames (via rsyslog.conf).  The filename for today is for example<br><span>/var/log/external/<client hostname>/messages-20180815.log</span><br></font></div><div><span><font size="2"><br></font></span></div><div><span><font size="2">i.e. it is always in <span>/var/log/external/<span><span style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: small;"><client hostname></span></span>/ with the formaltted filename of messages-<YYYYMMDD>.log</span></font></span></div><div><span><span><font size="2"><br></font></span></span></div><div><span><span><font size="2">so presumably via the xymon server's analysis.cfg and client-local.cfg I have to be able to tell xymon server to use the logfile with naming convention of <br><br></font><span><div style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font size="2">/var/log/external/<span><span style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: small;"><client hostname></span></span>/messages-<YYYYMMDD>.log<br></font></div><div style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font size="2"><br></font></div><div style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font size="2">any ideas how to manage thiis?<br><br>the only other way I can think to do it is to have a cron that automagically resets a softlink of eg /var/log/messages to the daily log, run at midnight on every client - but that's just another level of cludginess.that requires some overseeing to ensure every client "works".  This really needs to be done centrally.<br><br>Summary:  logfile paths have two quasi-random elements - the client hostname in the path, and the date in the logfile name</font></div><div style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font size="2"><br></font></div><div style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><font size="2">didds</font></div><div><br></div></span><br></span></span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"></div></div></body></html>