Description of problem: In /etc/nrpe.cfg the configs in /etc/nrpe.d/ are included, then /etc/nrpe.cfg sets it's own commands, this leads to /etc/nrpe.cfg possibly overruling stuff in /etc/nrpe.d/. Version-Release number of selected component (if applicable): EPEL 6 and 7 on CentOS (possibly more), nrpe 3: [root@hostname ~]# rpm -qi nrpe Name : nrpe Version : 3.1.1 Release : 1.el7 Architecture: x86_64 Install Date: Mi 05 Jul 2017 13:05:16 CEST Group : Applications/System Size : 341792 License : GPLv2 Signature : RSA/SHA256, Do 15 Jun 2017 03:02:22 CEST, Key ID 6a2faea2352c64e5 Source RPM : nrpe-3.1.1-1.el7.src.rpm Build Date : Do 15 Jun 2017 02:50:55 CEST Build Host : buildvm-20.phx2.fedoraproject.org Relocations : (not relocatable) Packager : Fedora Project Vendor : Fedora Project URL : http://www.nagios.org Summary : Host/service/network monitoring agent for Nagios Steps to Reproduce: 1. Have nrpe 2.x with a /etc/nrpe.d/local.cfg that defines a command for load measurement 2. Automatic update from nrpe 2 to nrpe 3 happens at night Actual results: Nagios signals a critical load for all hosts that got the update (the load command defined in /etc/nrpe.cfg issues a critical at a load of 0.3 or higher and overwrites my load command in /etc/nrpe.d/local.cfg) Expected results: Flawless upgrade :). Additional info: This is a regression to this bug in nrpe 2 from 2013: https://bugzilla.redhat.com/show_bug.cgi?id=963703
Yikes. That was not seen in testing, but it is clear that my testing only used supplemental nrpe.cfg configs. There are 1 of 2 fixes. 1. Comment out the preconfigured section # command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10 # command[check_load]=/usr/lib64/nagios/plugins/check_load -r -w .15,.10,.05 -c .30,.25,.20 # command[check_hda1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1 # command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z # command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200 2. Move the include_dir=/etc/nrpe.d/ to the bottom of the file I will roll out a fix with one of these 2 in and see if upstream will fix their config file also. ## PS I got these suggestions from someone also affected by the rollout. I am not taking the credit for their work.
OK upstream has moved them to the bottom with their commit 20a5931074ac1b1f02b87db7ccd59f2779d16c9a I will follow suit and fix ours.
(In reply to Stephen John Smoogen from comment #1) > 2. Move the include_dir=/etc/nrpe.d/ to the bottom of the file This would solve this bug without disturbing people depending ion the predefined commands, i guess upstream could live with it as well.
nrpe-3.1.1-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-0ff431e36d
nrpe-3.1.1-2.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-a0b88febee
nrpe-3.1.1-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-0ff431e36d
Just a 'me too' on this bug and thanks for the fix. I submitted a patch to upstream to move the include_dir to the bottom of the file, which has now been merged into the dev branch: https://github.com/NagiosEnterprises/nrpe/pull/144 So hopefully this will appear in future releases.
Upstream talking here: Yes, we'll be releasing that patch in the next release, 3.2.1 - I suspect due to the my_system seteuid() error that I introduced in the latest enhancement we'll get the next bugfix version out within the next two weeks. Thanks for the patch!
nrpe-3.1.1-4.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-f8ea02db72
nrpe-3.1.1-4.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-86db243830
nrpe-3.1.1-4.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-f8ea02db72
nrpe-3.1.1-6.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-9d9d9c0909
nrpe-3.1.1-6.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-ec253d8f54
nrpe-3.1.1-6.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-18adf0fe26
nrpe-3.1.1-6.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-1f50be4847
nrpe-3.1.1-6.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
nrpe-3.1.1-6.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
nrpe-3.2.0-6.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-030b96c51c
nrpe-3.2.0-6.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-bb989d629b
nrpe-3.2.0-6.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-030b96c51c
nrpe-3.2.0-6.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
nrpe-3.2.0-6.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.