Connecting the world…

images

Cacti – PA 3.0 wrong path for plugins

After upgrading a CactiEZ installation to cacti 0.8.7h including PA 3.0, I had some problems with the different plugins. The default path for the plugins was configured incorrectly. The plugins were looking in the wrong directory for their images. In the httpd error log I see the following errors.

[root@localhost html]# tail -90f /etc/httpd/logs/error_log
[Wed Jul 18 07:52:19 2012] [error] [client 10.254.60.18] File does not exist: /var/www/html/plugins/monitor/include, referer: http://10.254.10.20/plugins/monitor/monitor.php
[Wed Jul 18 07:52:19 2012] [error] [client 10.254.60.18] File does not exist: /var/www/html/plugins/monitor/include, referer: http://10.254.10.20/plugins/monitor/monitor.php

The problem can be fixed by adding the following line to the include/config.php file.

$url_path = “/”;

Now all plugin pages are displayed correctly.