[Pkg-nagios-devel] Bug#699744: nagios3-cgi: prompting due to modified conffiles which were not modified by the user: /etc/nagios3/stylesheets/outages.css

Andreas Beckmann debian at abeckmann.de
Tue Feb 5 23:50:29 UTC 2013


On Tuesday, 5. February 2013 01:01:43 Vagrant Cascadian wrote:
> As far as I can tell, /etc/nagios3/stylesheets/* were introduced in the
> squeeze nagios3-cgi package. /etc/nagios3/cgi.cfg was a conffile with
> nagios3-common in wheezy, and transitioned to nagios3-cgi for wheezy. My
> guess is something wrong in the transition from nagios3-common to
> nagios3-cgi for cgi.cfg, but I'm not sure what exactly is needed there.

Changing the ownership of conffiles is not working really well, especially if 
the new version ships a conffile with modified content. There were several 
similar bugs, but luckily I don't remember any package :-)
(go looking for fixed (and possibly archived bugs) with piuparts usertag and 
similar subjects)

> Why my installation had no trouble with
> /etc/nagios3/stylesheets/outages.css is a mystery to me. I did not use
> piuparts, rather just used an schroot with lenny installed. I did do an
> "apt-get upgrade" followed by an "apt-get dist-upgrade" in each of my
> upgrade cycles, if that somehow matters. Also had etckeeper installed in
> order to track the changes in configuration files, which pulled in a few
> more package dependencies.

piuparts has DEBIAN_FRONTEND=noninteractive set in the environment to not ask 
any debconf questions and only does apt-get dist-update.

OK, I reran the test and kept the chroot to do manual analysis 
/tmp/piupartss/tmp3WkGdL

# ls -la /etc/nagios3/stylesheets/
total 188
drwxr-xr-x 2 root root  720 Feb  5 22:36 .
drwxr-xr-x 4 root root  200 Feb  5 22:36 ..
-rw-r--r-- 1 root root 5040 Jul  3  2010 avail.css
-rw-r--r-- 1 root root 1913 Jun 30  2012 avail.css.dpkg-new
-rw-r--r-- 1 root root 2421 Jul  3  2010 checksanity.css
-rw-r--r-- 1 root root 1261 Jun 30  2012 checksanity.css.dpkg-new
-rw-r--r-- 1 root root 1643 Jul  3  2010 cmd.css
-rw-r--r-- 1 root root  959 Jun 30  2012 cmd.css.dpkg-new
-rw-r--r-- 1 root root 2961 Jul  3  2010 common.css
-rw-r--r-- 1 root root 9562 Jun 30  2012 common.css.dpkg-new
-rw-r--r-- 1 root root 1550 Jul  3  2010 config.css
-rw-r--r-- 1 root root  586 Jun 30  2012 config.css.dpkg-new
-rw-r--r-- 1 root root 8137 Jul  3  2010 extinfo.css
-rw-r--r-- 1 root root 5626 Jun 30  2012 extinfo.css.dpkg-new
-rw-r--r-- 1 root root 1943 Jul  3  2010 histogram.css
-rw-r--r-- 1 root root  560 Jun 30  2012 histogram.css.dpkg-new
-rw-r--r-- 1 root root 1601 Jul  3  2010 history.css
-rw-r--r-- 1 root root  482 Jun 30  2012 history.css.dpkg-new
-rw-r--r-- 1 root root 6634 Jul  3  2010 ministatus.css
-rw-r--r-- 1 root root 4422 Jun 30  2012 ministatus.css.dpkg-new
-rw-r--r-- 1 root root 2997 Jul  3  2010 notifications.css
-rw-r--r-- 1 root root 2081 Jun 30  2012 notifications.css.dpkg-new
-rw-r--r-- 1 root root 1792 Jul  3  2010 outages.css
-rw-r--r-- 1 root root  743 Jun 30  2012 outages.css.dpkg-new
-rw-r--r-- 1 root root 1400 Jul  3  2010 showlog.css
-rw-r--r-- 1 root root  482 Jun 30  2012 showlog.css.dpkg-new
-rw-r--r-- 1 root root 8638 Jul  3  2010 status.css
-rw-r--r-- 1 root root 7283 Jun 30  2012 status.css.dpkg-new
-rw-r--r-- 1 root root 1217 Jul  3  2010 statusmap.css
-rw-r--r-- 1 root root  710 Jun 30  2012 statusmap.css.dpkg-new
-rw-r--r-- 1 root root 3837 Jul  3  2010 summary.css
-rw-r--r-- 1 root root 1748 Jun 30  2012 summary.css.dpkg-new
-rw-r--r-- 1 root root 9480 Jul  3  2010 tac.css
-rw-r--r-- 1 root root 5472 Jun 30  2012 tac.css.dpkg-new
-rw-r--r-- 1 root root 1935 Jul  3  2010 trends.css
-rw-r--r-- 1 root root  481 Jun 30  2012 trends.css.dpkg-new

# md5sum /etc/nagios3/stylesheets/*
c28401289fac0e58737e124938df229a  /etc/nagios3/stylesheets/avail.css
739028581fac80d594dd83d2e3c3934f  /etc/nagios3/stylesheets/avail.css.dpkg-new
04ab2d7edea942d839ed9ce7cd16085b  /etc/nagios3/stylesheets/checksanity.css
dc10b7e52b89928a81dfd0b267134654  /etc/nagios3/stylesheets/checksanity.css.dpkg-new
86ee04ba8d9272062d72a522df8b86a7  /etc/nagios3/stylesheets/cmd.css
6e9ad4a413ab336e699795cb6e0f084b  /etc/nagios3/stylesheets/cmd.css.dpkg-new
30d44e331accf44db53781512b817bb4  /etc/nagios3/stylesheets/common.css
b6b38b456a93a502e499f7c9c0c78caa  /etc/nagios3/stylesheets/common.css.dpkg-new
30e8f1e9b15221f70f6ac74694fb36fd  /etc/nagios3/stylesheets/config.css
c31ee7f849f159313b89bb866a304daa  /etc/nagios3/stylesheets/config.css.dpkg-new
4c80a8f2e823b95748199d59791235c6  /etc/nagios3/stylesheets/extinfo.css
e008c51ee797e54069704104cc3a22a3  /etc/nagios3/stylesheets/extinfo.css.dpkg-new
bb727613ecbf68feee6947992c63d97b  /etc/nagios3/stylesheets/histogram.css
b7eb620ad84f39129c617272fdfda00a  /etc/nagios3/stylesheets/histogram.css.dpkg-new
f81773311075beb6683ca791454aa144  /etc/nagios3/stylesheets/history.css
634f2c92876bb64eb54fe2f9e9e45b11  /etc/nagios3/stylesheets/history.css.dpkg-new
6326f1e3d18f0dd9bfa2293ecef5895a  /etc/nagios3/stylesheets/ministatus.css
aee1deb36d41f5fbc514fc09f1c423d4  /etc/nagios3/stylesheets/ministatus.css.dpkg-new
48aca7fd859e7ddca70fc4a449a30d40  /etc/nagios3/stylesheets/notifications.css
f5c001e48b0bded60bf35bf585b10f85  /etc/nagios3/stylesheets/notifications.css.dpkg-new
f2b2156a98ddc71fa5bc5bd826482e41  /etc/nagios3/stylesheets/outages.css
6b5b0200a3596f1301c1c685b5762f25  /etc/nagios3/stylesheets/outages.css.dpkg-new
c7130dff3c11f3d914d17510c72ac4c2  /etc/nagios3/stylesheets/showlog.css
162e9bb1bbca7d4a6c9f0aed22e38a4d  /etc/nagios3/stylesheets/showlog.css.dpkg-new
1646b4b8059d6251a0d5a803801a80e0  /etc/nagios3/stylesheets/status.css
b837abac323c5671abd0009cf0017c07  /etc/nagios3/stylesheets/status.css.dpkg-new
64619c1ab9e9c7b962323188b723ca22  /etc/nagios3/stylesheets/statusmap.css
cf383ca51d1c456f157a28568092d1ae  /etc/nagios3/stylesheets/statusmap.css.dpkg-new
e9416bcc695de574a70d68caaa3a87ea  /etc/nagios3/stylesheets/summary.css
a1c30fb71ef4c33c95626ab75f50118c  /etc/nagios3/stylesheets/summary.css.dpkg-new
dd16efe628513271b034ea325b4ab3a2  /etc/nagios3/stylesheets/tac.css
a58f622c016f3234368e788a6207dd2f  /etc/nagios3/stylesheets/tac.css.dpkg-new
22efc36102b76e2ec31eb9a322932401  /etc/nagios3/stylesheets/trends.css
5bb6df5c34249ebf95bde5e23a7b8cbc  /etc/nagios3/stylesheets/trends.css.dpkg-new

# dpkg -s nagios3-common
Package: nagios3-common
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 290
Maintainer: Debian Nagios Maintainer Group 
<pkg-nagios-devel at lists.alioth.debian.org>
Architecture: all
Source: nagios3
Version: 3.4.1-2
Depends: adduser, bsd-mailx | mailx, coreutils (>= 4.5.3), lsb-base (>= 
3.0-6), nagios-plugins-basic, ucf (>= 0.28), libjs-jquery
Recommends: nagios-plugins
Conffiles:
 /etc/default/nagios3 70f8c9cffd1e6779afd304c021d46e75
 /etc/nagios3/conf.d/generic-service_nagios2.cfg 
0073f404e58cd58e3ba07488eceb8756
 /etc/nagios3/conf.d/contacts_nagios2.cfg 24264fada580bf86ee3f50515c6fe062
 /etc/nagios3/conf.d/hostgroups_nagios2.cfg e1e4aeae58e9ab9ac46540ad04804baa
 /etc/nagios3/conf.d/services_nagios2.cfg 74d28ff74525772ab0cc1447b7f2292e
 /etc/nagios3/conf.d/extinfo_nagios2.cfg 41c1eaa6b45ab8fbbd99ec101d13e5eb
 /etc/nagios3/conf.d/generic-host_nagios2.cfg 48601fa1cfee256aa4f592a69edf2d98
 /etc/nagios3/conf.d/timeperiods_nagios2.cfg d327b1cae6e3d6bbcbc28d972077e19f
 /etc/nagios3/conf.d/localhost_nagios2.cfg 3fb463b4d52cad57921821665fe17ae9
 /etc/nagios3/resource.cfg be79f565c40df72eacb4a785d55fcd83
 /etc/nagios3/nagios.cfg 6ad8a62732a7cdbbfba8bd62263d8b26
 /etc/nagios3/commands.cfg df8947cc9cd173f07e277d748a5e0c9c
 /etc/init.d/nagios3 dbee78fb44a0e70abb4fcb9333e2766e

# dpkg -s nagios3-cgi
Package: nagios3-cgi
Status: install ok unpacked
Priority: optional
Section: net
Installed-Size: 4786
Maintainer: Debian Nagios Maintainer Group 
<pkg-nagios-devel at lists.alioth.debian.org>
Architecture: amd64
Source: nagios3
Version: 3.4.1-2
Config-Version: 3.2.1-2
Replaces: nagios3 (<< 3.2.0), nagios3-common (<< 3.2.0), nagios3-doc (<< 
3.2.0)
Depends: adduser, apache2-utils, coreutils (>= 4.5.3), libapache2-mod-php5 | 
php5 | php5-cgi, nagios3-common (= 3.4.1-2), ucf (>= 0.28), debconf (>= 
0.5) | debconf-2.0, libc6 (>= 2.8), libgd2-noxpm (>= 2.0.36~rc1~dfsg) | 
libgd2-xpm (>= 2.0.36~rc1~dfsg), libjpeg8 (>= 8c), libpng12-0 (>= 1.2.13-4), 
zlib1g (>= 1:1.1.4)
Recommends: apache2 | httpd, nagios-images (>> 0.1)
Breaks: nagios3 (<< 3.2.0), nagios3-common (<< 3.2.0), nagios3-doc (<< 3.2.0)
Conffiles:
 /etc/nagios3/stylesheets/outages.css 64e44732e0a3ec624be197ac8feedee4
 /etc/nagios3/stylesheets/checksanity.css 9dc4e51fac52a604a7ccfa06950f65dd
 /etc/nagios3/stylesheets/history.css 683ff7aeb72afde50b81e41b86108598
 /etc/nagios3/stylesheets/tac.css 98383c42b72f8383172df95199c91c8a
 /etc/nagios3/stylesheets/avail.css 67753c150a6c797b0e63fab850ad6c99
 /etc/nagios3/stylesheets/notifications.css f6db865daeabac0b861093cee40522a1
 /etc/nagios3/stylesheets/trends.css aee03e2a6746ef9ec7060cd5f73f50b3
 /etc/nagios3/stylesheets/ministatus.css f38ea9eef9bf17b04cc64ff9d23aa2b3
 /etc/nagios3/stylesheets/histogram.css 5fcc1f9cdac8dadd4cbbd34f79bb551d
 /etc/nagios3/stylesheets/extinfo.css 7d98476042049eb3855ce555778f1e8f
 /etc/nagios3/stylesheets/status.css ec84763ebb60910e4a605fdaf9a60378
 /etc/nagios3/stylesheets/common.css d41d8cd98f00b204e9800998ecf8427e
 /etc/nagios3/stylesheets/showlog.css 8cd26d4e270c26ca78b80ca59d8eb0cf
 /etc/nagios3/stylesheets/statusmap.css 06fa00f44c52000cb2ccbcf619ecc83b
 /etc/nagios3/stylesheets/config.css 313134a3aad30e83df337a0853b5d893
 /etc/nagios3/stylesheets/summary.css d7233bbaeff3d4d6ac56cc95b2cddbeb
 /etc/nagios3/stylesheets/cmd.css 7d727021b62e32f7f979809999ae9fbd
 /etc/nagios3/cgi.cfg aa1b41bf8e3ae002343cac9ebbe65abb
Description: cgi files for nagios3

hmm, lets redo this manually

installed nagios3 in lenny:

# l /etc/nagios3/stylesheets/
total 92
drwxr-xr-x 2 root root  380 Feb  5 22:48 .
drwxr-xr-x 4 root root  180 Feb  5 22:48 ..
-rw-r--r-- 1 root root 5030 Jul  2  2009 avail.css
-rw-r--r-- 1 root root 2413 Jul  2  2009 checksanity.css
-rw-r--r-- 1 root root 1637 Jul  2  2009 cmd.css
-rw-r--r-- 1 root root    0 Jul  2  2009 common.css
-rw-r--r-- 1 root root 1546 Jul  2  2009 config.css
-rw-r--r-- 1 root root 8119 Jul  2  2009 extinfo.css
-rw-r--r-- 1 root root 1939 Jul  2  2009 histogram.css
-rw-r--r-- 1 root root 1597 Jul  2  2009 history.css
-rw-r--r-- 1 root root 6624 Jul  2  2009 ministatus.css
-rw-r--r-- 1 root root 2991 Jul  2  2009 notifications.css
-rw-r--r-- 1 root root 1788 Jul  2  2009 outages.css
-rw-r--r-- 1 root root 1398 Jul  2  2009 showlog.css
-rw-r--r-- 1 root root 8628 Jul  2  2009 status.css
-rw-r--r-- 1 root root 1213 Jul  2  2009 statusmap.css
-rw-r--r-- 1 root root 3827 Jul  2  2009 summary.css
-rw-r--r-- 1 root root 9478 Jul  2  2009 tac.css
-rw-r--r-- 1 root root 1931 Jul  2  2009 trends.css

# md5sum /etc/nagios3/stylesheets/*
67753c150a6c797b0e63fab850ad6c99  /etc/nagios3/stylesheets/avail.css
9dc4e51fac52a604a7ccfa06950f65dd  /etc/nagios3/stylesheets/checksanity.css
7d727021b62e32f7f979809999ae9fbd  /etc/nagios3/stylesheets/cmd.css
d41d8cd98f00b204e9800998ecf8427e  /etc/nagios3/stylesheets/common.css
313134a3aad30e83df337a0853b5d893  /etc/nagios3/stylesheets/config.css
7d98476042049eb3855ce555778f1e8f  /etc/nagios3/stylesheets/extinfo.css
5fcc1f9cdac8dadd4cbbd34f79bb551d  /etc/nagios3/stylesheets/histogram.css
683ff7aeb72afde50b81e41b86108598  /etc/nagios3/stylesheets/history.css
f38ea9eef9bf17b04cc64ff9d23aa2b3  /etc/nagios3/stylesheets/ministatus.css
f6db865daeabac0b861093cee40522a1  /etc/nagios3/stylesheets/notifications.css
64e44732e0a3ec624be197ac8feedee4  /etc/nagios3/stylesheets/outages.css
8cd26d4e270c26ca78b80ca59d8eb0cf  /etc/nagios3/stylesheets/showlog.css
ec84763ebb60910e4a605fdaf9a60378  /etc/nagios3/stylesheets/status.css
06fa00f44c52000cb2ccbcf619ecc83b  /etc/nagios3/stylesheets/statusmap.css
d7233bbaeff3d4d6ac56cc95b2cddbeb  /etc/nagios3/stylesheets/summary.css
98383c42b72f8383172df95199c91c8a  /etc/nagios3/stylesheets/tac.css
aee03e2a6746ef9ec7060cd5f73f50b3  /etc/nagios3/stylesheets/trends.css

# dpkg  -S /etc/nagios3/stylesheets/*
nagios3-doc: /etc/nagios3/stylesheets/avail.css
nagios3-doc: /etc/nagios3/stylesheets/checksanity.css
nagios3-doc: /etc/nagios3/stylesheets/cmd.css
nagios3-doc: /etc/nagios3/stylesheets/common.css
nagios3-doc: /etc/nagios3/stylesheets/config.css
nagios3-doc: /etc/nagios3/stylesheets/extinfo.css
nagios3-doc: /etc/nagios3/stylesheets/histogram.css
nagios3-doc: /etc/nagios3/stylesheets/history.css
nagios3-doc: /etc/nagios3/stylesheets/ministatus.css
nagios3-doc: /etc/nagios3/stylesheets/notifications.css
nagios3-doc: /etc/nagios3/stylesheets/outages.css
nagios3-doc: /etc/nagios3/stylesheets/showlog.css
nagios3-doc: /etc/nagios3/stylesheets/status.css
nagios3-doc: /etc/nagios3/stylesheets/statusmap.css
nagios3-doc: /etc/nagios3/stylesheets/summary.css
nagios3-doc: /etc/nagios3/stylesheets/tac.css
nagios3-doc: /etc/nagios3/stylesheets/trends.css

# dpkg -l | grep nagios
ii  nagios-plugins-basic            1.4.12-5                 Plugins for
ii  nagios3                         3.0.6-4~lenny2           A
ii  nagios3-common                  3.0.6-4~lenny2           support files
ii  nagios3-doc                     3.0.6-4~lenny2           documentation

# dpkg -s nagios3-doc
Package: nagios3-doc
Status: install ok installed
Priority: optional
Section: doc
Installed-Size: 3960
Maintainer: Debian Nagios Maintainer Group 
<pkg-nagios-devel at lists.alioth.debian.org>
Architecture: all
Source: nagios3
Version: 3.0.6-4~lenny2
Conffiles:
 /etc/nagios3/stylesheets/outages.css 64e44732e0a3ec624be197ac8feedee4
 /etc/nagios3/stylesheets/notifications.css f6db865daeabac0b861093cee40522a1
 /etc/nagios3/stylesheets/histogram.css 5fcc1f9cdac8dadd4cbbd34f79bb551d
 /etc/nagios3/stylesheets/common.css d41d8cd98f00b204e9800998ecf8427e
 /etc/nagios3/stylesheets/cmd.css 7d727021b62e32f7f979809999ae9fbd
 /etc/nagios3/stylesheets/avail.css 67753c150a6c797b0e63fab850ad6c99
 /etc/nagios3/stylesheets/summary.css d7233bbaeff3d4d6ac56cc95b2cddbeb
 /etc/nagios3/stylesheets/showlog.css 8cd26d4e270c26ca78b80ca59d8eb0cf
 /etc/nagios3/stylesheets/history.css 683ff7aeb72afde50b81e41b86108598
 /etc/nagios3/stylesheets/trends.css aee03e2a6746ef9ec7060cd5f73f50b3
 /etc/nagios3/stylesheets/checksanity.css 9dc4e51fac52a604a7ccfa06950f65dd
 /etc/nagios3/stylesheets/ministatus.css f38ea9eef9bf17b04cc64ff9d23aa2b3
 /etc/nagios3/stylesheets/extinfo.css 7d98476042049eb3855ce555778f1e8f
 /etc/nagios3/stylesheets/statusmap.css 06fa00f44c52000cb2ccbcf619ecc83b
 /etc/nagios3/stylesheets/config.css 313134a3aad30e83df337a0853b5d893
 /etc/nagios3/stylesheets/status.css ec84763ebb60910e4a605fdaf9a60378
 /etc/nagios3/stylesheets/tac.css 98383c42b72f8383172df95199c91c8a
Description: documentation for nagios3

and after distugrading to squeeze:

# dpkg -l | grep nagios | cut -c -76
ii  nagios-plugins-basic            1.4.15-3squeeze1             Plugins for
ii  nagios3                         3.2.1-2+squeeze1             A host/serv
ii  nagios3-cgi                     3.2.1-2+squeeze1             cgi files f
ii  nagios3-common                  3.2.1-2+squeeze1             support fil
ii  nagios3-core                    3.2.1-2+squeeze1             A host/serv
ii  nagios3-doc                     3.2.1-2+squeeze1             documentati

# l /etc/nagios3/stylesheets/
total 96
drwxr-xr-x 2 root root  380 Feb  5 22:56 .
drwxr-xr-x 4 root root  180 Feb  5 22:56 ..
-rw-r--r-- 1 root root 5040 Feb  1 21:13 avail.css
-rw-r--r-- 1 root root 2421 Feb  1 21:13 checksanity.css
-rw-r--r-- 1 root root 1643 Feb  1 21:13 cmd.css
-rw-r--r-- 1 root root 2961 Feb  1 21:13 common.css
-rw-r--r-- 1 root root 1550 Feb  1 21:13 config.css
-rw-r--r-- 1 root root 8137 Feb  1 21:13 extinfo.css
-rw-r--r-- 1 root root 1943 Feb  1 21:13 histogram.css
-rw-r--r-- 1 root root 1601 Feb  1 21:13 history.css
-rw-r--r-- 1 root root 6634 Feb  1 21:13 ministatus.css
-rw-r--r-- 1 root root 2997 Feb  1 21:13 notifications.css
-rw-r--r-- 1 root root 1792 Feb  1 21:13 outages.css
-rw-r--r-- 1 root root 1400 Feb  1 21:13 showlog.css
-rw-r--r-- 1 root root 8638 Feb  1 21:13 status.css
-rw-r--r-- 1 root root 1217 Feb  1 21:13 statusmap.css
-rw-r--r-- 1 root root 3837 Feb  1 21:13 summary.css
-rw-r--r-- 1 root root 9480 Feb  1 21:13 tac.css
-rw-r--r-- 1 root root 1935 Feb  1 21:13 trends.css

hmm, thats a security update, piuparts does not have squeeze/updates included, 
so thats a possible difference

# md5sum /etc/nagios3/stylesheets/*
c28401289fac0e58737e124938df229a  /etc/nagios3/stylesheets/avail.css
04ab2d7edea942d839ed9ce7cd16085b  /etc/nagios3/stylesheets/checksanity.css
86ee04ba8d9272062d72a522df8b86a7  /etc/nagios3/stylesheets/cmd.css
30d44e331accf44db53781512b817bb4  /etc/nagios3/stylesheets/common.css
30e8f1e9b15221f70f6ac74694fb36fd  /etc/nagios3/stylesheets/config.css
4c80a8f2e823b95748199d59791235c6  /etc/nagios3/stylesheets/extinfo.css
bb727613ecbf68feee6947992c63d97b  /etc/nagios3/stylesheets/histogram.css
f81773311075beb6683ca791454aa144  /etc/nagios3/stylesheets/history.css
6326f1e3d18f0dd9bfa2293ecef5895a  /etc/nagios3/stylesheets/ministatus.css
48aca7fd859e7ddca70fc4a449a30d40  /etc/nagios3/stylesheets/notifications.css
f2b2156a98ddc71fa5bc5bd826482e41  /etc/nagios3/stylesheets/outages.css
c7130dff3c11f3d914d17510c72ac4c2  /etc/nagios3/stylesheets/showlog.css
1646b4b8059d6251a0d5a803801a80e0  /etc/nagios3/stylesheets/status.css
64619c1ab9e9c7b962323188b723ca22  /etc/nagios3/stylesheets/statusmap.css
e9416bcc695de574a70d68caaa3a87ea  /etc/nagios3/stylesheets/summary.css
dd16efe628513271b034ea325b4ab3a2  /etc/nagios3/stylesheets/tac.css
22efc36102b76e2ec31eb9a322932401  /etc/nagios3/stylesheets/trends.css

# dpkg -S /etc/nagios3/stylesheets/*
nagios3-cgi: /etc/nagios3/stylesheets/avail.css
nagios3-cgi: /etc/nagios3/stylesheets/checksanity.css
nagios3-cgi: /etc/nagios3/stylesheets/cmd.css
nagios3-cgi: /etc/nagios3/stylesheets/common.css
nagios3-cgi: /etc/nagios3/stylesheets/config.css
nagios3-cgi: /etc/nagios3/stylesheets/extinfo.css
nagios3-cgi: /etc/nagios3/stylesheets/histogram.css
nagios3-cgi: /etc/nagios3/stylesheets/history.css
nagios3-cgi: /etc/nagios3/stylesheets/ministatus.css
nagios3-cgi: /etc/nagios3/stylesheets/notifications.css
nagios3-cgi: /etc/nagios3/stylesheets/outages.css
nagios3-cgi: /etc/nagios3/stylesheets/showlog.css
nagios3-cgi: /etc/nagios3/stylesheets/status.css
nagios3-cgi: /etc/nagios3/stylesheets/statusmap.css
nagios3-cgi: /etc/nagios3/stylesheets/summary.css
nagios3-cgi: /etc/nagios3/stylesheets/tac.css
nagios3-cgi: /etc/nagios3/stylesheets/trends.css

# dpkg -s nagios3-cgi
Package: nagios3-cgi
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 4296
Maintainer: Debian Nagios Maintainer Group 
<pkg-nagios-devel at lists.alioth.debian.org>
Architecture: amd64
Source: nagios3
Version: 3.2.1-2+squeeze1
Replaces: nagios3 (<< 3.2.0), nagios3-common (<< 3.2.0), nagios3-doc (<< 
3.2.0)
Depends: nagios3-common (= 3.2.1-2+squeeze1), coreutils (>= 4.5.3), ucf (>= 
0.28), apache2-utils, debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.4), 
libgd2-noxpm (>= 2.0.36~rc1~dfsg) | libgd2-xpm (>= 2.0.36~rc1~dfsg), 
libjpeg62 (>= 6b1), libpng12-0 (>= 1.2.13-4), zlib1g (>= 1:1.1.4), adduser, 
libapache2-mod-php5 | php5 | php5-cgi
Recommends: apache2 | httpd, nagios-images (>> 0.1)
Breaks: nagios3 (<< 3.2.0), nagios3-common (<< 3.2.0), nagios3-doc (<< 3.2.0)
Conffiles:
 /etc/nagios3/cgi.cfg aa1b41bf8e3ae002343cac9ebbe65abb
 /etc/nagios3/stylesheets/history.css 683ff7aeb72afde50b81e41b86108598
 /etc/nagios3/stylesheets/notifications.css f6db865daeabac0b861093cee40522a1
 /etc/nagios3/stylesheets/common.css d41d8cd98f00b204e9800998ecf8427e
 /etc/nagios3/stylesheets/tac.css 98383c42b72f8383172df95199c91c8a
 /etc/nagios3/stylesheets/cmd.css 7d727021b62e32f7f979809999ae9fbd
 /etc/nagios3/stylesheets/checksanity.css 9dc4e51fac52a604a7ccfa06950f65dd
 /etc/nagios3/stylesheets/histogram.css 5fcc1f9cdac8dadd4cbbd34f79bb551d
 /etc/nagios3/stylesheets/summary.css d7233bbaeff3d4d6ac56cc95b2cddbeb
 /etc/nagios3/stylesheets/statusmap.css 06fa00f44c52000cb2ccbcf619ecc83b
 /etc/nagios3/stylesheets/trends.css aee03e2a6746ef9ec7060cd5f73f50b3
 /etc/nagios3/stylesheets/ministatus.css f38ea9eef9bf17b04cc64ff9d23aa2b3
 /etc/nagios3/stylesheets/showlog.css 8cd26d4e270c26ca78b80ca59d8eb0cf
 /etc/nagios3/stylesheets/extinfo.css 7d98476042049eb3855ce555778f1e8f
 /etc/nagios3/stylesheets/status.css ec84763ebb60910e4a605fdaf9a60378
 /etc/nagios3/stylesheets/outages.css 64e44732e0a3ec624be197ac8feedee4
 /etc/nagios3/stylesheets/config.css 313134a3aad30e83df337a0853b5d893
 /etc/nagios3/stylesheets/avail.css 67753c150a6c797b0e63fab850ad6c99
Description: cgi files for nagios3

# dpkg -s nagios3-doc
Package: nagios3-doc
Status: install ok installed
Priority: optional
Section: doc
Installed-Size: 3224
Maintainer: Debian Nagios Maintainer Group 
<pkg-nagios-devel at lists.alioth.debian.org>
Architecture: all
Source: nagios3
Version: 3.2.1-2+squeeze1
Conffiles:
 /etc/nagios3/stylesheets/tac.css dd16efe628513271b034ea325b4ab3a2 obsolete
 /etc/nagios3/stylesheets/status.css 1646b4b8059d6251a0d5a803801a80e0 obsolete
 /etc/nagios3/stylesheets/config.css 30e8f1e9b15221f70f6ac74694fb36fd obsolete
 /etc/nagios3/stylesheets/statusmap.css 64619c1ab9e9c7b962323188b723ca22 
obsolete
 /etc/nagios3/stylesheets/extinfo.css 4c80a8f2e823b95748199d59791235c6 
obsolete
 /etc/nagios3/stylesheets/ministatus.css 6326f1e3d18f0dd9bfa2293ecef5895a 
obsolete
 /etc/nagios3/stylesheets/checksanity.css 04ab2d7edea942d839ed9ce7cd16085b 
obsolete
 /etc/nagios3/stylesheets/trends.css 22efc36102b76e2ec31eb9a322932401 obsolete
 /etc/nagios3/stylesheets/history.css f81773311075beb6683ca791454aa144 
obsolete
 /etc/nagios3/stylesheets/showlog.css c7130dff3c11f3d914d17510c72ac4c2 
obsolete
 /etc/nagios3/stylesheets/summary.css e9416bcc695de574a70d68caaa3a87ea 
obsolete
 /etc/nagios3/stylesheets/avail.css c28401289fac0e58737e124938df229a obsolete
 /etc/nagios3/stylesheets/cmd.css 86ee04ba8d9272062d72a522df8b86a7 obsolete
 /etc/nagios3/stylesheets/common.css 30d44e331accf44db53781512b817bb4 obsolete
 /etc/nagios3/stylesheets/histogram.css bb727613ecbf68feee6947992c63d97b 
obsolete
 /etc/nagios3/stylesheets/notifications.css 48aca7fd859e7ddca70fc4a449a30d40 
obsolete
 /etc/nagios3/stylesheets/outages.css f2b2156a98ddc71fa5bc5bd826482e41 
obsolete
Description: documentation for nagios3

# debsums -ac nagios3-cgi
/etc/nagios3/stylesheets/status.css
/etc/nagios3/stylesheets/cmd.css
/etc/nagios3/stylesheets/history.css
/etc/nagios3/cgi.cfg
/etc/nagios3/stylesheets/extinfo.css
/etc/nagios3/stylesheets/showlog.css
/etc/nagios3/stylesheets/common.css
/etc/nagios3/stylesheets/notifications.css
/etc/nagios3/stylesheets/ministatus.css
/etc/nagios3/stylesheets/config.css
/etc/nagios3/stylesheets/avail.css
/etc/nagios3/stylesheets/statusmap.css
/etc/nagios3/stylesheets/outages.css
/etc/nagios3/stylesheets/histogram.css
/etc/nagios3/stylesheets/tac.css
/etc/nagios3/stylesheets/summary.css
/etc/nagios3/stylesheets/checksanity.css
/etc/nagios3/stylesheets/trends.css


OK. I see what happened here. Not nagios3's fault.
Bug #689836: dpkg: md5sums incorrectly recorded for conffile takeover
http://bugs.debian.org/689836

So it's broken in squeeze (dpkg database is corrupted, i.e. contains the wrong 
md5sums (well, it contains the correct md5sums, too, but at the wrong 
place)). Whether this happens depends on the configuration order. If 
nagios-doc is configured before nagios3-cgi it will record the new md5sum for 
updated conffiles for nagios3-doc instead of nagios-cgi ... even if it no 
longer owns these files.

I have no idea how many packages are possibly affected by this or how this can 
be fixed ... therefore Cc:ing Guillem.

Wait, we can try this:

# apt-get install --reinstall nagios3-cgi
# dpkg -s nagios3-cgi
Package: nagios3-cgi
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 4296
Maintainer: Debian Nagios Maintainer Group 
<pkg-nagios-devel at lists.alioth.debian.org>
Architecture: amd64
Source: nagios3
Version: 3.2.1-2+squeeze1
Replaces: nagios3 (<< 3.2.0), nagios3-common (<< 3.2.0), nagios3-doc (<< 
3.2.0)
Depends: nagios3-common (= 3.2.1-2+squeeze1), coreutils (>= 4.5.3), ucf (>= 
0.28), apache2-utils, debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.4), 
libgd2-noxpm (>= 2.0.36~rc1~dfsg) | libgd2-xpm (>= 2.0.36~rc1~dfsg), 
libjpeg62 (>= 6b1), libpng12-0 (>= 1.2.13-4), zlib1g (>= 1:1.1.4), adduser, 
libapache2-mod-php5 | php5 | php5-cgi
Recommends: apache2 | httpd, nagios-images (>> 0.1)
Breaks: nagios3 (<< 3.2.0), nagios3-common (<< 3.2.0), nagios3-doc (<< 3.2.0)
Conffiles:
 /etc/nagios3/cgi.cfg c80b68332d19a60dd7832f4f27ebc5da
 /etc/nagios3/stylesheets/history.css f81773311075beb6683ca791454aa144
 /etc/nagios3/stylesheets/notifications.css 48aca7fd859e7ddca70fc4a449a30d40
 /etc/nagios3/stylesheets/common.css 30d44e331accf44db53781512b817bb4
 /etc/nagios3/stylesheets/tac.css dd16efe628513271b034ea325b4ab3a2
 /etc/nagios3/stylesheets/cmd.css 86ee04ba8d9272062d72a522df8b86a7
 /etc/nagios3/stylesheets/checksanity.css 04ab2d7edea942d839ed9ce7cd16085b
 /etc/nagios3/stylesheets/histogram.css bb727613ecbf68feee6947992c63d97b
 /etc/nagios3/stylesheets/summary.css e9416bcc695de574a70d68caaa3a87ea
 /etc/nagios3/stylesheets/statusmap.css 64619c1ab9e9c7b962323188b723ca22
 /etc/nagios3/stylesheets/trends.css 22efc36102b76e2ec31eb9a322932401
 /etc/nagios3/stylesheets/ministatus.css 6326f1e3d18f0dd9bfa2293ecef5895a
 /etc/nagios3/stylesheets/showlog.css c7130dff3c11f3d914d17510c72ac4c2
 /etc/nagios3/stylesheets/extinfo.css 4c80a8f2e823b95748199d59791235c6
 /etc/nagios3/stylesheets/status.css 1646b4b8059d6251a0d5a803801a80e0
 /etc/nagios3/stylesheets/outages.css f2b2156a98ddc71fa5bc5bd826482e41
 /etc/nagios3/stylesheets/config.css 30e8f1e9b15221f70f6ac74694fb36fd
 /etc/nagios3/stylesheets/avail.css c28401289fac0e58737e124938df229a
Description: cgi files for nagios3

Great, that FIXED the DB.


Andreas



More information about the Pkg-nagios-devel mailing list