[Pkg-nagios-devel] Bug#492201: post-installation script fails because of setting permissions to non-existing directory

Hubert Plociniczak hubert at lshift.net
Thu Jul 24 11:11:25 UTC 2008


Package: nagios3-common
Version: 3.0.2-1
Severity: normal

Hi,

installation of the normal nagios3-common package from apt returns error:

chown: cannot access `/var/lib/nagios3/spool/checkresults': No such file 
or directory
dpkg: error processing nagios3-common (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 nagios3-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is because the package doesn't create directory 
/var/lib/nagios3/spool/checkresults
at all. It does however create /var/lib/nagios3/checkresults.
The post-inst script does:

setperm nagios nagios 0750 /var/lib/nagios3/spool/checkresults

which results in error. So you either change this to path 
/var/lib/nagios3/checkresults which
already exists (but also remember about the change in nagios.cfg) or create
/var/lib/nagios3/spool/checkresults directory.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.18-6-vserver-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Thanks,
Hubert Plociniczak





More information about the Pkg-nagios-devel mailing list