QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2443|回复: 1

cacti监控mysql服务

[复制链接]
发表于 2009-4-20 17:15:23 | 显示全部楼层 |阅读模式
脚本位置:http://forums.cacti.net/viewtopic.php?t=11010

# wget http://www.faemalia.net/mysqlUtils/teMySQLcacti-20060810.tar.gz
# cd /data/src/teMySQLcacti
# ./convertXmlTo5minutePollingInterval.sh

These graphs assume a 1-minute Poller cron frequency! If you use the default 5-minute interval, run convertXmlTo5minutePollingInterval.sh, which will make a step=300, heartbeat=600 version of the XML file for you to import.

# cp mysql_stats.php /data/cacti/scripts/
# cp dumpMemcachedStats.php /data/cacti/scripts/

在cacti管理界面导入cacti_host_template_temysql_host-step300-heartbeat600.xml 与cacti_host_template_memcached_host-step300-heartbeat600.xml模板文件。

被监控的msql数据库服务器需要加入以下权限:
mysql> grant process,super on *.* to ‘cacti’@'cacti server ip’ identified by ‘password’;
发表于 2009-4-20 21:21:44 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-3-28 23:53 , Processed in 0.105993 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表