Xymon Mailing List Archive search

Monitor for a missing file

list David Stuffle
Fri, 9 May 2008 18:39:04 -0400
Message-Id: <user-c25af76c3226@xymon.invalid>

What is the best way to monitor for a missing log file?  For example, it
I want to make sure /var/log/messages exists, what is the best way to
accomplish this in hobbit.?  I searched the documentation and mail
archives and saw examples to example contents, but I only what if the
file is missing. 

Thanks in advance, 
Jim
 
 
Hi Jim,
See the FILE parameter in hobbit-clients.cfg on the Hobbit server.  You
should be able to put this in hobbit-clients.cfg:
 
HOST=hostname
    FILE /var/log/messages
 
From the docs:
 "By default, a warning is triggered for files that have a FILE entry,
but which do not exist."  So you shouldn't need any other parameters. 
 
 
Also, to tell the client to report on that file, put this in the
client-local.cfg, also on the Hobbit server:
 
[hostname]
    file:/var/log/messages
 
Wait at least 2 updates from the client and it should start showing.
 
David Stuffle