[Xymon] renaming a standard xymon test

Jeremy Laidman jlaidman at rebel-it.com.au
Wed Nov 19 03:14:22 CET 2014


On 19 November 2014 10:16, usa ims via Xymon <xymon at xymon.com> wrote:

> 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.
>

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").

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.

With your alternative msgs status in place, you can suppress the display of
"msgs" by using the "NOCOLUMNS:msgs" parameter in hosts.cfg.

Might be easier to reconfigure your boss.

Cheers
Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20141119/2e153c74/attachment.html>


More information about the Xymon mailing list