Issues getting check_file_age to work using nrpe
Posted: Tue Jul 14, 2020 8:55 pm
Hi together,
I'm having issues getting a check_file_age check working using nrpe.
/etc/nagios/nrpe.conf
When I run the below command on my machine I get a `NRPE: Unable to read output` error
If I don't use check_nrpe and instead run the plugin directly it works fine:
Anyone able to point me into the right direction?
Thanks in advance!
I'm having issues getting a check_file_age check working using nrpe.
/etc/nagios/nrpe.conf
Code: Select all
command[check_file_age]=/usr/lib64/nagios/plugins/check_file_age -w 60 -c 300 -f /resources/fileCode: Select all
[root@localhost]#/usr/lib64/nagios/plugins/check_nrpe -H 127.0.0.1 -c check_file_ageCode: Select all
[root@localhost]#/usr/lib64/nagios/plugins/check_file_age -w 60 -c 300 -f /resources/file
FILE_AGE CRITICAL: /resources/file is 7533 seconds old and 3 bytes | age=7533s;60;300 size=3B;0;0;0Thanks in advance!