[hobbit] Monitor for a missing file

Stuffle, David (Corporate) David.Stuffle at adesa.com
Sat May 10 00:39:04 CEST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080509/cf9c0353/attachment.html>


More information about the Xymon mailing list