Package: cacti
Version: 0.6.8a-13.1
Followup-For: Bug #206600

As Gaetan wrote, there is a mismatch of variables in the cacti.postinst script, 
which stops installation with "Cacti is not configured due to wrong mysql 
hostname/credential".

With a hotfix I could repeat the installation successfully by running 
dpkg-reconfigure cacti. I had to add the following 3 lines in the function 
get_config():
dbname="$RET"
dbuser="$RET"
dbpass="$RET"

...now it looks like this:

get_config()
{
        db_get cacti/mysql_server
        mysql_server="$RET"
        db_get cacti/database
        database="$RET"
        dbname="$RET"
        db_get cacti/root_mysql
        root_mysql="$RET"
        db_get cacti/root_password
        root_passwd="$RET"
        db_get cacti/username
        username="$RET"
        dbuser="$RET"
        db_get cacti/password
        password="$RET"
        dbpass="$RET"
        db_get cacti/webserver
        webserver="$RET"
        db_get cacti/no_mysql
        no_mysql="$RET"
}

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux testix 2.4.20 #2 SMP Wed Jan 29 14:10:21 CET 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages cacti depends on:
ii  apache                     1.3.27.1-3    Versatile, high-performance HTTP s
ii  debconf                    1.3.14        Debian configuration management sy
ii  mysql-client               4.0.14-1      mysql database client binaries
ii  php4-cgi                   4:4.3.2+rc3-6 A server-side, HTML-embedded scrip
ii  php4-mysql                 4:4.3.2+rc3-6 MySQL module for php4
ii  rrdtool                    1.0.42-2      Time-series data storage and displ
ii  snmp                       5.0.7-1.1     NET SNMP (Simple Network Managemen
ii  wwwconfig-common           0.0.30        Debian web auto configuration

-- debconf information excluded


Reply via email to