[Xymon] [Possible Spam] Re: renaming a standard xymon test

Andy Smith abs at shadymint.com
Wed Nov 19 08:22:49 CET 2014


Jeremy Laidman wrote:
> On 19 November 2014 10:16, usa ims via Xymon <xymon at xymon.com 
> <mailto: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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon

FWIW, I wrote such a server side script, albeit to solve a slightly 
different problem, but it might suit usaims needs :-

https://wiki.xymonton.org/doku.php/monitors:msgs

-- 
Andy



More information about the Xymon mailing list