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).
Common.cfg Not exist
Re: Common.cfg Not exist
The message means what it says. The command check_file_age isn't defined in nrpe.cfg or a file in the include dir.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Common.cfg Not exist
Did you add a check_file_age command to the nrpe.cfg and restart the service?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).
Re: Common.cfg Not exist
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
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
Hello,
the problem was in utils.pm, then I just installed (yum install nagios-plugins-perl) and it went OK
the problem was in utils.pm, then I just installed (yum install nagios-plugins-perl) and it went OK
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Common.cfg Not exist
Glad you got it worked out.the problem was in utils.pm, then I just installed (yum install nagios-plugins-perl) and it went OK
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!