找回密码
 开放注册

QQ登录

只需一步,快速开始

微信登录

微信扫码,快速开始

搜索
查看: 791|回复: 0

cacti监控mysql

[复制链接]

155

主题

15

回帖

360

牛毛

一级牛人

积分
360
发表于 2011-9-28 14:35:47 | 显示全部楼层 |阅读模式 来自 河北省石家庄市
一、被监控主机配置
  1)、vi /etc/snmp/snmpd.conf
  更改com2sec notConfigUser default public
  改为com2sec notConfigUser 127.0.0.1 public 注:如果是其它被监控主机,这里应该为监控服务器。
  2)、更改access notConfigGroup "" any noauth exact systemview none none
  改为access notConfigGroup "" any noauth exact all none none
  3)、#view all included .1 80
  将前面的 # 注释 去掉。
  保存退出
  启动snmpd服务 :
  chkconfig snmpd on  && service snmpd start
  mysql>GRANT PROCESS, SUPER, REPLICATION CLIENT ON *.* TO 'cacti'@'192.168.0.17' identified by 'cacti';
  mysql>grant process,super on *.* to 'cacti'@'192.168.0.%' identified by 'cacti';
  二、监控服务器配置
  mkdir -p /usr/local/apache/htdocs/cacti/cache/
  chmod 777 /usr/local/apache/htdocs/cacti/cache/
  修改ss_get_mysql_stats.php 文件 第30行
  $mysql_user = 'cacti';
  $mysql_pass = 'cacti';
  $cache_dir = "/usr/local/apache/htdocs/cacti/cache/";
  三,模板导入在cacti管理界面(Import Templates)导入cacti_host_template_x_db_server_ht_0.8.6i.xml。
本文由:SKF轴承 http://wwww.9-zc.com 整理发布
您需要登录后才可以回帖 登录 | 开放注册

本版积分规则

帮助|Archiver|小黑屋|通信管理局专项备案号:[2008]238号|NB5社区 ( 皖ICP备08004151号;皖公网安备34010402700514号 )

GMT+8, 2025-4-25 15:07 , Processed in 0.212693 second(s), 33 queries .

Powered by Discuz! X3.5

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