check_file_age is not working with check_nrpe
Posted: Wed Dec 02, 2020 5:27 am
I have problem when use the following:
from nagios server:
./check_nrpe -H <Host> -c check_file_age
the output is "NRPE: Command 'check_file_age' not defined"
while when executing the command from the host:
/usr/lib/nagios/plugins/check_file_age -w 21600 -c 21601 -f <file>
the output is "OK", which means that check_file_age is working fine on the host.
from nagios server:
./check_nrpe -H <Host> -c check_file_age
the output is "NRPE: Command 'check_file_age' not defined"
while when executing the command from the host:
/usr/lib/nagios/plugins/check_file_age -w 21600 -c 21601 -f <file>
the output is "OK", which means that check_file_age is working fine on the host.