Package: pnp4nagios Version: 0.6.16-2 Severity: normal Tags: d-i Dear Maintainer,
after apt-get upgrade npcd refused to start. We use icinga and pnp4nagios: ii icinga 1.7.1-4 amd64 host and network monitoring system - metapackage ii icinga-cgi 1.7.1-4 amd64 host and network monitoring system - CGI scripts ii icinga-common 1.7.1-4 all host and network monitoring system - support files ii icinga-core 1.7.1-4 amd64 host and network monitoring system - core files pnp4nagios packages see below; npcdmod. User/Group: icinga:icinga I already had problems, when I installed pnp4nagios 0.6.16-1. I had to change all ownerships on the relevant directories and files. After the upgrade the npcd didn't start, no performance data was collected and written. The ownerships had been rewritten to nagios:nagios. I had to re-change all ownerships and start the icinga process manually. After that, everything worked fine. Would it be possible, to check user:group of the installation? This is the history: root@monitor:~# apt-get upgrade [...] Preparing to replace pnp4nagios-bin 0.6.16-1 (using .../pnp4nagios-bin_0.6.16-2_amd64.deb) ... pnp_gearman_worker has been disabled in /etc/default/pnp_gearman_worker. [ ok ] Stopping Nagios Performance C Daemon (PNP4Nagios): npcd. Unpacking replacement pnp4nagios-bin ... Preparing to replace pnp4nagios-web 0.6.16-1 (using .../pnp4nagios-web_0.6.16-2_all.deb) ... Unpacking replacement pnp4nagios-web ... Preparing to replace pnp4nagios 0.6.16-1 (using .../pnp4nagios_0.6.16-2_all.deb) ... [...] Setting up pnp4nagios-bin (0.6.16-2) ... [FAIL] Starting Nagios Performance C Daemon (PNP4Nagios): npcd failed! invoke-rc.d: initscript npcd, action "start" failed. dpkg: error processing pnp4nagios-bin (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of pnp4nagios: pnp4nagios depends on pnp4nagios-bin; however: Package pnp4nagios-bin is not configured yet. dpkg: error processing pnp4nagios (--configure): dependency problems - leaving unconfigured Processing triggers for libapache2-mod-php5 ... [ ok ] Reloading web server config: apache2. Setting up pnp4nagios-web (0.6.16-2) ... Configuration file `/etc/pnp4nagios/config.php' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** config.php (Y/I/N/O/D/Z) [default=N] ? Setting up perl-modules (5.14.2-15) ... Setting up perl (5.14.2-15) ... Setting up libcgi-fast-perl (5.14.2-15) ... Errors were encountered while processing: pnp4nagios-bin pnp4nagios E: Sub-process /usr/bin/dpkg returned an error code (1) root@monitor:/var/log# dpkg -l | /bin/grep pnp4nagios iU pnp4nagios 0.6.16-2 all Nagios addon to create graphs from performance data iF pnp4nagios-bin 0.6.16-2 amd64 Nagios addon to create graphs from performance data (binaries) ii pnp4nagios-web 0.6.16-2 all Nagios addon to create graphs from performance data (web interface) root@monitor:/var/log# dpkg-reconfigure pnp4nagios-bin pnp_gearman_worker has been disabled in /etc/default/pnp_gearman_worker. [ ok ] Stopping Nagios Performance C Daemon (PNP4Nagios): npcd apparently not running. [FAIL] Starting Nagios Performance C Daemon (PNP4Nagios): npcd failed! invoke-rc.d: initscript npcd, action "start" failed. /var/log/syslog: Dec 5 10:34:52 monitor NPCD[12130]: npcd Daemon (0.6.16) started with PID=12130 Dec 5 10:34:52 monitor NPCD[12130]: Please have a look at 'npcd -V' to get license information Dec 5 10:34:52 monitor NPCD[12130]: HINT: load_threshold is disabled - ('0.000000') Dec 5 10:35:00 monitor icinga: Error: Unable to rename file '/var/spool/pnp4nagios/nagios/perfdata.dump' to '/var/spool/pnp4nagios/npcd//perfdata.1354700100': Permission denied Dec 5 10:35:00 monitor icinga: npcdmod: Could not reopen file. Permission denied What we did to make it work: chown -R icinga:icinga /var/spool/pnp4nagios/ chown -R icinga:icinga /var/log/pnp4nagios/* chown icinga /var/log/pnp4nagios chown -R icinga:icinga /var/lib/pnp4nagios/perfdata chown icinga /var/lib/pnp4nagios/ /etc/init.d/npcd start [ ok ] Starting Nagios Performance C Daemon (PNP4Nagios): npcd. /etc/init.d/icinga start After all that without any dpkg* or apt-*-command everything looks fine: dpkg -l | /bin/grep pnp4nagios ii pnp4nagios 0.6.16-2 all Nagios addon to create graphs from performance data ii pnp4nagios-bin 0.6.16-2 amd64 Nagios addon to create graphs from performance data (binaries) ii pnp4nagios-web 0.6.16-2 all Nagios addon to create graphs from performance data (web interface) -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages pnp4nagios depends on: ii pnp4nagios-bin 0.6.16-2 ii pnp4nagios-web 0.6.16-2 pnp4nagios recommends no packages. pnp4nagios suggests no packages. -- no debconf information Kind regards, Alma -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org