Package: cacti Version: 0.8.6c-7 Severity: normal Due to the way I've configured my web server I had to change the owner and group of /etc/cacti/debian.php. That works fine, but when I upgrade cacti it changes the owner and group back to the default of root/www-data. Please could you make the installation preserve the existing ownership and permissions on that file if it already exists?
Also when there are the wrong permissions on that file the web error messages displayed in the web interface don't indicate the cause of the problem. They say this: Notice: Undefined variable: database_hostname in /usr/share/cacti/site/include/config.php on line 108 Notice: Undefined variable: database_username in /usr/share/cacti/site/include/config.php on line 108 Notice: Undefined variable: database_password in /usr/share/cacti/site/include/config.php on line 108 Notice: Undefined variable: database_default in /usr/share/cacti/site/include/config.php on line 108 Warning: mysql_connect(): Access denied for user: '[EMAIL PROTECTED]' (Using password: NO) in /usr/share/cacti/site/lib/adodb/drivers/adodb-mysql.inc.php on line 339 [plus loads more copies of the last message] On line 29 of /usr/share/cacti/site/include/config.php is the following statement: @include('/etc/cacti/debian.php'); The include statement only produces a warning (rather than an error) if the file can't be included. And the "@" tells PHP to ignore even that warning! Please can you change this from "@include" to "require" so that you get a relevant error message like this: Warning: main(/etc/cacti/debian.php): failed to open stream: Permission denied in /usr/share/cacti/site/include/config.php on line 29 Fatal error: main(): Failed opening required '/etc/cacti/debian.php' (include_path='.') in /usr/share/cacti/site/include/config.php on line 29 Also the poller produces no warnings or errors at all. So it's possible to have the web interface working, but the poller silently failing. If that's the case you can be unaware of the problem until you happen to look at the graphs and notice that they're not working. That is what just happened to me for what must now be the third or forth time.... The cause of this throwing away of errors is /etc/cron.d/cacti which contains this: */5 * * * * www-data /usr/share/cacti/site/poller.php >/dev/null 2>&1 So you're deliberately throwing away *all* output, include stderr! Please could you change that crontab to this: MAILTO=root */5 * * * * www-data /usr/share/cacti/site/poller.php >/dev/null Then root will get emailed any errors (they'll be the same as you get for the web interface as poller.php uses /usr/share/cacti/site/include/config.php too). Doing these things might help you with other bugs too (e.g. #308492). Cheers, Mark. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.4.27-1-686-smp Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages cacti depends on: ii apache 1.3.33-4 versatile, high-performance HTTP s ii apache-ssl 1.3.33-4 versatile, high-performance HTTP s ii apache2-mpm-worker [apache2] 2.0.54-3 high speed threaded model for Apac ii debconf 1.4.30.13 Debian configuration management sy ii libphp-adodb 4.52-1 The 'adodb' database abstraction l ii logrotate 3.7-2 Log rotation utility ii mysql-client 4.0.24-5 mysql database client binaries ii php4 4:4.3.10-13 server-side, HTML-embedded scripti ii php4-cli 4:4.3.10-13 command-line interpreter for the p ii php4-mysql 4:4.3.10-13 MySQL module for php4 ii php4-snmp 4:4.3.10-13 SNMP module for php4 ii rrdtool 1.0.49-1 Time-series data storage and displ ii snmp 5.1.2-6.1 NET SNMP (Simple Network Managemen ii ucf 1.17 Update Configuration File: preserv -- debconf information excluded -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]