I installed or tried to install cacti on a Fedora Core 6 box. First I used the rpm in the extras repository and then I used the official tarball. I have this same problem for both methods.
I followed the installation documentation and configured apache and mysql etc. Upon browsing http://localhost/cacti I got a blank page. Looking at my httpd error_log, I found the following:
Code: Select all
[Thu May 10 16:31:25 2007] [error] [client 127.0.0.1] PHP Warning: mb_ereg_replace() [<a href='function.mb-ereg-replace'>function.mb-ereg-replace</a>]: mbregex compile err: premature end of char-class in /usr/share/cacti/include/config.php on line 57
[Thu May 10 16:31:25 2007] [error] [client 127.0.0.1] PHP Warning: mb_ereg_replace() [<a href='function.mb-ereg-replace'>function.mb-ereg-replace</a>]: mbregex compile err: premature end of char-class in /usr/share/cacti/include/config.php on line 58
[Thu May 10 16:31:25 2007] [error] [client 127.0.0.1] PHP Warning: include(/adodb/adodb.inc.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /usr/share/cacti/include/config.php on line 142
[Thu May 10 16:31:25 2007] [error] [client 127.0.0.1] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/adodb/adodb.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/config.php on line 142
[Thu May 10 16:31:25 2007] [error] [client 127.0.0.1] PHP Warning: include(/database.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /usr/share/cacti/include/config.php on line 143
[Thu May 10 16:31:25 2007] [error] [client 127.0.0.1] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/database.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/config.php on line 143
[Thu May 10 16:31:25 2007] [error] [client 127.0.0.1] PHP Warning: include_once(/functions.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /usr/share/cacti/include/config.php on line 144
[Thu May 10 16:31:25 2007] [error] [client 127.0.0.1] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/functions.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/config.php on line 144
[Thu May 10 16:31:25 2007] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function db_connect_real() in /usr/share/cacti/include/config.php on line 150
Code: Select all
$config["library_path"] = "/usr/share/cacti/lib";
#$config["library_path"] = ereg_replace("(.*[\/\\])include", "\\1lib", dirname(__FILE__));
Code: Select all
[NOT FOUND] Cacti Log File Path: The path to your Cacti log file.
/log/cacti.log
Then I did an `su - cacti' and manually ran the poller.php script. Here's the output:
Code: Select all
PHP Warning: mb_ereg_replace(): mbregex compile err: premature end of char-class in /usr/share/cacti/include/config.php on line 57
PHP Warning: include_once(/lib/poller.php): failed to open stream: No such file or directory in /usr/share/cacti/poller.php on line 38
PHP Warning: include_once(): Failed opening '/lib/poller.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/poller.php on line 38
PHP Warning: include_once(/lib/data_query.php): failed to open stream: No such file or directory in /usr/share/cacti/poller.php on line 39
PHP Warning: include_once(): Failed opening '/lib/data_query.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/poller.php on line 39
PHP Warning: include_once(/lib/graph_export.php): failed to open stream: No such file or directory in /usr/share/cacti/poller.php on line 40
PHP Warning: include_once(): Failed opening '/lib/graph_export.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/poller.php on line 40
PHP Warning: include_once(/lib/rrd.php): failed to open stream: No such file or directory in /usr/share/cacti/poller.php on line 41
PHP Warning: include_once(): Failed opening '/lib/rrd.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/poller.php on line 41
PHP Fatal error: Call to undefined function exec_background() in /usr/share/cacti/poller.php on line 128
The package versions are as follows:
php-5.1.6-3.5.fc6
php-mysql-5.1.6-3.5.fc6
php-snmp-5.1.6-3.5.fc6
mysql-5.0.22-2.1
mysql-server-5.0.22-2.1
httpd-2.2.3-5
Any help is greatly appreciated.
Thanks.
P.S.
Code: Select all
Data Query Debug Information
+ Running data query [6].
+ Found type = '4 '[script query].
+ Could not find data query XML file at '/resource/script_queries/unix_disk.xml'
+ Error parsing XML file into an array.
+ Could not find data query XML file at '/resource/script_queries/unix_disk.xml'
+ Could not find data query XML file at '/resource/script_queries/unix_disk.xml'
+ Could not find data query XML file at '/resource/script_queries/unix_disk.xml'