nagios2-common: nagios is unable to rotate log because /var/log/nagios2/archives is owned by root

Nicolas Chuche nicolas at barna.be
Thu Oct 11 20:48:43 UTC 2007


Package: nagios2-common
Version: 2.6-2
Severity: important
Tags: patch



-- System Information:
Debian Release: 4.0
  APT prefers feisty-updates
  APT policy: (500, 'feisty-updates'), (500, 'feisty-security'), (500, 'feisty-proposed'), (500, 'feisty-backports'), (500, 'feisty')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.20-15-generic
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages nagios2-common depends on:
ii  adduser   3.100                          Add and remove users and groups
ii  apache2   2.2.3-3.2ubuntu1               Next generation, scalable, extenda
ii  apache2-m 2.2.3-3.2ubuntu1               Traditional model for Apache HTTPD
ii  coreutils 5.97-5.2ubuntu3                The GNU core utilities
ii  debconf [ 1.5.13ubuntu1                  Debian configuration management sy
ii  lsb-base  3.1-22ubuntu3                  Linux Standard Base 3.1 init scrip
ii  mailx     1:8.1.2-0.20050715cvs-1ubuntu2 A simple mail user agent
ii  nagios-pl 1.4.5-2                        Plugins for the nagios network mon
ii  nagios2-d 2.6-2                          documentation for nagios2
ii  ucf       2.0017ubuntu1                  Update Configuration File: preserv

Versions of packages nagios2-common recommends:
ii  nagios-images                 0.3        Collection of images and icons for
ii  nagios-plugins                1.4.5-2    Plugins for the nagios network mon

-- debconf information:
* nagios2/httpd: apache2
* nagios2/nagios1-in-apacheconf: false
  nagios2/adminpassword-mismatch:
-------------- next part --------------
--- debian/nagios2-common/DEBIAN/postinst.orig	2007-10-11 22:44:38.000000000 +0200
+++ debian/nagios2-common/DEBIAN/postinst	2007-10-11 22:45:00.000000000 +0200
@@ -95,6 +95,7 @@
 	# on the uid/gid of the nagios user, which is dynamically created.
         setperm root nagios 0640 $en/resource.cfg
         setperm nagios adm 2751 /var/log/nagios2
+        setperm nagios adm 2751 /var/log/nagios2/archives
         setperm nagios nagios 0750 /var/run/nagios2
         setperm nagios nagios 0750 /var/lib/nagios2
         setperm nagios www-data 02750 /var/cache/nagios2
-------------- next part --------------
--- debian/nagios2-common/DEBIAN/postinst.orig	2007-10-11 22:44:38.000000000 +0200
+++ debian/nagios2-common/DEBIAN/postinst	2007-10-11 22:45:00.000000000 +0200
@@ -95,6 +95,7 @@
 	# on the uid/gid of the nagios user, which is dynamically created.
         setperm root nagios 0640 $en/resource.cfg
         setperm nagios adm 2751 /var/log/nagios2
+        setperm nagios adm 2751 /var/log/nagios2/archives
         setperm nagios nagios 0750 /var/run/nagios2
         setperm nagios nagios 0750 /var/lib/nagios2
         setperm nagios www-data 02750 /var/cache/nagios2


More information about the ubuntu-users mailing list