Bug#283870: [Pkg-nagios-devel] Bug#283870: Entire hosts.cfg double

sean finney sean finney <seanius@debian.org>, 283870@bugs.debian.org
Wed, 1 Dec 2004 21:17:48 -0500


--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

tags 283870 pending
thanks

On Wed, Dec 01, 2004 at 11:28:04PM +0100, Olaf van der Spek wrote:
> I think I found it. It looks like all lines in hosts.cfg are there twice.

=66rom nagios-common.postinst:

zcat /usr/share/doc/nagios-*/examples/template-object/hosts.cfg.gz | sed "s=
/@DEFAULT_GW@/$DEFAULTGW/" > $TMPFILE
mv $TMPFILE /etc/nagios/hosts.cfg

and there are two of these files:

lambic[~]20:58:31$ ls /usr/share/doc/nagios-*/examples/template-object/host=
s.cfg.gz
/usr/share/doc/nagios-common/examples/template-object/hosts.cfg.gz
/usr/share/doc/nagios-text/examples/template-object/hosts.cfg.gz

lambic[~]20:58:33$ zdiff /usr/share/doc/nagios-*/examples/template-object/h=
osts.cfg.gz
(nothing)

so it looks like there are two copies of this file, one in the main
nagios-{text,mysql,pgsql} and one in the nagios-common package.  i'm
*guessing* (joerg can probably back me up on this) that the expression
nagios-* was meant to catch all the variants of the main nagios package,
=66rom before there was a nagios-common package with the same stuff.  so,
the fix then would be to change nagios-* to nagios-common and remove
the examples from the main nagios packages.

i'll be fixing this in cvs and it will go in the next upload, which i'll
be pushing for this weekend.

thanks,
	sean

--=20

--OgqxwSJOaUobr8KG
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFBrntMynjLPm522B0RAtVyAJwK/L8DZG/Tc3tmGZjybh9HrjiYgACeKzad
wRQsTSURef6ANwORAB7QUNw=
=JuW+
-----END PGP SIGNATURE-----

--OgqxwSJOaUobr8KG--