Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1639819
Summary: | nrpe service file fails after updating to 3.2.1 | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | jordan.english |
Component: | nrpe | Assignee: | Stephen John Smoogen <smooge> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | epel7 | CC: | athmanem, b.heden, jose.p.oliveira.oss, ondrejj, smooge, smooge, s, swilkerson |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-10-16 16:47:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
jordan.english
2018-10-16 16:41:28 UTC
This will be covered in 1637727. The problem is that the nrpe.cfg has the correct settings but is not going to be seen on any system with an updated config. I have made and put -8 today which should show up in epel-testing. Please test this and let me know. *** This bug has been marked as a duplicate of bug 1637727 *** 3.2.1-8 appears to be working. We updated in this order: 3.2.0 -> 3.2.1-6 -> 3.2.1.-8 Is the only change to comment out the PID file option? (ITG-FM|jenglish@ftm-roiditgdb01 ~)$ sudo systemctl cat nrpe # /usr/lib/systemd/system/nrpe.service [Unit] Description=Nagios Remote Program Executor Documentation=http://www.nagios.org/documentation Conflicts=nrpe.socket Requires=network-online.target After=var-run.mount nss-lookup.target network.target local-fs.target time-sync.target Before=getty xdm.service [Install] WantedBy=multi-user.target [Service] Type=simple User=nrpe Group=nrpe EnvironmentFile=/etc/sysconfig/nrpe ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f $NRPE_SSL_OPT ExecReload=/bin/kill -HUP $MAINPID ExecStopPost=/bin/rm -f /var/run/nrpe/nrpe.pid #PIDFile=/var/run/nrpe/nrpe.pid There are several changes. One we move from a forking to a simple mode. Two we turn off the daemon part of the execstart. Third we remove the PIDFile. PIDFile will remain in Fedora channels and any future RHEL as the config in that contains pid_file=/var/run/nrpe/nrpe.pid line. diff --git a/nrpe.service.epel b/nrpe.service.epel index 44922d0..d3bf549 100644 --- a/nrpe.service.epel +++ b/nrpe.service.epel @@ -10,11 +10,11 @@ Before=getty xdm.service WantedBy=multi-user.target [Service] -Type=forking +Type=simple User=nrpe Group=nrpe EnvironmentFile=/etc/sysconfig/nrpe -ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d $NRPE_SSL_OPT +ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f $NRPE_SSL_OPT ExecReload=/bin/kill -HUP $MAINPID ExecStopPost=/bin/rm -f /var/run/nrpe/nrpe.pid -PIDFile=/var/run/nrpe/nrpe.pid +#PIDFile=/var/run/nrpe/nrpe.pid diff --git a/nrpe.spec b/nrpe.spec index 400b518..c7e6ada 100644 --- a/nrpe.spec +++ b/nrpe.spec Thank you for the update and information. When will 3.2.1-8 be ready for the standard EPEL repo? It will go into EPEL-testing during the next successful compose. After that it will be there until it gets 2 +1 tests. I would like to make sure it gets tested as it was 'autopromoted' last time without adequate testing. |