<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Hello list,<BR>
<BR>
My patch consist of the following changes:<BR>
- Added support for single file monitoring [in addition to monitoring all files in a given dir]<BR>
- Modified arguments for stat from:<BR>
  -                                       st_ctime=`stat --printf=%Y ${next_filepath}`<BR>
to:<BR>
  +                                       st_ctime=`stat -c%Y ${next_filepath}`<BR>
<BR>
Because the --printf flag doesn't exist in older Linux distros versions [for instance RHEL 4].<BR>
<BR>
- Fixed:<BR>
#  /usr/local/nagios_plugins/check_file_ages_in_dirs -f /var/log/httpd/error_log -c 120 -w hhh<BR>
/usr/local/nagios_plugins/check_file_ages_in_dirs: line 228: [: hhh: integer expression expected<BR>
<BR>
Thanks,<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Best regards,

Jess Portnoy
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>