quick question - wildcard multiple logs in client-local?
list Betsy Schwartz
I have a set of ever-changing-name log files which I want to check for the string "ERROR" This works in client-local.cfg, for file metadata: file:`ls /vg8_bo3_stats/vg8_stats/top_talkers/server_*/server*` This does not work log:`ls /vg8_bo3_stats/vg8_stats/top_talkers/server_*/server*` Should it? Or do I have to write a custom script? The files will be named with the date like so /vg8_bo3_stats/vg8_stats/top_talkers/server_4/server_4_2014-09-24T012005 xymon 4.3.17 on RHEL6 thanks Betsy
list Japheth Cleaver
▸
On Wed, September 24, 2014 11:47 am, Betsy Schwartz wrote:
I have a set of ever-changing-name log files which I want to check for the string "ERROR" This works in client-local.cfg, for file metadata: file:`ls /vg8_bo3_stats/vg8_stats/top_talkers/server_*/server*` This does not work log:`ls /vg8_bo3_stats/vg8_stats/top_talkers/server_*/server*`
The syntax is slightly different between the two... https://www.xymon.com/help/manpages/man5/client-local.cfg.5.html log:/var/log/messages:SIZE file:/var/log/messages[:HASH] Just add a buffer size value after your cmd on the log line and you should be set. HTH, -jc
list Betsy Schwartz
Thanks! hm,not the first time I've made that mistake. Appreciate the help! (one of those days with multiple rush requests at once...) thanks, Betsy On Wed, Sep 24, 2014 at 3:34 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid>
▸
wrote:
On Wed, September 24, 2014 11:47 am, Betsy Schwartz wrote:I have a set of ever-changing-name log files which I want to check for the string "ERROR" This works in client-local.cfg, for file metadata: file:`ls /vg8_bo3_stats/vg8_stats/top_talkers/server_*/server*` This does not work log:`ls /vg8_bo3_stats/vg8_stats/top_talkers/server_*/server*`The syntax is slightly different between the two... https://www.xymon.com/help/manpages/man5/client-local.cfg.5.html log:/var/log/messages:SIZE file:/var/log/messages[:HASH] Just add a buffer size value after your cmd on the log line and you should be set. HTH, -jc