[Pkg-nagios-devel] Bug#495236: nagios3-common: init script fails to remove command file

Pierre Dinh-van dinhvan at jpk.com
Fri Aug 15 15:40:01 UTC 2008


Package: nagios3-common
Version: 3.0.1-1~bpo40+1
Severity: normal
Tags: patch


I noticed that my nagios3 installation didn't manage to startup automatically at boot process.
After checking a little bit, I noticed that the command file /var/lib/nagios3/rw/nagios.cmd still 
exists after a reboot, but is not a pipe anymore, but a standart file.

dinhvan at nagios:~$ sudo ls -l /var/lib/nagios3/rw/nagios.cmd
-rw-r--r-- 1 root root 115 2008-08-15 17:10 /var/lib/nagios3/rw/nagios.cmd


I tried to use the init script of nagios 3.0.3 (from etch-backports), but it doesn't fix this issue.

I fixed it with the following workaround, but why the command file changing its type stays a mystery for me.


--- nagios3.303 2008-08-15 17:35:19.000000000 +0200
+++ nagios3     2008-08-15 17:35:51.000000000 +0200
@@ -103,9 +103,11 @@
 check_named_pipe () {
   nagiospipe="$(get_config command_file)"
   if [ -p "$nagiospipe" ]; then
-    return 1   # a named pipe exists
+      return 1   # a named pipe exists
+  elif [ -e "$nagiospipe" ];then
+      return 1
   else
-    return 0   # no named pipe exists
+      return 0   # no named pipe exists
   fi
 }



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-xen-amd64
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages nagios3-common depends on:
ii  adduser          3.102                   Add and remove users and groups
ii  apache2-utils    2.2.3-4+etch5           utility programs for webservers
ii  coreutils        5.97-5.3                The GNU core utilities
ii  debconf [debconf 1.5.11etch2             Debian configuration management sy
ii  lsb-base         3.1-23.2etch1           Linux Standard Base 3.1 init scrip
ii  mailx            1:8.1.2-0.20050715cvs-1 A simple mail user agent
ii  nagios-plugins-b 1.4.5-1etch1            Plugins for the nagios network mon
ii  nagios3-doc      3.0.1-1~bpo40+1         documentation for nagios3
ii  ucf              2.0020                  Update Configuration File: preserv

Versions of packages nagios3-common recommends:
ii  apache2                    2.2.3-4+etch5 Next generation, scalable, extenda
ii  apache2-mpm-worker [httpd] 2.2.3-4+etch5 High speed threaded model for Apac
pn  nagios-images              <none>        (no description available)
pn  nagios-plugins             <none>        (no description available)

-- debconf information:
  nagios3/nagios1-in-apacheconf: false
  nagios3/adminpassword-mismatch:
  nagios3/httpd: apache2





More information about the Pkg-nagios-devel mailing list