Please kindly note that nagios-plugins-2.1.4-2.el6 is BROKEN.
Just try to crate a dummy file ( > test.ok ) and test it. You will get File not found, CRIT. error.
(I'm fixing this for 2h now, thats to all auto-appliend ERATAs, 12 serveers done, 5 to go)
.# ls -al /usr/lib64/nagios/plugins/check_file_age
-rwxr-xr-x. 1 root root 3843 Dec 17 00:09 /usr/lib64/nagios/plugins/check_file_age
.# grep "print_revision" /usr/lib64/nagios/plugins/check_file_age
print_revision($PROGNAME, '2.1.4');
.# > test.ok
.# ls test.ok
test.ok
.# /usr/lib64/nagios/plugins/check_file_age -c 0 -w 0 -f ./test.ok
FILE_AGE CRITICAL: File not found - "./test.ok"
This update has been submitted for testing by swilkerson.
This update has been pushed to testing.
This update has reached 14 days in testing and can be pushed to stable now if the maintainer wishes
This update has been submitted for stable by swilkerson.
This update has been pushed to stable.
Please kindly note that nagios-plugins-2.1.4-2.el6 is BROKEN. Just try to crate a dummy file ( > test.ok ) and test it. You will get File not found, CRIT. error.
(I'm fixing this for 2h now, thats to all auto-appliend ERATAs, 12 serveers done, 5 to go)
.# ls -al /usr/lib64/nagios/plugins/check_file_age -rwxr-xr-x. 1 root root 3843 Dec 17 00:09 /usr/lib64/nagios/plugins/check_file_age .# grep "print_revision" /usr/lib64/nagios/plugins/check_file_age print_revision($PROGNAME, '2.1.4');
.# > test.ok .# ls test.ok test.ok
.# /usr/lib64/nagios/plugins/check_file_age -c 0 -w 0 -f ./test.ok FILE_AGE CRITICAL: File not found - "./test.ok"
check_file_age is broken even in upstream https://github.com/nagios-plugins/nagios-plugins/issues/213