[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] Monitor for a missing file
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] Monitor for a missing file
- From: "Stuffle, David (Corporate)" <David.Stuffle (at) adesa.com>
- Date: Fri, 9 May 2008 18:39:04 -0400
- Thread-index: AciyEWH31qji59DWTGGFX9r9kcO+vgAEpxLA
- Thread-topic: [hobbit] Monitor for a missing file
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