<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=sans-serif size=2>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.</FONT> <BR><BR><FONT face=sans-serif size=2>Thanks
in advance,</FONT> <BR><FONT face=Arial><FONT size=2>Jim<BR><SPAN
class=934232822-09052008><FONT
color=#0000ff> </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=934232822-09052008> </SPAN></FONT></FONT></DIV>
<DIV>
<HR SIZE=1>
</DIV>
<P></P>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=934232822-09052008>Hi Jim,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=934232822-09052008>See the FILE parameter in hobbit-clients.cfg on the
Hobbit server. You should be able to put this in
hobbit-clients.cfg:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=934232822-09052008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=934232822-09052008>HOST=hostname</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=934232822-09052008> FILE
/var/log/messages</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=934232822-09052008><FONT face=Arial size=2>From the
docs:</FONT></SPAN></DIV>
<DIV><SPAN class=934232822-09052008><FONT face=Arial size=2> "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. </FONT></SPAN></DIV>
<DIV><SPAN class=934232822-09052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=934232822-09052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=934232822-09052008>Also, to tell the
client to report on that file, put this in the client-local.cfg, also on the
Hobbit server:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=934232822-09052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=934232822-09052008>[hostname]</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=934232822-09052008>
file:/var/log/messages</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=934232822-09052008><FONT face=Arial size=2>Wait at least 2
updates from the client and it should start showing.</FONT></SPAN></DIV>
<DIV><SPAN class=934232822-09052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=934232822-09052008>David
Stuffle</SPAN></FONT></DIV></BODY></HTML>