Xymon Mailing List Archive search

monitoring logs only if they exist

2 messages in this thread

list Jon Hittner · Thu, 15 Jun 2006 18:46:01 -0400 ·
I have machines that may or may not have a specific log file.   How do I configure hobbit to only retrieve the logs if they exist?   Right now, I have msgs yellow with "Logfile not accessible" on any host without this log and I would like to have them show up as green.

Thanks
Jon
list Charles Jones · Thu, 15 Jun 2006 16:00:02 -0700 ·
quoted from Jon Hittner
Jon Hittner wrote:
I have machines that may or may not have a specific log file.   How do I configure hobbit to only retrieve the logs if they exist?   Right now, I have msgs yellow with "Logfile not accessible" on any host without this log and I would like to have them show up as green.
  
If all else fails, you could always just do a "touch logfilename" to make a zero byte logfile for hobbit to find.
-Charles