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

Scott Serr serrs at theserrs.net
Tue Sep 25 22:09:13 UTC 2007


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 nagios-mysql at localhost: success.
verifying access for nagios-mysql at localhost: 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.






More information about the Pkg-nagios-devel mailing list