Page 1 of 1

Common.cfg Not exist

Posted: Wed Dec 09, 2020 2:16 am
by fsodah
Hello,
I have a client "server 1", where I have just installed NRPE and Nagios plugins,
the (check_users,check_load,check_disk) is working fine, but check_file_age gives (NRPE: Command 'check_file_age' not defined).

Re: Common.cfg Not exist

Posted: Wed Dec 09, 2020 4:50 pm
by gormank
The message means what it says. The command check_file_age isn't defined in nrpe.cfg or a file in the include dir.

Re: Common.cfg Not exist

Posted: Fri Dec 11, 2020 9:23 am
by scottwilkerson
fsodah wrote:Hello,
I have a client "server 1", where I have just installed NRPE and Nagios plugins,
the (check_users,check_load,check_disk) is working fine, but check_file_age gives (NRPE: Command 'check_file_age' not defined).
Did you add a check_file_age command to the nrpe.cfg and restart the service?

Re: Common.cfg Not exist

Posted: Tue Dec 15, 2020 5:51 am
by fsodah
Hello,
on server1 NRPE.cfg i adedd
command[check_file_age]=/usr/lib64/nagios/plugins/check_file_age -w 21600 -c 21601 -f /tmp/text.txt

from the Nagios side
./check_nrpe -H server1 -c check_file_age -a '-w 21600 -c 21601 -f /tmp/text.txt'

NRPE: Unable to read output

Re: Common.cfg Not exist

Posted: Tue Dec 15, 2020 6:20 am
by fsodah
Hello,

the problem was in utils.pm, then I just installed (yum install nagios-plugins-perl) and it went OK

Re: Common.cfg Not exist

Posted: Thu Dec 17, 2020 11:41 am
by benjaminsmith
the problem was in utils.pm, then I just installed (yum install nagios-plugins-perl) and it went OK
Glad you got it worked out.