Setting up Cacti
Install needed packages:
Add php support to lighttpd (uncomment this line in /etc/lighttpd/lighttpd.conf):
Save and exit editor.
Create a softlink for the cacti web files:
Assign permits to lighttpd user:
In case you are using other web server than lighttpd have to assign permits to that user. If it hasn't already been done, setup MySQL:
Create the cacti database and populate it
Grant Cacti MySQL user access (give it a more secure password):
Quit from Mysql command prompt:
Edit and put in the password you used in the above step for the mysql user.
Import the initial Cacti MySQL config:
Set lighttpd to autostart and start the daemon.
Browse to http://localhost/cacti/
In the web page click:
- -> Next
Then select new install in case is not selected:
- -> New install, Next
- -> Finish
Password= admin user= admin
Next wil be prompted to change password:
Add to crontab:
cd /etc/crontabs vi root
copy to the end of the file:
*/5 * * * * lighttpd php /var/www/localhost/htdocs/cacti/poller.php > /dev/null 2>&1
In case you are using other web server have to modify the "lighttpd" user.
*/5 * * * * "web server user" php /var/www/localhost/htdocs/cacti/poller.php > /dev/null 2>&1
Add your devices and you're ready to start monitoring!