输入banner图图片脚本导航/分类

mysql-cacti-templates-1.1.2.tar.gz 免费下载 cacti MySQL增加监控

mysqluser=cacti;mysql_pass = ‘cacti’;

这个账户和密码是 被监控端主机 给 Cacti主机 授权的 账户和密码
Cacti需要这个账户和密码去连接 被监控机 查询状态

  1. 配置被监控端的mysql 给 cacti 主机授权
    mysql -uroot -p
    grant process,super on . to ‘cacti’@’%’ identified by ‘cacti’;
    grant process,super on . to ‘cacti’@’10.254.166.60’ identified by ‘cacti’;
    flush privileges;

此命令 意义
只允许IP为10.254.166.60 的主机 以 账户 cacti 密码 cacti 去访问 本机数据

  1. 在Cacti主机上(10.254.166.60) 监控Mysql

4.1 为主机添加mysql模块

控制台 - 管理 - 设备 - 选中之前创建好的主机

然后移到最下面的 添加图形模版 选中 Mysql相关模块 然后保存

4.2 为mysql模块创建图形

控制台 - 创建 - 创建图形 - 选中该主机 - 选中mysql模块 - 创建

4.3 插件mysql性能数据

监视器 - 选中该主机 - 查阅对应的mysql

完毕

mysql-cacti-templates-1.1.2.tar.gz 免费下载 cacti MySQL增加监控

标签: