<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Den 15.12.2013 01:50, Galen Johnson skrev:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">
<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?</div>
</blockquote>
<div class="gmail_extra">A late response ... but:</div>
<div class="gmail_extra"> </div>
<div class="gmail_extra">There is an (apparently undocumented) option for file- and log-checks. Adding "optional" to the rule causes the check to be skipped if the file does not exist. Sounds like this is what you need. So:</div>
<div class="gmail_extra"> </div>
<div class="gmail_extra" style="padding-left: 30px;">FILE /tmp/blabla mtime>600 optional color=red</div>
<div class="gmail_extra"> </div>
<div class="gmail_extra">is what you are after.</div>
<div class="gmail_extra"> </div>
<div class="gmail_extra"> </div>
<div class="gmail_extra">Regards,</div>
<div class="gmail_extra">Henrik</div>
<div class="gmail_extra"> </div>
<div> </div>
</body></html>