Description of problem: /usr/lib/nagios/plugins/check_ide_smart is SUID root (see bug 251635) which is good, since it does not need "sudo" any more to be executed. However, the NRPE daemon is unable to run check_ide_smart because NRPE is running as nrpe:nrpe # grep ^nrpe_ /etc/nagios/nrpe.cfg nrpe_user=nrpe nrpe_group=nrpe # ls -l /usr/lib/nagios/plugins/check_ide_smart -rwsr-x---+ 1 root nagios 44720 Jun 7 2014 /usr/lib/nagios/plugins/check_ide_smart There are several ways to tackle this: 1) Allow check_ide_smart to be started by "nrpe": # setfacl -m u:nrpe:rx /usr/lib/nagios/plugins/check_ide_smart 2) Add "nrpe" to the "nagios" group: # usermod -a -G nagios nrpe 3) Run NRPE as nrpe:nagios (with nrpe_group=nagios in nrpe.cfg) Interestingly, check_ide_smart seems to be the only script belonging to the "nagios" group on this system: # find / -xdev -user nrpe -o -user nagios -o -group nrpe -o -group nagios | xargs ls -ld -rwsr-x---+ 1 root nagios 44720 Jun 7 2014 /usr/lib/nagios/plugins/check_ide_smart drwxr-xr-x. 2 nagios nagios 6 Mar 19 22:45 /var/spool/nagios # rpm -qa | grep nagios nagios-plugins-sensors-2.0.1-2.fc21.i686 nagios-plugins-users-2.0.1-2.fc21.i686 nagios-plugins-disk-2.0.1-2.fc21.i686 nagios-common-3.5.1-5.fc21.i686 nagios-plugins-2.0.1-2.fc21.i686 nagios-plugins-load-2.0.1-2.fc21.i686 nagios-plugins-procs-2.0.1-2.fc21.i686 nagios-plugins-check-updates-1.6.9-1.fc21.i686 nagios-plugins-tcp-2.0.1-2.fc21.i686 nagios-plugins-ssh-2.0.1-2.fc21.i686 nagios-plugins-ide_smart-2.0.1-2.fc21.i686 nagios-plugins-ntp-2.0.1-2.fc21.i686 nagios-plugins-swap-2.0.1-2.fc21.i686 Version-Release number of selected component (if applicable): # rpm -q nrpe nrpe-2.15-4.fc21.i686 How reproducible: Always. Steps to Reproduce: 1. Install nrpe & nagios-plugins-ide_smart 2. Configure check_ide_smart in nrpe.cfg, e.g.: command[check_smart_sda]=/usr/lib/nagios/plugins/check_ide_smart -d /dev/sda 3. Call check_ide_smart via nrpe Actual results: NRPE: Unable to read output Expected results: OK - Operational (17/17 tests passed) Additional info:
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
I'm thinking that the best solution here may be to change this bug to actually take place in nrpe package. I am of the opinion that it would be the least intrusive to add the following to the %post in the nrpe package. %{_sbindir}/usermod -a -G nagios %{name} || : My thinking is that nrpe requires nagios-common which ensures that the nagios group exists on the system. Thoughts?
This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '21'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions
Unfixed in F23: $ dnf install nrpe nagios-plugins-ide_smart $ ls -l /usr/lib/nagios/plugins/check_ide_smart -rwsr-x---. 1 root nagios 48872 Sep 11 2015 /usr/lib/nagios/plugins/check_ide_smart $ grep nrpe_ /etc/nagios/nrpe.cfg; id nrpe nrpe_user=nrpe nrpe_group=nrpe uid=989(nrpe) gid=986(nrpe) groups=986(nrpe) $ systemctl start nrpe $ ps -o pid,euid,egid,uid,gid,cmd -p `pgrep nrpe` PID EUID EGID UID GID CMD 956 989 986 989 986 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d => nrpe will not be able to execute check_ide_smart: $ sudo -u nrpe /usr/lib/nagios/plugins/check_ide_smart sudo: unable to execute /usr/lib/nagios/plugins/check_ide_smart: Permission denied The proposed workarounds from above still apply.
This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Please check with the current version of the package. The RPM does not set the group to being nagios and has the permissions of the plugin to be 0755 so it should be usable.
nagios-plugins-2.2.1-2git.fc26 has been pushed to the Fedora 26 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-4337b54215
After uninstalling nrpe and all nagios-plugin packages and then reinstalling, the check_ide_smart script is still owned by root:nagios while NRPE runs as nrpe:nrpe per default: $ rpm -qf /usr/lib64/nagios/plugins/check_ide_smart nagios-plugins-ide_smart-2.2.1-1.fc25.x86_64 $ ls -l /usr/lib64/nagios/plugins/check_ide_smart -rwsr-x---. 1 root nagios 49784 Apr 20 16:47 /usr/lib64/nagios/plugins/check_ide_smart $ ps -fp `pgrep nrpe` UID PID PPID C STIME TTY TIME CMD nrpe 2757 1 0 12:34 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f -n $ sudo -u nrpe /usr/lib64/nagios/plugins/check_ide_smart -d /dev/sda sudo: unable to execute /usr/lib64/nagios/plugins/check_ide_smart: Permission denied Workaround: $ sudo chgrp -c nrpe /usr/lib64/nagios/plugins/check_ide_smart $ sudo chmod u+s /usr/lib64/nagios/plugins/check_ide_smart $ sudo -u nrpe /usr/lib64/nagios/plugins/check_ide_smart -d /dev/sda OK - Operational (17/17 tests passed)
OK I was an idiot when I looked at the spec file before. I mean how could I miss this part. %files dhcp %defattr(4750,root,nagios,-) %{_libdir}/nagios/plugins/check_dhcp %files fping %defattr(4750,root,nagios,-) %{_libdir}/nagios/plugins/check_fping %files icmp %defattr(4750,root,nagios,-) %{_libdir}/nagios/plugins/check_icmp %files ide_smart %defattr(4750,root,nagios,-) %{_libdir}/nagios/plugins/check_ide_smart I think those are the setuid packages which are wanted to be restricted down since they might blow up. So I am going to check with security but I believe the fix from upstream of putting the nrpe group in the nagios group is the easiest fix.
nrpe-3.1.1-6.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d9a7b840d8
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.fc26 has been pushed to the Fedora 26 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-d9a7b840d8
nagios-plugins-2.2.1-3git.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-76229ef8c9
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
nagios-plugins-2.2.1-3git.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-76229ef8c9
nagios-plugins-2.2.1-3git.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-4b1c55c024
nagios-plugins-2.2.1-3git.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-6401b28fc4
nagios-plugins-2.2.1-3git.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-8d031793bf
nagios-plugins-2.2.1-3git.fc26 has been pushed to the Fedora 26 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-a5f81422dc
nagios-plugins-2.2.1-4git.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c2e82de3b3
nrpe-3.2.0-1git.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-487a01f0be
nrpe-3.2.0-2git.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b30a5177e7
nagios-plugins-2.2.1-4git.fc26 has been pushed to the Fedora 26 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-c2e82de3b3
nrpe-3.2.0-2git.fc26 has been pushed to the Fedora 26 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-b30a5177e7
nrpe-3.2.0-3.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-47d1a274d4
nrpe-3.2.0-3.fc26 has been pushed to the Fedora 26 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-47d1a274d4
nagios-plugins-2.2.1-4git.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-8973027f42
nagios-plugins-2.2.1-4git.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-87ebfdc686
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.
nagios-plugins-2.2.1-3git.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.
nagios-plugins-2.2.1-4git.fc26 has been pushed to the Fedora 26 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
nagios-plugins-2.2.1-4git.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-3.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
nagios-plugins-2.2.1-3git.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
nagios-plugins-2.2.1-4git.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
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.