<div dir="ltr">Look at the analysis,cfg file or man page for how to do what you're asking.  That is where you add your file tests.  The client-local.cfg makes the files available to be monitored.<br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 12, 2018 at 1:36 PM Jaap Winius <<a href="mailto:jwinius@umrk.nl">jwinius@umrk.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi folks,<br>
<br>
According to  <br>
<a href="http://xymon.sourceforge.net/xymon/help/manpages/man5/client-local.cfg.5.htm" rel="noreferrer" target="_blank">http://xymon.sourceforge.net/xymon/help/manpages/man5/client-local.cfg.5.htm</a>  <br>
it's possible to add file configuration entries to  <br>
/etc/xymon/client-local.cfg. For example, to check for the existence  <br>
of a file called /tmp/krb5cc_0 on <a href="http://host.example.com" rel="noreferrer" target="_blank">host.example.com</a>, I'd add this stanza:<br>
<br>
   [<a href="http://bap1.umrk.nl" rel="noreferrer" target="_blank">bap1.umrk.nl</a>]<br>
   file:/tmp/krb5cc_0<br>
<br>
That works. However, the above mentioned manpage also says this about  <br>
file configuration entries:<br>
<br>
"A file monitoring entry is used to watch the meta-data of a file:  <br>
Owner, group, size, permissions, checksum etc."<br>
<br>
Meta data? How is that done? Except for some hash settings, no  <br>
examples are given. To check to see if the example file is always less  <br>
than 3600 seconds old, I would think something like this would be  <br>
necessary:<br>
<br>
   [<a href="http://bap1.umrk.nl" rel="noreferrer" target="_blank">bap1.umrk.nl</a>]<br>
   file:/tmp/krb5cc_0 mtime<3600<br>
<br>
Or possibly:<br>
<br>
   [<a href="http://bap1.umrk.nl" rel="noreferrer" target="_blank">bap1.umrk.nl</a>]<br>
   file:/tmp/krb5cc_0:mtime<3600<br>
<br>
But, these don't seem to work: Xymon still only reports that the file exists.<br>
<br>
Would anyone mind explaining what the correct syntax is for this file  <br>
test and perhaps other ones like it (e.g. for owner, group, file size,  <br>
permissions)?<br>
<br>
Thanks,<br>
<br>
Jaap<br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div>