Comments on Cacti With Xampp On Ubuntu

Cacti With Xampp On Ubuntu This is a simple setup of Cacti, so that you don’t really need a "Linux" expert to maintain it. Please note that Cacti can also be installed on Windows and guides for both these installations are available on the net. This guide is just a repeat of how Cacti was set up here in Mumbai.

2 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By:

This how-to allowed me to have xampp and cacti working, at last, in Ubuntu Dapper, very clear instructions. Thanks.

I found a typo in crontab. Instead of this line:

/5 * * * * deadwait /opt/lampp/bin/php /opt/lampp/htdocs/cacti/poller.php > /dev/null 2>&1

you may want to use this (I added the asterisk):

*/5 * * * * deadwait /opt/lampp/bin/php /opt/lampp/htdocs/cacti/poller.php > /dev/null 2>&1

Even better if you use www-data instead of deadwait. www-data is already a user in Ubuntu.

 */5 * * * * www-data /opt/lampp/bin/php /opt/lampp/htdocs/cacti/poller.php > /dev/null 2>&1

 Now, in order to enable cacti to write, we should change some rights on a couple of folders:

sudo chown -R www-data:www-data /opt/lampp/htdocs/cacti/log

and:

sudo chown -R www-data:www-data /opt/lampp/htdocs/cacti/rra 

By: sylvainr

With version 5.5.8 of MySQL, the import might throw in an error because cacti.sql uses TYPE=MyISAM and should be using ENGINE=MyISAM. I've opened up the file in an editor and did a find and replace and then MySQL imported the file.

 Thanks for this tutorial. Helped me a lot.