Main Contents

Using Cacti Plugin Architecture with Gentoo

March 12, 2008

Cacti Plugins are great tools to extend your Cacti capabilities. I ran into an issue with Cacti 0.8.7b on Gentoo after installing the Plugin Architecture (http://cactiusers.org/). The error was:

Warning: include(/var/www/localhost/htdocs/cacti/lib/adodb/adodb.inc.php) [function.include]: failed to open stream: No such file or directory in /var/www/localhost/htdocs/cacti/include/global.php on line 191

Warning: include() [function.include]: Failed opening '/var/www/localhost/htdocs/cacti/lib/adodb/adodb.inc.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/localhost/htdocs/cacti/include/global.php on line 191

Fatal error: Call to undefined function NewADOConnection() in /var/www/localhost/htdocs/cacti/lib/database.php on line 38

To fix it, add a link in the cacti/lib directory to the PHP adodb location. On my system, I did this:

# cd /var/www/localhost/htdocs/cacti/lib/
# ln -s /usr/share/php5/adodb adodb

Also, the cacti/include/config.php file does not get updated, as the PA documentation infers. I had to manually add the following lines to config.php:

$config['url_path'] = "/";
$plugins = array();
//$plugins[] = 'thold';

Filed under: Linux, Network |

1 Comment

  1. Alexwebmaster March 3, 2009 @ 9:56 am

    Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru