Description of problem: In current epel-testing nrpe, this is set: PID_FILE=/var/log/nagios/nrpe.pid This is hardcoded in init script, so unable to change in config file, otherwise nrpe will not restart properly. Version-Release number of selected component (if applicable): nrpe-3.0.1-1.el6.x86_64 (currently epel-testing) How reproducible: always Steps to Reproduce: 1. /etc/init.d/nrpe restart 2. ls -la /var/log/nagios Actual results: cannot access non-existent directory Expected results: Additional info: There is no /var/log/nagios on servers, which use only NRPE and there is no significant need to use NRPE on nagios servers. After upgrade from version 2 to 3, restart does not restart old nrpe due to problems to find it's PID file. Please leave old pid file for NRPE 3, as was used in NRPE 2. Also consider using /etc/sysconfig/nrpe file for configuration parameters, even if this is mostly an obsolete file for CentOS 6 only (newer systems are using systemd).
Urgh. OK I am not sure how this got put in. I will look at the scripts involved and work out your solution as that is what I would do. [It will need to go in /var/run/nrpe I believe for default]
This is from nrpe2 configuration: pid_file=/var/run/nrpe/nrpe.pid Try to leave same file to avoid problems when upgrading package. Do not forget to create /var/run/nrpe directory. I think /var/run on CentOS 6 is normal filesystem (not in RAM).
nrpe-3.0.1-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c4f49632d3
nrpe-3.0.1-4.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-a89da38bf3
Looks better. There is an /etc/sysconfig/nrpe, but looks like it's never loaded from init script on CentOS 6. Consider adding this to init script: [ -e /etc/sysconfig/nrpe ] && . /etc/sysconfig/nrpe I think this sysconfig file is not necessary for CentOS 7 or Fedoras, because it's not used in systemd service file and it's not so useful as for sysvinit script.
nrpe-3.0.1-4.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-c4f49632d3
nrpe-3.0.1-4.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-a89da38bf3
OK I have put the fixes back into the RPM. Hopefully -5 will work for you after I get it built.
nrpe-3.0.1-6.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8f92515d27
nrpe-3.0.1-6.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d12527a635
nrpe-3.0.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-8f92515d27
nrpe-3.0.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-d12527a635
# rpm -q nrpe nrpe-3.0.1-6.fc25.x86_64 # fgrep -h .pid /etc/nagios/nrpe.cfg /etc/systemd/system/multi-user.target.wants/nrpe.service pid_file=/var/run/nrpe/nrpe.pid PIDFile=/var/run/nrpe/nrpe.pid ExecStopPost=/bin/rm -f /var/run/nrpe/nrpe.pid # ps -fp `cat /var/run/nrpe/nrpe.pid` UID PID PPID C STIME TTY TIME CMD nrpe 5761 1 0 23:06 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f -n
nrpe-3.1.0-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-665b1abde6
nrpe-3.1.0-3.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-665b1abde6
# rpm -q nrpe; fgrep -h .pid /etc/nagios/nrpe.cfg /etc/systemd/system/multi-user.target.wants/nrpe.service nrpe-3.1.0-3.fc25.x86_64 pid_file=/var/run/nrpe.pid With nrpe-3.1.0-3.fc25, nrpe.cfg specifies pid_file again to /var/run/nrpe.pid (which is not preferred, see bug 1236081) and is also missing PIDFile from nrpe.service, which also causes bug 1412214 to re-appear.
nrpe-3.1.1-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-eb24165ee1
nrpe-3.1.1-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-be117b53a8
nrpe-3.1.1-1.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-be117b53a8
nrpe-3.1.1-1.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-eb24165ee1
nrpe-3.1.1-1.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-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.