Home > Cannot Remove > Cannot Remove Pid File /var/run/nrpe.pid

Cannot Remove Pid File /var/run/nrpe.pid

Notification sent to Michel Verdier : Bug acknowledged by developer. (Fri, 04 Sep 2009 14:03:20 GMT) Full text and rfc822 format available. run the plugins with the given parameters in a su shell running as the user that usually executes them and check where they fail. Edit bug mail Other bug subscribers Subscribe someone else Bug attachments Dependencies.txt (edit) Add attachment • Take the tour • Read the guide © 2004-2016 CanonicalLtd. • Terms of use share|improve this answer answered May 31 '10 at 12:25 lexsys 1,31831730 add a comment| up vote 1 down vote As Bart B said above, do not chmod 777 any directory on navigate here

thanks, sean [signature.asc (application/pgp-signature, inline)] Tags added: moreinfo, unreproducible Request was from sean finney to [email protected] (Sat, 12 May 2007 10:30:02 GMT) Full text and rfc822 format available. 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. Package: nagios-nrpe-server; Maintainer for nagios-nrpe-server is Debian Nagios Maintainer Group ; Source for nagios-nrpe-server is src:nagios-nrpe. As discussed earlier, the solution is to create a subdirectory in /var/run/ (just like nagios itself does), chown it to nagios (if not already done) and write the pidfile there. https://support.nagios.com/forum/viewtopic.php?f=6&t=11515

The server i copied it from is currently running 10.04 but it has been running for years so the original nrpe.cfg was probably from 8.04 or something. This was a quick fix, but this is not the solution. Comment 14 Thomas Backlund 2013-08-17 10:25:57 CEST Update pushed: http://advisories.mageia.org/MGAA-2013-0085.html Note You need to log in before you can comment on or make changes to this bug. I'm tearing my hair out!

Full text and rfc822 format available. I'm running the RPM version which was installed via yum from the RPMForge repositories. When I run the command on the client all is well, but NRPE isn't communicating as it should as I demonstrated in the OP. Paul PS: pending?

share|improve this answer answered Sep 20 '12 at 13:09 rackandboneman 1,97448 even if root is the user which is running the plugin? The file is only written if the NRPE daemon is started by the root # user and is running in standalone mode. I certainly wouldn't recommend this on a production system! –Bart B May 31 '10 at 13:29 I know it's not a good idea, but it's a way to understand https://bugs.debian.org/411046 Here is a screenshot showing the Nagios web interface.

If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. http://admin.fedoraproject.org/updates/nrpe-2.12-13.el4 Comment 4 Fedora Update System 2010-06-18 07:22:57 EDT nrpe-2.12-13.fc13 has been submitted as an update for Fedora 13. Fixed in SVN for Mageia 2 and Mageia 3. If problems still persist, please make note of it in this bug report.

Reported by: Michel Verdier Date: Thu, 15 Feb 2007 13:33:01 UTC Severity: normal Tags: moreinfo, unreproducible Found in version nagios-nrpe/2.5.1-3 Fixed in version nagios-nrpe/2.12-4 Done: Alexander Wirt Bug is her latest blog more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed How do I handle this? To do this I installed and configured NRPE on the Nagios client.

It seemed to be working, so I simulated some downtime but Nagios didn't report it. check over here If so, we could go ahead and update this now. Copy sent to Debian Nagios Maintainer Group . You could even store the lock file within your nagios installation directory by creating a a directory like: /usr/lib/nagios/var lock_file=/usr/lib/nagios/var share|improve this answer edited Jun 4 '10 at 19:47 answered May

Why is Professor Lewin correct regarding dimensional analysis, and I'm not? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed The User which is running the plugins is root. **EDIT: The nrpe is configured to run as a daemon so xinetd doesn't play a role here, in addition, checking /var/log/messages |grep his comment is here 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

Why there are no approximation algorithms for SAT and other decision problems? How to react? Check the remote server logs for error messages.

St├ęphane Graber (stgraber) wrote on 2011-11-25: #5 This is why nrpe writes its pidfile in /var/run/nagios by default.

If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update nrpe'. Full text and rfc822 format available. Tags added: pending Request was from Alexander Wirt to [email protected] (Mon, 06 Jul 2009 05:48:05 GMT) Full text and rfc822 format available. Why won't curl download this link when a browser will?

If you login with the nagios user you can write normally in /var/run with the original permission. –Pier May 31 '10 at 16:31 So it looks like when you nrpe[18832]: Daemon shutdown nrpe[19974]: Stopping nrpe: [ OK ] # ll /var/run/nrpe/nrpe.pid -rw-r--r-- 1 root root 6 May 3 18:16 /var/run/nrpe/nrpe.pid nrpe runs as user/group nagios It doesn't prevent the service The error in the logs was: Failed to obtain lock on file /var/run/nagios.pid: Permission denied So, I checked and there was no pid file for Nagios in /var/run. weblink Reproducible: Steps to Reproduce: Comment 1 David Walser 2013-05-03 20:32:44 CEST Possibly /var/run/nrpe should be owned by nagios:nagios, i.e.

Comment 12 Oden Eriksson 2013-08-16 09:41:53 CEST FYI: http://svn.mandriva.com/viewvc/packages/cooker/nrpe/current/SPECS/nrpe.spec?r1=535273&r2=544448 Comment 13 David Walser 2013-08-16 12:48:01 CEST (In reply to Oden Eriksson from comment #12) > FYI: > http://svn.mandriva.com/viewvc/packages/cooker/nrpe/current/SPECS/nrpe. > spec?r1=535273&r2=544448 Yeah