cacti mysql tempate安装日志

本文详细介绍如何使用Cacti监控MySQL性能指标,包括下载安装文件、配置脚本位置、设置定时任务及导入模板等步骤,并指导用户创建监控图表。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值