Bug 575544 - nrpe cannot remove it's pidfile
Summary: nrpe cannot remove it's pidfile
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nrpe
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Peter Lemenkov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-21 12:28 UTC by Ruben Kerkhof
Modified: 2010-07-09 06:00 UTC (History)
4 users (show)

Fixed In Version: nrpe-2.12-13.el4
Clone Of:
Environment:
Last Closed: 2010-06-25 18:13:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ruben Kerkhof 2010-03-21 12:28:41 UTC
Description of problem:

By default nrpe stores it's pidfile in /var/run/nrpe.pid.
When you restart nrpe, you get the error "Cannot remove pidfile '/var/run/nrpe.pid' - check your privileges"

This is because nrpe is started as root but drops privileges to the nrpe user. That user doesn't have permission on /var/run/nrpe.pid.

It would be better to move the pidfile to /var/run/nrpe/nrpe.pid, and make the /var/run/nrpe directory owned by the nrpe user.


Version-Release number of selected component (if applicable):

nrpe-2.12-12.fc12.x86_64

How reproducible:

[root@phy003 ~]# service nrpe restart
Shutting down nrpe:                                        [  OK  ]
Starting nrpe:                                             [  OK  ]

Observe /var/log/messages:
r 21 13:28:07 phy003 nrpe[1400]: Caught SIGTERM - shutting down...
Mar 21 13:28:07 phy003 nrpe[1400]: Cannot remove pidfile '/var/run/nrpe.pid' - check your privileges.
Mar 21 13:28:07 phy003 nrpe[1400]: Daemon shutdown
Mar 21 13:28:08 phy003 nrpe[1601]: Starting up daemon
Mar 21 13:28:08 phy003 nrpe[1601]: Listening for connections on port 5666

Comment 1 Fedora Update System 2010-06-18 11:19:32 UTC
nrpe-2.12-13.el5 has been submitted as an update for Fedora EPEL 5.
http://admin.fedoraproject.org/updates/nrpe-2.12-13.el5

Comment 2 Fedora Update System 2010-06-18 11:22:30 UTC
nrpe-2.12-13.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/nrpe-2.12-13.fc12

Comment 3 Fedora Update System 2010-06-18 11:22:43 UTC
nrpe-2.12-13.el4 has been submitted as an update for Fedora EPEL 4.
http://admin.fedoraproject.org/updates/nrpe-2.12-13.el4

Comment 4 Fedora Update System 2010-06-18 11:22:57 UTC
nrpe-2.12-13.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/nrpe-2.12-13.fc13

Comment 5 Fedora Update System 2010-06-18 16:42:41 UTC
nrpe-2.12-13.el4 has been pushed to the Fedora EPEL 4 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nrpe'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/nrpe-2.12-13.el4

Comment 6 Fedora Update System 2010-06-18 16:42:59 UTC
nrpe-2.12-13.el5 has been pushed to the Fedora EPEL 5 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nrpe'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/nrpe-2.12-13.el5

Comment 7 Fedora Update System 2010-06-21 12:55:18 UTC
nrpe-2.12-13.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nrpe'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/nrpe-2.12-13.fc12

Comment 8 Fedora Update System 2010-06-21 13:01:20 UTC
nrpe-2.12-13.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nrpe'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/nrpe-2.12-13.fc13

Comment 9 Fedora Update System 2010-06-25 18:13:26 UTC
nrpe-2.12-13.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2010-06-25 18:22:10 UTC
nrpe-2.12-13.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2010-07-09 05:57:58 UTC
nrpe-2.12-13.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2010-07-09 05:59:54 UTC
nrpe-2.12-13.el4 has been pushed to the Fedora EPEL 4 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.