Bug#206600: cacti: wrong mysql hostname/credential

2003-09-13 Thread Oliver Zimmermann
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-3Versatile, high-performance HTTP s
ii  debconf1.3.14Debian 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  rrdtool1.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.30Debian web auto configuration

-- debconf information excluded




Bug#211249: default /etc/cron.d/cacti does not work

2003-09-16 Thread Oliver Zimmermann
Package: cacti
Version: 0.6.8a-13.1
Severity: normal

By default there is in /etc/cron.d/cacti:
*/5 * * * * www-data php4 /usr/share/cacti/cmd.php > /dev/null 2>&1

This doesn't work, because php4 is not startet in the right directory.
To succeed I had to change it like this:
*/5 * * * * www-data cd /usr/share/cacti && php4 cmd.php > /dev/null 2>&1

-- 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-3Versatile, high-performance HTTP s
ii  debconf1.3.14Debian 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  rrdtool1.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.30Debian web auto configuration

-- debconf information excluded