Red Hat Bugzilla – Bug 1291555
Nagios 4.0.8 won't write pid to predefined pidfile
Last modified: 2016-01-20 23:39:16 EST
Description of problem:
No pidfile is written
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. restart nagios
No pidfile written (or updated)
pid written to pidfile
grep lock_file /etc/nagios/nagios.cfg
=> only written in daemon mode...
grep -i pid /usr/lib/systemd/system/nagios.service
=> this option (cleanup of left-over pidfile) is not used in current case because Type=simple according to systemd manual
ll /var/run/ |grep nagios
drwxr-xr-x 2 nagios nagios 40 15. Dez 07:31 nagios
=> nagios user should be able to create/write a file into directory
I assume problem is that systemd will start nagios in foreground mode, but lock_file is only written in daemon mode by nagios itself
Afair pidfile was written before major update to version 4
nagios-4.0.8-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-eed09b5974
nagios-4.0.8-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-2015-eed09b5974
nagios-4.0.8-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.