cacti mysql tempate安装日志

来源:互联网 发布:少年西游记淘宝礼包 编辑:程序博客网 时间:2024/04/29 14:20
cd /usr/local/src
wget http://www.faemalia.net/mysqlUtils/teMySQLcacti-20060810.tar.gz
 tar xzvf teMySQLcacti-20060810.tar.gz

按照官方文档中的3步
1). Put mysql_stats.php and dumpMemcachedStats.php in cacti/scripts/

本文只拷了mysql_stats
cp teMySQLcacti/mysql_stats.php /var/www/html/cacti/scripts

2)
Either ensure your cacti poller is cron'd every 1 minute, or run the included    BASH shell script to create a 300/600 step/heartbeat version of the XML file.


但其实tar本来就有cacti_host_template_temysql_host-step300-heartbeat600.xml

上面的步骤很多余

3)Import the .XML host using the cacti webinterface. Note,


上面3步安装好后,开始再按照官方文档产生图

GRAPH CREATION
==============

0. Make sure you installed mysql_stats.php and dumpMemcachedStats.php.
1. Go to Management/Devices.
2. Add a new device.
3. Description can be whatever you want.
4. Hostname should resolve to IP of database machine.
5. Host template is teMySQL or memcached Host.
6. Now choose the "Create Graphs" link.
7. Highlight all graphs for the host (assuming you want them all).
8. Choose "Create"
9. A page will come up with several Password/Username pairs, fill them
   all in with the cactipasswd/cactiuser you chose above. Hint: If you're
   using Firefox, the second host you do this for you can just press down-
   arrow twice, then tab, and the value will be filled in automatically
   by the browser. The first time, I suggest typing in the username, copying
   it, then doing a "paste-tab-tab-paste-tab-tab..." key combo until they're
   all filled in, then repeat for the password. Painful, but doable.



原创粉丝点击