Cannot Write to Pidfile '/var/run/nrpe.pid' - Check Your Privileges.

Debian Bug report logs - #411046
nagios-nrpe-server: Cannot remove pidfile '/var/run/nrpe.pid' - check your privileges.

version graph

Reported by: Michel Verdier <mverdier@thalix.com>

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 <formorer@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>:
Bug#411046; Package nagios-nrpe-server. (full text, mbox, link).


Acknowledgement sent to Michel Verdier <mverdier@thalix.com>:
New Bug report received and forwarded. Copy sent to Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

Package: nagios-nrpe-server Version: 2.5.1-3 Severity: normal  /etc/init.d/nagios-nrpe-server stop says : Cannot remove pidfile '/var/run/nrpe.pid' - check your privileges.  ls -l /var/run : -rw-r--r-- 1 root        root           5 Feb 15 12:26 nrpe.pid  nagios-nrpe-server runs as nagios:nagios nrpe.pid is recreated at start  nagios-nrpe-server still runs correctly  -- System Information: Debian Release: 4.0   APT prefers testing   APT policy: (500, 'testing') Architecture: i386 (i686) Shell:  /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-mobius Locale: LANG=C, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)  Versions of packages nagios-nrpe-server depends on: ii  adduser                     3.102        Add and remove users and groups ii  libc6                       2.3.6.ds1-10 GNU C Library: Shared libraries ii  libssl0.9.8                 0.9.8c-4     SSL shared libraries ii  lsb-base                    3.1-22       Linux Standard Base 3.1 init scrip  Versions of packages nagios-nrpe-server recommends: ii  nagios-plugins                1.4.5-1    Plugins for the nagios network mon ii  nagios-plugins-basic          1.4.5-1    Plugins for the nagios network mon  -- no debconf information      

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>:
Bug#411046; Package nagios-nrpe-server. (full text, mbox, link).


Acknowledgement sent to sean finney <seanius@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 411046@bugs.debian.org (full text, mbox, reply):

[Message part 1 (text/plain, inline)]
tags 411046 moreinfo unreproducible thanks  hi,   sorry for the delayed response :)  i can't reproduce this bug (failing to remove nrpe pid file with init script stop).  could you send a copy of your init script and your nrpe.cfg (and nrpe_local.cfg if appropriate)?   thanks, 	sean      
[signature.asc (application/pgp-signature, inline)]

Tags added: moreinfo, unreproducible Request was from sean finney <seanius@debian.org> to control@bugs.debian.org. (Sat, 12 May 2007 10:30:02 GMT) (full text, mbox, link).


Message sent on to Michel Verdier <mverdier@thalix.com>:
Bug#411046. (full text, mbox, link).


Information stored:
Bug#411046; Package nagios-nrpe-server. (full text, mbox, link).


Acknowledgement sent to Michel Verdier <mverdier@thalix.com>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #20 received at 411046-quiet@bugs.debian.org (full text, mbox, reply):

[Message part 1 (text/plain, inline)]
sean finney <seanius@debian.org> a écrit :  > i can't reproduce this bug (failing to remove nrpe pid file with init > script stop).  could you send a copy of your init script and your > nrpe.cfg (and nrpe_local.cfg if appropriate)?  I can't reproduce now : I have changed my nrpe_local.cfg and deinstall nagios server. I think you should close this bug.  Thanks  --  Michel Verdier http://www.thalix.com      
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>:
Bug#411046; Package nagios-nrpe-server. (full text, mbox, link).


Acknowledgement sent to sean finney <seanius@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #25 received at 411046@bugs.debian.org (full text, mbox, reply):

[Message part 1 (text/plain, inline)]
On Sun, 2007-05-13 at 00:03 +0200, Michel Verdier wrote: > I can't reproduce now : I have changed my nrpe_local.cfg and deinstall > nagios server. I think you should close this bug.  okay :)      
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>:
Bug#411046; Package nagios-nrpe-server. (full text, mbox, link).


Acknowledgement sent to Joost Cassee <joost@cassee.net>:
Extra info received and forwarded to list. Copy sent to Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #30 received at 411046@bugs.debian.org (full text, mbox, reply):

[Message part 1 (text/plain, inline)]
Package: nagios-nrpe-server Version: 2.5.1-3 Followup-For: Bug #411046  This bug is reproduced on my system. Apparently, the pid file is created as root. I tried 'chmod nagios:nagios /var/run/nrpe.pid', but after a restart of the service the file was owned by root again.  /etc/nagios/nrpe[_local].cfg attached.  -- System Information: Debian Release: 4.0   APT prefers stable   APT policy: (500, 'stable') Architecture: i386 (i686) Shell:  /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)  Versions of packages nagios-nrpe-server depends on: ii  adduser                     3.102        Add and remove users and groups ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries ii  libssl0.9.8                 0.9.8c-4     SSL shared libraries ii  lsb-base                    3.1-23.1     Linux Standard Base 3.1 init scrip  Versions of packages nagios-nrpe-server recommends: ii  nagios-plugins                1.4.5-1    Plugins for the nagios network mon ii  nagios-plugins-basic          1.4.5-1    Plugins for the nagios network mon  -- no debconf information      
[nrpe.cfg (text/plain, attachment)]
[nrpe_local.cfg (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>:
Bug#411046; Package nagios-nrpe-server. (full text, mbox, link).


Acknowledgement sent to Ferenc Wagner <wferi@niif.hu>:
Extra info received and forwarded to list. Copy sent to Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #35 received at 411046@bugs.debian.org (full text, mbox, reply):

Hi,  Creating a subdirectory owned by nagios:nagios under /var/run and changing the config to put the PID file there would solve this problem quite cleanly.  Still, maybe it would be better if the daemon dropped its privileges before creating the PID file, not after.  Currently, in src/nrpe.c:                  /* write pid file */                 if(write_pid_file()==ERROR)                         return STATE_CRITICAL;                                  /* drop privileges */                 drop_privileges(nrpe_user,nrpe_group);                  /* make sure we're not root */                 check_privileges();  What do you think? --  Regards, Feri.      

Tags added: pending Request was from Luk Claes <luk@alioth.debian.org> to control@bugs.debian.org. (Sun, 14 Sep 2008 19:48:17 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>:
Bug#411046; Package nagios-nrpe-server. (Thu, 04 Jun 2009 16:36:05 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Slootman <paul@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>. (Thu, 04 Jun 2009 16:36:05 GMT) (full text, mbox, link).


Message #42 received at 411046@bugs.debian.org (full text, mbox, reply):

On Sun 14 Sep 2008, Luk Claes wrote:  > +  * Remove pid file before creating a new ones (Closes: #411046).  This is not the issue; the problem is that when nrpe is stopped, it can't remove its own pid file, as it's written by root in /var/run/ which is only writeable by root. This leads to an error message sent to syslog. When starting, the old one is overwritten without any problem.  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.  I suggest using /var/run/nagios3/ as nagios uses that as well.   Paul PS: pending? since September?      

Tags added: pending Request was from Alexander Wirt <formorer@alioth.debian.org> to control@bugs.debian.org. (Mon, 06 Jul 2009 05:48:05 GMT) (full text, mbox, link).


Reply sent to Alexander Wirt <formorer@debian.org>:
You have taken responsibility. (Fri, 04 Sep 2009 14:03:20 GMT) (full text, mbox, link).


Notification sent to Michel Verdier <mverdier@thalix.com>:
Bug acknowledged by developer. (Fri, 04 Sep 2009 14:03:20 GMT) (full text, mbox, link).


Message #49 received at 411046-close@bugs.debian.org (full text, mbox, reply):

Source: nagios-nrpe Source-Version: 2.12-4  We believe that the bug you reported is fixed in the latest version of nagios-nrpe, which is due to be installed in the Debian FTP archive:  nagios-nrpe-plugin_2.12-4_i386.deb   to pool/main/n/nagios-nrpe/nagios-nrpe-plugin_2.12-4_i386.deb nagios-nrpe-server_2.12-4_i386.deb   to pool/main/n/nagios-nrpe/nagios-nrpe-server_2.12-4_i386.deb nagios-nrpe_2.12-4.diff.gz   to pool/main/n/nagios-nrpe/nagios-nrpe_2.12-4.diff.gz nagios-nrpe_2.12-4.dsc   to pool/main/n/nagios-nrpe/nagios-nrpe_2.12-4.dsc    A summary of the changes between this version and the previous one is attached.  Thank you for reporting the bug, which will now be closed.  If you have further comments please address them to 411046@bugs.debian.org, and the maintainer will reopen the bug report if appropriate.  Debian distribution maintenance software pp. Alexander Wirt <formorer@debian.org> (supplier of updated nagios-nrpe package)  (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@debian.org)   -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1  Format: 1.8 Date: Mon, 06 Jul 2009 07:08:26 +0200 Source: nagios-nrpe Binary: nagios-nrpe-server nagios-nrpe-plugin Architecture: source i386 Version: 2.12-4 Distribution: unstable Urgency: low Maintainer: Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org> Changed-By: Alexander Wirt <formorer@debian.org> Description:   nagios-nrpe-plugin - Nagios Remote Plugin Executor Plugin  nagios-nrpe-server - Nagios Remote Plugin Executor Server Closes: 411046 412705 474333 499280 505700 527069 535737 Changes:   nagios-nrpe (2.12-4) unstable; urgency=low  .    * Build against libwrap0-dev (Closes: #412705)    * Remove 'last modified header' from nrpe config (Closes: #499280)    * Create /etc/nagios/nrpe.d (Closes: #505700, #474333)    * Fix pidfile handling (Closes: #411046)    * Add newer config.{guess,sub} (Closes: #535737)      - Build-depend on autotools-dev    * Delete /var/lib/nagios if empty after purge (Closes: #527069)    * Bump standards version (add README.source)    * Bump dh_compat version (remove -k from dh_clean) Checksums-Sha1:   4d99415fad0f3f81ee67e195715de20bbba859c0 1238 nagios-nrpe_2.12-4.dsc  766c62e52a8b7cb6725213a2287524a53ac53bcc 9799 nagios-nrpe_2.12-4.diff.gz  7272f3d0a29976c07ee74a1f88b855f7394f39f5 36816 nagios-nrpe-server_2.12-4_i386.deb  929ab352a357f2144b5137d3a28592e6b518b509 17828 nagios-nrpe-plugin_2.12-4_i386.deb Checksums-Sha256:   bd44b34345be907f15ac4486c63bb6f9d0cc5ab39e2fb4c92206c4ca2bb02c01 1238 nagios-nrpe_2.12-4.dsc  3f25872ceaa942e081e51fdb5ff0e24aa5ebaa3f840c9f759c2fa6150a16d385 9799 nagios-nrpe_2.12-4.diff.gz  0423e5b36393fda88c0acb4bd45a8fe5c2a6bb65a075c62f3eaa7eadae142575 36816 nagios-nrpe-server_2.12-4_i386.deb  6c462407f03452ea404632423b1726494db36b95d6f094a2d56a84a068bd63bf 17828 nagios-nrpe-plugin_2.12-4_i386.deb Files:   d72529d51b43a5ac8c40587deb2679f6 1238 net optional nagios-nrpe_2.12-4.dsc  12c298a69824021fc2f636c7af0cb6ad 9799 net optional nagios-nrpe_2.12-4.diff.gz  a74a39c4cd208c62d31a378916887014 36816 net optional nagios-nrpe-server_2.12-4_i386.deb  991a1e848f6adcef29e102077c6dddcc 17828 net optional nagios-nrpe-plugin_2.12-4_i386.deb  -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux)  iEYEARECAAYFAkqhFLEACgkQ01u8mbx9AgreHQCglUk+hlDQQnDfnrp9FmHXSTgk 9doAn224M5HCd1vh3Zr8HaIQSckme7wz =NOR+ -----END PGP SIGNATURE-----      

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 13 Oct 2009 07:37:54 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Dec 13 02:52:48 2021 ; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.

Cannot Write to Pidfile '/var/run/nrpe.pid' - Check Your Privileges.

Source: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=411046

0 Response to "Cannot Write to Pidfile '/var/run/nrpe.pid' - Check Your Privileges."

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel