nagios-plugins-file_age-2.1.4-2.el6.x86_64 can't find any fi
Posted: Wed Jan 11, 2017 8:53 am
2.1.4 from EPEL seems to have broken the check_file_age plugin. What can I do?
Code: Select all
[box ~]$ sudo touch this /this
[box ~]$ /usr/lib64/nagios/plugins/check_file_age -f this
FILE_AGE CRITICAL: File not found - "this"
[box ~]$ /usr/lib64/nagios/plugins/check_file_age -f /root/
FILE_AGE CRITICAL: File not found - "/root/"
[box ~]$ /usr/lib64/nagios/plugins/check_file_age -f /this
FILE_AGE CRITICAL: File not found - "/this"
Code: Select all
[box ~]$ strace /usr/lib64/nagios/plugins/check_file_age -f /this
execve("/usr/lib64/nagios/plugins/check_file_age", ["/usr/lib64/nagios/plugins/check_"..., "-f", "/this"], [/* 33 vars */]) = 0
brk(0) = 0xf02000
[...cut...]
read(3, "", 4096) = 0
close(3) = 0
lstat("\"/this\"", 0x7ffce9439ae0) = -1 ENOENT (No such file or directory)
stat("\"/this\"", 0xf02130) = -1 ENOENT (No such file or directory)
write(1, "FILE_AGE CRITICAL: File not foun"..., 44FILE_AGE CRITICAL: File not found - "/this"
) = 44