Your message dated Sat, 04 Jan 2014 09:19:55 +0000
with message-id <[email protected]>
and subject line Bug#733415: fixed in nsca 2.9.1-3
has caused the Debian Bug report #733415,
regarding init-script exits after sucessfully creating folder /var/run/nagios
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
733415: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733415
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nsca
Version: 2.9.1-2
Architecture: armhf
Description: Nagios service monitor

Lines 47-50 of the init script seems to be malformed.

The package init script (/etc/init.d/nsca) has the following if clause:

if [ ! -d "/var/run/nagios" ]; then
    mkdir -p /var/run/nagios || log_failure_msg "couldn't create
/var/run/nagios"
    exit 1
fi

It will cause the script to exit if the folder /var/run/nagios is lacking,
even if the mkdir is successfull.

This must, in my opinion, be malformed.

My system (raspberry pi, tmpfs for /var/run) needs the folder created on
each boot, but the script exits after the folder is created and the service
is not started.

Changing the lines to the following makes the service start on boot for me:

if [ ! -d "/var/run/nagios" || ! mkdir -p /var/run/nagios ]; then
    log_failure_msg "couldn't create /var/run/nagios"
    exit 1
fi


Information from the system:
root@rpi:~# which nsca
/usr/sbin/nsca
root@rpi:~# type nsca
nsca is /usr/sbin/nsca
root@rpi:~# dpkg --search /usr/sbin/nsca
nsca: /usr/sbin/nsca
root@rpi:~# dpkg --list nsca
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                    Version
Architecture             Description
+++-=======================================-========================-========================-===================================================================================
ii  nsca                                    2.9.1-2
armhf                    Nagios service monitor agent
root@rpi:~# dpkg --status nsca
Package: nsca
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 126
Maintainer: Debian Nagios Maintainer Group <
[email protected]>
Architecture: armhf
Version: 2.9.1-2
Depends: libc6 (>= 2.4), libmcrypt4, debconf (>> 0.5) | debconf-2.0,
nsca-client, confget
Suggests: nagios3, nagios-plugins-basic | nagios-plugins
Conffiles:
 /etc/nsca.cfg 5de6af7fc3db8b95a1a9238b6cce8aa0
 /etc/init.d/nsca 64b8f41f3240a8272f04542642a570ff
Description: Nagios service monitor agent
 This addon allows you to send service check results to a central
 monitoring server running Nagios in a reasonably secure manner.
 .
 Nagios is a monitoring and management system for hosts, services and
 networks.
 .
 Nagios' features include:
 .
  -  Monitoring of network services (via TCP port, SMTP, POP3, HTTP, NNTP,
     PING, etc.)
  -  Plugin interface to allow for user-developed service checks
  -  Contact notifications when problems occur and get resolved (via email,
     pager, or user-defined method)
  -  Ability to define event handlers to be run during service or host
events
     (for proactive problem resolution)
  -  Web output (current status, notifications, problem history, log file,
     etc.)
 .
 Nagios was written in C and is designed to be easy to understand and modify
 to fit your own needs.

Sincerely,
Mattias

--- End Message ---
--- Begin Message ---
Source: nsca
Source-Version: 2.9.1-3

We believe that the bug you reported is fixed in the latest version of
nsca, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexander Wirt <[email protected]> (supplier of updated nsca package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 28 Dec 2013 21:38:12 +0100
Source: nsca
Binary: nsca nsca-client
Architecture: source amd64
Version: 2.9.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Nagios Maintainer Group 
<[email protected]>
Changed-By: Alexander Wirt <[email protected]>
Description: 
 nsca       - Nagios service monitor agent
 nsca-client - Nagios service monitor agent - client package
Closes: 733415
Changes: 
 nsca (2.9.1-3) unstable; urgency=medium
 .
   * [96b0cb1] Mention icinga in nsca.cfg and remove old cruft
   * [b5e3a7d] Fix initscript (Closes: #733415)
Checksums-Sha1: 
 ceef6bf2187324fe958bb5fb6e879d251bec5a28 1782 nsca_2.9.1-3.dsc
 14cff1de054c75b3b498239a30c8a47bdaacdbfc 19591 nsca_2.9.1-3.diff.gz
 df1d73f3b51c2ba5c73c5965ad3b60985d6ea63b 31472 nsca_2.9.1-3_amd64.deb
 2e18d7d5cf9d7a21911ffbb07a42f7b5a0affef0 17252 nsca-client_2.9.1-3_amd64.deb
Checksums-Sha256: 
 429c1acc29203eb671527b69042add46522be75f0424ad9d75f3203421174be1 1782 
nsca_2.9.1-3.dsc
 63e0e9d680646282ec1cd3ebde49b2910aa800a57f3cfd02e2a291bce0c57dab 19591 
nsca_2.9.1-3.diff.gz
 b321cd0d9ad766f61525ec9b949f5f38e315794eb6d8098c1cb052aedf48def6 31472 
nsca_2.9.1-3_amd64.deb
 c1acf6d376e3cd7cc4f399eedffe69da4bb1bd0e075402b7afbac88463e6c967 17252 
nsca-client_2.9.1-3_amd64.deb
Files: 
 26a3180209affa806c15aa2445f5110d 1782 net optional nsca_2.9.1-3.dsc
 4d5b6c281a58d30ef05c1d44e3ab31b5 19591 net optional nsca_2.9.1-3.diff.gz
 01f68f2d8917cd98138a8666fd21ab65 31472 net optional nsca_2.9.1-3_amd64.deb
 bbbe4170fbf0ef2097717fb10c92fd0f 17252 net optional 
nsca-client_2.9.1-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iQIcBAEBAgAGBQJSx8SkAAoJEB5F+Mqd4jsWtCEQAIk1YXvk3gxtTpecp0rnnE5O
8makl22h/mY0zvM2lksk+RbEOnBQ7jQf8gNcSguEXatXbhrcvMzLxbuEH8siGKR0
25p6IMFgradhvrDX+zBS/QDt/MWhvv+qkZ5gAsofboUUbBgcuHcy5sJw39+auVdQ
VEw7unb1mtfh5Tqfy+DbOnQNFK5mtH3dGujQZy2qj9f6KUUKvMXnoZMy1JHsuN2b
KLWYGrZ6r+LjcX14DvaHfKUmbPeiC8K4B/GxfzVL1naaxTPf1dcEWWNqiurbM4sE
KaXVPuyrj6Snec4gmnbVLPmFE0aLRZV3bl24455ZF7GMlsci1SE5x8itlwMO5T4y
ocqprd+CtuwKyMbulT96ckpG4fuQ7SQeiq4Kg4kQCloItbqwzF4qccz8XzRjdQIq
xYNCIruObN8QEIBoPvbidgU3Z0FGKDuQmlbg976Nqxy30zv+vLYh/yzCwNkxb1Qf
gO3JmkiafhwNhuWLXWY583D+ncZj1wUbqiRW3xg6w6DaYxILgOa+GiiRGJFd+kcQ
rG7lO/0nyo/u8Fb0lifLDNNTFGz1N6oaNR+tOnx9V10u7QyRvAJRfGtQGZ+UWy0W
1rpYzkJJqSFdtFTNFOcmHQ6wgIKbmoCKB++l0Doc4KYyI8fcqJRRhLbE2kB3M9Fn
ZX3a7N/AdoAK+cfk17xM
=1mOa
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to