[Nagiosplug-devel] [ nagiosplug-Patches-2708481 ] check_file_age - Add option (-m) to allow for missing file

SourceForge.net noreply at sourceforge.net
Tue Mar 24 06:48:31 CET 2009


Patches item #2708481, was opened at 2009-03-24 00:48
Message generated for change (Tracker Item Submitted) made by r33d
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2708481&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: Reed Loden (r33d)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_file_age - Add option (-m) to allow for missing file

Initial Comment:
I'm using check_file_age to monitor for stale lock files, which means it's ok for such a file to not exist. The attached patch adds support for an -m (missing) option to make the check return OK if the file is missing rather than CRITICAL.

Patch against Plugin Version (-V output): check_file_age v1750 (nagios-plugins 1.4.13)
Plugin Name: check_file_age
Example Plugin Commandline: /usr/lib/nagios/plugins/check_file_age -m -f /tmp/blah.lock
Tested on operating system: RHEL5
Tested on architecture: i686
Tested with compiler: N/A

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

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




More information about the Devel mailing list