<div dir="ltr">Well, this sucks.  Since I'm monitoring a tmp file, it only needs to trigger if the file is older than 15 minutes.  However, if I use noexist, is squawks if it exists, if I don't it squawks when it doesn't. Ultimately, I don't care if it is there or not, only that it isn't older than 15 minutes if it does exist.  I'm stumped...maybe setting delayred to 20???   Anyone else ever had to solve this?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 14, 2013 at 4:38 PM, Galen Johnson <span dir="ltr"><<a href="mailto:Galen.Johnson@sas.com" target="_blank">Galen.Johnson@sas.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Figured it out.  I made the mistake of believing the man page and doc in analysis.cfg.<br>
<div class="im"><br>
FILE filename [color] [things to check] [TRACK]<br>
<br>
</div>Should read:<br>
<br>
FILE filename [things to check] [color] [TRACK]<br>
<br>
color needs to come after the checks.  I happened to notice one of the examples used this and changed mine to use it and (surprise) my file test started working.<br>
<br>
=G=<br>
________________________________________<br>
From: Root, Paul T <Paul.Root@CenturyLink.com><br>
Sent: Friday, December 13, 2013 9:59 PM<br>
To: Galen Johnson; <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
Subject: RE: [Xymon] File check question<br>
<div class="HOEnZb"><div class="h5"><br>
You saying no exist not exist. The way I read it they are ANDs.<br>
<br>
<br>
-----Original Message-----<br>
From: Xymon [mailto:<a href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a>] On Behalf Of Galen Johnson<br>
Sent: Friday, December 13, 2013 4:11 PM<br>
To: <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
Subject: [Xymon] File check question<br>
<br>
Hey,<br>
<br>
I have a question about file tests.  The man pages say<br>
<br>
FILE filename [color] [things to check] [TRACK]<br>
<br>
I have a test defined as<br>
<br>
FILE /tmp/ldap2pw.lck red NOEXIST MTIME>900<br>
<br>
How does the "[things to check]" actually parse?  Is it an "and" or an<br>
"or"?  In other words, would that read "the file exists AND hasn't been<br>
modified for more than 15 minutes" or "the file exists OR hasn't been<br>
modified for more than 15 minutes".  I'm assuming "and"...actually I<br>
need it to be "and" in this case.  Or do I have to explicitly say<br>
something like "NOEXIST and MTIME>900"?  I can't find anything about that.<br>
<br>
thx<br>
<br>
=G=<br>
<br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</div></div></blockquote></div><br></div>