Common.cfg Not exist

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Common.cfg Not exist

Post 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).
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Common.cfg Not exist

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

Re: Common.cfg Not exist

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: Common.cfg Not exist

Post 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
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: Common.cfg Not exist

Post by fsodah »

Hello,

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

Post 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.
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!
Locked