<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 19 November 2014 10:16, usa ims via Xymon <span dir="ltr"><<a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2tz" class="a3s" style="overflow:hidden">I'm monitoring sql log files looking for the word 'ERROR'. It is working great -- I add the log file to 'client-local.cfg' and 'analysis.cfg' and in 5 minutes, the mysql log files are being monitored. But I'm going through a major boss annoyance factor and he wants that column renamed.<br></div></blockquote></div><br>Short of recompiling code, I very much doubt it.  The xymond_client.c code has "status.msgs" hard-coded when it creates the status message and sends it to xymond.  I don't think it's defined anywhere else, so recompiling might just work.  It would be nice to have these testnames configurable, in the same way that we can override the "conn" column name with the "--ping=TESTNAME" parameter for xymonnet or the PINGCOLUMN variable in xymonserver.cfg.  But I have to say that I think it's an unusual request (I think the "ping" option is to maintain backwards compatibility where the column name used to be "ping").</div><div class="gmail_extra"><br></div><div class="gmail_extra">You could create a server-side script to mirror the current status of msgs to your new test name.  It's a bit of a hack but it should work OK.  This could be done by polling using the xymondboard option of the xymon command.  Alternatively, you could create a channel handler using "xymond_channel --channel=status --filter="|msgs|" your-script-here" and have your script feed each message back into xymon as a new status message with your new testname. </div><div class="gmail_extra"><br></div><div class="gmail_extra">With your alternative msgs status in place, you can suppress the display of "msgs" by using the "NOCOLUMNS:msgs" parameter in hosts.cfg.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Might be easier to reconfigure your boss.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers</div><div class="gmail_extra">Jeremy</div><div class="gmail_extra"><br></div></div>