Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
[root@localhost ~]# /usr/local/nagios/libexec/check_file_age --version
check_file_age v2.0.3 (nagios-plugins 2.0.3)
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
[root@localhost ~]# /usr/local/nagios/libexec/check_file_age -f /this
FILE_AGE OK: /this is 31 seconds old and 0 bytes
[root@localhost ~]# strace -s 256 /usr/local/nagios/libexec/check_file_age -f /this
[ - SNIP - ]
stat("/this", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
stat("/this", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
write(1, "FILE_AGE OK: /this is 46 seconds old and 0 bytes\n", 49FILE_AGE OK: /this is 46 seconds old and 0 bytes
) = 49
Almost looks like the plugin is doing some escaping of the filename for some reason. Let me peek at the code and get back to you.