[Nagiosplug-devel] [ nagiosplug-Patches-3240541 ] Add support for --ignore-missing for check_file_age

SourceForge.net noreply at sourceforge.net
Thu Mar 24 12:44:56 CET 2011


Patches item #3240541, was opened at 2011-03-24 07:44
Message generated for change (Tracker Item Submitted) made by vargok
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3240541&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Enhancement
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: vargo (vargok)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add support for --ignore-missing for check_file_age

Initial Comment:
  Please find attached a patch against v1.4.5 of check_file_age to provide for a -i | --ignore-missing option.  This allows files that don't exist to be monitored for without causing an error.  The use case is:

  *  one process periodically pushes files to an "input" queue for a second process
  *  the second process, when running cleanly will "consume" (process and remove) these files

So the conditions to meet are:
  1.  If the file doesn't exist, that's fine (OK)
  2.  If the file exists, but is less than X seconds, that's fine (OK)
  3.  If the file exists, but greater than X seconds, no good (CRITICAL)


v1.4.5 doesn't permit this behavior, as a non-existent file is considered CRITICAL.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3240541&group_id=29880




More information about the Devel mailing list