[Pkg-nagios-devel] Bug#689631: nscca: /etc/init.d/nsca fails at boot time

oz oz at bluemonk.de
Thu Oct 4 15:59:05 UTC 2012


Package: nsca
Version: 2.9.1-2
Severity: normal

Dear Maintainer,

nsca daemon does not start after boot on a system with tmpfs on /run. The init-script just makes the directory /var/run/nagios an then exits silently with 'exit 1'.

A suggested patch for /etc/init.d/nsca is:

diff -Naur nsca-2.9.1-2/nsca nsca-new/nsca
--- nsca-2.9.1-2/nsca   2012-10-04 17:42:39.000000000 +0200
+++ nsca-new/nsca       2012-10-04 17:45:27.000000000 +0200
@@ -45,8 +45,7 @@
 fi
 
 if [ ! -d "/var/run/nagios" ]; then
-    mkdir -p /var/run/nagios || log_failure_msg "couldn't create /var/run/nagios"
-    exit 1
+   mkdir -p /var/run/nagios || { log_failure_msg "couldn't create /var/run/nagios"; exit 1; }
 fi
 
 case "$1" in

Thanks.

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

Kernel: Linux 3.2.0-3-686-pae (SMP w/1 CPU core)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nsca depends on:
ii  confget                1.03-1
ii  debconf [debconf-2.0]  1.5.46
ii  libc6                  2.13-35
ii  libmcrypt4             2.5.8-3.1
ii  nsca-client            2.9.1-2

nsca recommends no packages.

Versions of packages nsca suggests:
ii  nagios-plugins        1.4.16-1
ii  nagios-plugins-basic  1.4.16-1
pn  nagios3               <none>

-- Configuration Files:
/etc/init.d/nsca changed [not included]
/etc/nsca.cfg changed [not included]

-- debconf information:
  nsca/run-nsca-daemon:



More information about the Pkg-nagios-devel mailing list