[Pkg-nagios-devel] Bug#301105: marked as done (nagios-common: fails to install for apache if caudmium is installed too)

Debian Bug Tracking System owner@bugs.debian.org
Wed, 06 Apr 2005 07:03:43 -0700

Your message dated Wed, 06 Apr 2005 09:32:23 -0400
with message-id <E1DJAdr-0007br-00@newraff.debian.org>
and subject line Bug#301105: fixed in nagios 2:1.3-cvs.20050402-1
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 23 Mar 2005 20:26:11 +0000
>From prahal@wanadoo.fr Wed Mar 23 12:26:11 2005
Return-path: <prahal@wanadoo.fr>
Received: from smtp3.wanadoo.fr [] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DECQd-0001Qk-00; Wed, 23 Mar 2005 12:26:11 -0800
Received: from me-wanadoo.net (localhost [])
	by mwinf0307.wanadoo.fr (SMTP Server) with ESMTP id 759541C001F4
	for <submit@bugs.debian.org>; Wed, 23 Mar 2005 21:25:39 +0100 (CET)
Received: from argos.server.maison (AToulouse-152-1-27-33.w82-125.abo.wanadoo.fr [])
	by mwinf0307.wanadoo.fr (SMTP Server) with ESMTP id 287381C00209;
	Wed, 23 Mar 2005 21:25:39 +0100 (CET)
X-ME-UUID: 20050323202539165.287381C00209@mwinf0307.wanadoo.fr
Received: from prahal by argos.server.maison with local (Exim 4.50)
	id 1DECQC-00070b-RF; Wed, 23 Mar 2005 21:25:44 +0100
Date: Wed, 23 Mar 2005 21:25:44 +0100
From: browaeys.alban@wanadoo.fr
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: nagios-common: fails to install for apache if caudmium is installed too
Message-ID: <20050323202544.GA26755@argos.server.maison>
Reply-To: browaeys.alban@wanadoo.fr
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR"
Content-Disposition: inline
X-Reportbug-Version: 3.9
Sender: browaeys.alban@wanadoo.fr
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.4 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	NO_REAL_NAME autolearn=no version=2.60-bugs.debian.org_2005_01_02

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: nagios-common
Version: 2:1.3-cvs.20050116-4
Severity: important
Tags: patch

Setting up nagios-common (1.3-cvs.20050116-4) ...
Reloading web server config...done.
Usage: htpasswd [-c] passwordfile username
The -c flag creates a new file.
dpkg: error processing nagios-common (--configure):
 subprocess post-installation script returned error exit status 1

this was due to the caudmium htpasswd test:

       case "$webserver" in
            Apache)        webservers="apache";;
            Apache2)       webservers="apache2" ;
            Apache-SSL)    webservers="apache-ssl";;
            Both)          webservers="apache apache-ssl";;
            *)             webservers="";;

        if [ -e "/usr/bin/htpasswd-caudium" ]; then

the patch attached fix this by checking if $webserver="" before
overridding with the caudium one. 

Thanks for managing all the alternative the hard way. I hope the
webserver policy (and adhoc debhelpers) will be ready for etch.
Web apps are widespread now. (dbconfig-common is in sid yeah !D )


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-rc5
Locale: LANG=fr_FR.UTF-8@euro, LC_CTYPE=fr_FR.UTF-8@euro (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages nagios-common depends on:
ii  adduser          3.63                    Add and remove users and groups
ii  apache [httpd]   1.3.33-4                versatile, high-performance HTTP s
ii  apache2-mpm-pref 2.0.53-5                traditional model for Apache2
ii  caudium [httpd]  2:1.2.35-1              An extensible WWW server written i
ii  coreutils [fileu 5.2.1-2                 The GNU core utilities
ii  debconf [debconf 1.4.46                  Debian configuration management sy
ii  fileutils        5.2.1-2                 The GNU file management utilities 
ii  mailx            1:8.1.2-0.20040524cvs-4 A simple mail user agent
ii  mzscheme [httpd] 1:209-3                 PLT Scheme Interpreter
ii  nagios-plugins   1.4-3                   Plugins for the nagios network mon
ii  nagios-text [nag 2:1.3-cvs.20050116-4    A host/service/network monitoring 

-- debconf information:
* nagios/wwwsuid: true
* nagios/configapache: Apache

Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nagios-common_caudmiumfix.patch"

--- nagios-common.postinst.orig	2005-03-23 21:17:32.000000000 +0100
+++ nagios-common.postinst	2005-03-23 21:20:03.000000000 +0100
@@ -95,7 +95,7 @@
 	    *)             webservers="";;
-	if [ -e "/usr/bin/htpasswd-caudium" ]; then
+	if [ -e "/usr/bin/htpasswd-caudium" -a -z "$webservers"  ]; then


Received: (at 301105-close) by bugs.debian.org; 6 Apr 2005 13:49:50 +0000
>From katie@ftp-master.debian.org Wed Apr 06 06:49:50 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DJAuk-0002hF-00; Wed, 06 Apr 2005 06:49:50 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1DJAdr-0007br-00; Wed, 06 Apr 2005 09:32:23 -0400
From: sean finney <seanius@debian.org>
To: 301105-close@bugs.debian.org
X-Katie: $Revision: 1.55 $
Subject: Bug#301105: fixed in nagios 2:1.3-cvs.20050402-1
Message-Id: <E1DJAdr-0007br-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Wed, 06 Apr 2005 09:32:23 -0400
Delivered-To: 301105-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 8

Source: nagios
Source-Version: 2:1.3-cvs.20050402-1

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

  to pool/main/n/nagios/nagios-common_1.3-cvs.20050402-1_all.deb
  to pool/main/n/nagios/nagios-mysql_1.3-cvs.20050402-1_i386.deb
  to pool/main/n/nagios/nagios-pgsql_1.3-cvs.20050402-1_i386.deb
  to pool/main/n/nagios/nagios-text_1.3-cvs.20050402-1_i386.deb
  to pool/main/n/nagios/nagios_1.3-cvs.20050402-1.diff.gz
  to pool/main/n/nagios/nagios_1.3-cvs.20050402-1.dsc
  to pool/main/n/nagios/nagios_1.3-cvs.20050402.orig.tar.gz

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

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 301105@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
sean finney <seanius@debian.org> (supplier of updated nagios 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 ftpmaster@debian.org)

Hash: SHA1

Format: 1.7
Date: Tue, 05 Apr 2005 00:47:23 -0400
Source: nagios
Binary: nagios-pgsql nagios-text nagios-mysql nagios-common
Architecture: source i386 all
Version: 2:1.3-cvs.20050402-1
Distribution: unstable
Urgency: low
Maintainer: Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>
Changed-By: sean finney <seanius@debian.org>
 nagios-common - A host/service/network monitoring and management system
 nagios-mysql - A host/service/network monitoring and management system
 nagios-pgsql - A host/service/network monitoring and management system
 nagios-text - A host/service/network monitoring and management system
Closes: 283947 292473 299467 299470 299613 301099 301105 302245 302994
 nagios (2:1.3-cvs.20050402-1) unstable; urgency=low
     - new upstream cvs snapshot (bugfixes and doc updates only).
     - somehow nagios got packaged as a debian-native package.  oops.
       thanks to Stephen Gran <sgran@debian.org> for pointing out
       the mistake (closes: #302245).
     - remove duplicate call do db_purge in maintainer scripts
     - remove duplicate call to invoke-rc.d in maintainer scripts, thanks
       to alban browaeys <browaeys.alban@wanadoo.fr> (closes: #301099).
     - don't jump the gun and use htpasswd-caudium just because it exists.
       instead, make sure that the admin has also not selected to configure
       nagios for apache variants (in which case htpasswd should stay as
       the nagios htpasswd).  thanks again to alban (closes: #301105).
     - check_started was broken for reloading nagios-pgsql and nagios-mysql.
       thanks to Olleg Samoylov <olleg@mipt.ru> (closes: #299470).
     - plugins would break in environments that use commas in their floating
       points.  as a workaround, set LC_NUMERIC=POSIX in the init script.
       thanks again to Olleg Samoylov <olleg@mipt.ru> (closes: #299467).
     - documentation changes suggested by David Greaves <david@dgreaves.com>
       (closes: #299613).
     - added a note about heavily loaded servers in README.Debian
       (closes: #283947, #292473).  thanks to Cyril Bouthors <cyb@debian.org>.
     - updated README.Debian, removing various out-of-date info, and putting
       in a little more about virtual hosts with apache.
     - also updated NEWS, as it looks like the recent side.html change broke
       the configs of some people who were using nagios in a virtualhost.  note
       that a simple fix exists, see README.Debian :)
     - change and clarification in the default contacts.  thanks to
       alban (closes: #302994).
 7b4caa20e606dd4f9d53f50b20b6f9f1 1021 net optional nagios_1.3-cvs.20050402-1.dsc
 0f92b7b8e705411b7881d3650cbb5d56 1621251 net optional nagios_1.3-cvs.20050402.orig.tar.gz
 3d297ce0143142929442a2022e390440 64408 net optional nagios_1.3-cvs.20050402-1.diff.gz
 773a70d04bc47910a6c433d2293a4e1a 901316 net optional nagios-text_1.3-cvs.20050402-1_i386.deb
 68e37489ad6e230ddd5a6f43b5fb64a6 906498 net optional nagios-mysql_1.3-cvs.20050402-1_i386.deb
 9ee311660bdf2e80c162f18b7d8c43e7 916970 net optional nagios-pgsql_1.3-cvs.20050402-1_i386.deb
 ac7b4c4c6b90e48e50fc070f3e4f9349 1217990 net optional nagios-common_1.3-cvs.20050402-1_all.deb

Version: GnuPG v1.4.0 (GNU/Linux)