Bug#444076: nagios-mysql will not replace deleted config file /etc/nagios/database.cfg

2007-09-25 Thread Scott Serr

Package: nagios-mysql
Version: 1.4-3

I'm using Debian 4.0-r1 for Sparc.

I hand deleted /etc/nagios/database.cfg at some point.  Trying to 
re-install everything with:

apt-get --purge remove nagios-mysql
apt-get install nagios-mysql

Gives this output (note line 10 from the bottom "Not replacing deleted 
config file"):


# apt-get install nagios-mysql
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
 nagios-nrpe-plugin
Recommended packages:
 nagios-images
The following NEW packages will be installed:
 nagios-mysql
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/917kB of archives.
After unpacking 2707kB of additional disk space will be used.
Selecting previously deselected package nagios-mysql.
(Reading database ... 35947 files and directories currently installed.)
Unpacking nagios-mysql (from .../nagios-mysql_2%3a1.4-3_sparc.deb) ...
Setting up nagios-mysql (1.4-3) ...
dbconfig-common: writing config to /etc/dbconfig-common/nagios-mysql.conf

Creating config file /etc/dbconfig-common/nagios-mysql.conf with new version
Not replacing deleted config file /etc/nagios/database.cfg
chown: cannot access `/etc/nagios/database.cfg': No such file or directory
chmod: cannot access `/etc/nagios/database.cfg': No such file or directory
granting access to database nagiosmysql for [EMAIL PROTECTED]: success.
verifying access for [EMAIL PROTECTED]: success.
creating database nagiosmysql: success.
verifying database nagiosmysql exists: success.
populating database via sql...  done.
dbconfig-common: flushing administrative password
Starting nagios monitoring daemon: nagios.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#444076: (no subject)

2007-09-25 Thread Scott Serr

I was able to reproduce this on a fresh net-install of Etch on i386.

apt-get install mysql-server
apt-get install nagios-mysql
rm /etc/nagios/database.cfg
apt-get --purge remove nagios-mysql
apt-get install nagios-mysql

I've also tried 'dpkg-reconfigure nagios-mysql" with the same result.

People normally(?) solve a removed config file by doing "apt-get --purge 
remove " and then "apt-get install " but this does not 
work with nagios-mysql.


http://ubuntuforums.org/showthread.php?t=171211
http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg386505.html




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]