check_file_age error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: check_file_age error

Post by [email protected] »

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
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: check_file_age error

Post by [email protected] »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_file_age error

Post by scottwilkerson »

When you run the check via check_nrpe, do you see any error messages in the syslog?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked