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

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

nrpe[18832]: Cannot remove pidfile '/var/run/nrpe/nrpe.pid' - check your privileges. Changed in nagios-nrpe (Ubuntu): status: New → Confirmed Nathan Grennan (ngrennan) wrote on 2011-11-15: #3 This bug seems to be a result of the last fix. Debian distribution maintenance software pp. It's not easy to understand why it doesn't work. http://dekovsoft.com/cannot-remove/cannot-remove-read-only-file-system-xp.html

Full text and rfc822 format available. patches Date: Thu, 4 Jun 2009 18:20:13 +0200 On Sun 14 Sep 2008, Luk Claes wrote: > + * Remove pid file before creating a new ones (Closes: #411046). Comment 1 Felix Botner 2014-03-17 14:45:42 CET In univention-nagios-client: * Changed pid_file to /var/run/nagios/nrpe.pid in /etc/univention/templates/files/etc/nagios/nrpe.cfg * Create and "chown nagios" PIDDIR=/var/run/nagios in /etc/univention/templates/files/etc/init.d/nagios-nrpe-server: YAML: 2014-03-17-univention-nagios.yaml Comment 2 Philipp Hahn 2014-04-03 Running the commands manually returns correct values. https://support.nagios.com/forum/viewtopic.php?f=6&t=11515

Another situation, sometimes remote plugins do not have encyption enabled, so when nagios issues the command connection to the remote npre fails. Message #5 received at [email protected] (full text, mbox, reply): From: Michel Verdier To: Debian Bug Tracking System Subject: nagios-nrpe-server: Cannot remove pidfile '/var/run/nrpe.pid' - check your privileges. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update nrpe'.

http://admin.fedoraproject.org/updates/nrpe-2.12-13.fc12 Comment 3 Fedora Update System 2010-06-18 07:22:43 EDT nrpe-2.12-13.el4 has been submitted as an update for Fedora EPEL 4. local) which is unlikely. Comment 11 Fedora Update System 2010-07-09 01:57:58 EDT nrpe-2.12-13.el5 has been pushed to the Fedora EPEL 5 stable repository. Not the answer you're looking for?

Full text and rfc822 format available. Register Login Posting Guidelines | Contact Moderators Ars Technica > Forums > Operating Systems & Software > Linux Kung Fu Jump to: Select a forum ------------------ Hardware & Tweaking Audio/Visual 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 https://bugs.debian.org/411046 EX: /usr/lib/nagios/plugins/check_nrpe -H HOSTNAME If nrpe is not running on the monitored host, then you're not going to get anything back.

Paul PS: pending? http://admin.fedoraproject.org/updates/nrpe-2.12-13.fc13 Comment 5 Fedora Update System 2010-06-18 12:42:41 EDT nrpe-2.12-13.el4 has been pushed to the Fedora EPEL 4 testing repository. The correct solution to this problem, at least for me, was to update the nagios.cfg Nagios configuration file (mine is /etc/nagios/nagios.cfg), and to change this line: lock_file=/var/run/nagios.pid to this: lock_file=/var/nagios/nagios.pid The Information forwarded to [email protected], Debian Nagios Maintainer Group : Bug#411046; Package nagios-nrpe-server. (Thu, 04 Jun 2009 16:36:05 GMT) Full text and rfc822 format available.

Error from /var/log/messages: Cannot write to pidfile '/var/run/nrpe.pid' - check your privileges. SMF 2.0.10 | SMF © 2015, Simple Machines Flagrantly by, Crip XHTML RSS WAP2 Page created in 0.127 seconds with 19 queries. Acknowledgement sent to Paul Slootman : Extra info received and forwarded to list. If problems still persist, please make note of it in this bug report.

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 check over here Copy sent to Debian Nagios Maintainer Group . (Thu, 04 Jun 2009 16:36:05 GMT) Full text and rfc822 format available. Subscribing... Any ideas on how I can get the service to stop now?

How does std::string work? I'm running the RPM version which was installed via yum from the RPMForge repositories. Copy sent to Debian Nagios Maintainer Group . his comment is here Full text and rfc822 format available.

This bug is extra frustrating, because the script says it stopped it or restarted it. Why won't curl download this link when a browser will? Here is a screenshot showing the Nagios web interface.

Acknowledgement sent to Ferenc Wagner : Extra info received and forwarded to list.

share|improve this answer answered Jun 3 '10 at 1:29 Jaron 111 In my case, the /etc/init.d/nagios pidvalue was not overridden by nagios.cfg, which caused "service nagios stop" to fail. Copy sent to Debian Nagios Maintainer Group . Check that the lock_file option points there instead like this: lock_file=/var/run/nagios/nagios.pid share|improve this answer answered Jan 25 at 20:56 Tarjei Huse 1011 add a comment| up vote 0 down vote If 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.

Nagios has been up and running and sending notifications for a while now, and when I turn off NRPE on the client Nagios notices and sends an alert.At this stage I'd Not sure I see the purpose in pointing this commit out though... Google "check_nrpe" and look at the very first result. http://dekovsoft.com/cannot-remove/cannot-remove-avg-7-5.html If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update nrpe'.

up vote 5 down vote favorite I ran an update on a CentOS server running Nagios, after the update, Nagios failed to start. Tank-Fighting Alien How to grep two numbers from the same line at different places using bash? 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 At delivery time, client criticises the lack of some features that weren't written on my quote.

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 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 Do humans have an obligation to prevent animal on animal violence? Report a bug This report contains Public information Edit Everyone can see this information.

Thanks:) St├ęphane Graber (stgraber) wrote on 2011-11-30: #8 Good to hear! I think you should close this bug. I suggest using /var/run/nagios3/ as nagios uses that as well. Comment 4 claire robinson 2013-08-14 08:03:23 CEST There is a clear problem this time, the service fails to start after a timeout saying it cannot create the pid file.

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 Note You need to log in before you can comment on or make changes to this bug. I've turned debugging on, but the only logs it's generating are "Cannot remove pidfile '/var/run/nrpe.pid' - check your privileges" when I restart the demon and the expected SSH errors when I If problems still persist, please make note of it in this bug report.

If problems still persist, please make note of it in this bug report. Acknowledgement sent to Joost Cassee : Extra info received and forwarded to list. I think you should close this bug. Do humans have an obligation to prevent animal on animal violence?

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.