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
This message, and any attachments to it, may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are notified that any use, dissemination, distribution, copying, or communication of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and delete the message and any attachments. Thank you.
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
participants (2)
-
David.Stuffle@adesa.com
-
Jim_Horwath@glic.com