Home | Mirror | Search

第 37 章 cacti

yum install cacti
		

database

		
mysqladmin -uroot -p create cacti
echo "GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY '1ba0128c';" | mysql -uroot -p
echo "flush privileges;" | mysql -uroot -p		
mysql -uroot -p cacti < /usr/share/doc/cacti-0.8.7e/cacti.sql
		
		

enable crontab

		
# cat /etc/cron.d/cacti
*/5 * * * *     cacti   /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
				
		

install cacti

http://localhost/cacti/install/

comments powered by Disqus