Page 3 of 3

Re: check_file_age error

Posted: Tue Sep 29, 2020 8:42 am
Hi Team,

i am getting below output.

sudo -H -u nagios ls -l /die/dir/dir/logs/access.log
-rwxrwx--- 1 appsuser appsuser 343964 Sep 29 19:10 /die/dir/dir/logs/access.log

Re: check_file_age error

Posted: Tue Sep 29, 2020 8:47 am
from client side nagios check.

sudo -H -u nagios /usr/local/nagios/libexec/check_file_age -w 180 -300 -f "/dir/dir/dir/logs/access.log"
Unknown option: 3
Unknown option: 0
Unknown option: 0
FILE_AGE OK: /dir/dir/dir/logs/access.log is 5 seconds old and 346988 bytes | age=5s;180;600 size=346988B;0;0;0

Re: check_file_age error

Posted: Tue Sep 29, 2020 4:10 pm
by scottwilkerson
When you run the check via check_nrpe, do you see any error messages in the syslog?