Welcome 微信登录

首页 / 数据库 / MySQL / 配置 Cacti 监控 MySQL 数据库状态

MySQL 自身在性能监测方面很不给力、这是令许多 MySQL DBA 夜夜辗转难眠、幸运的是、通过 Cacti 监测(注意是监测而非监控)MySQL 数据库状态。借助 cacti+rrdtool 强大的绘图功能、加上专用的 mysql 模板、能够灵活快速的创建对多个 MySQL 实例的监测㈠ 如果是RPM方式安装,需要下列RPM包:httpdphpphp-mysqlphp-snmpmysqlmysql-servernet-snmp*㈡ 安装 RRDTool# wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.14.tar.gz# tar -zxv -f rrdtool-1.4.4.tar.gz# ./configure --prefix=/usr/local/rrdtool  --disable-python  --disable-tcl# make# make install可能遇到的故障:configure: error: Please fix the library issues listed above and try again请查阅→→troubleshoting http://www.linuxidc.com/Linux/2013-04/83006.htm㈢ 安装 CACTI# wget http://www.cacti.net/downloads/# useradd cacti# tar -zxv -f cacti-0.8.7i.tar.gz# mv cacti-0.8.7i /var/www/cacti# chown -R cacti:cacti /var/www/cacti㈣ 配置 apache 模块编辑 apache 配置文件:vim httpd.conf① 修改服务名称:ServerAdmin 192.168.1.113:80② 修改站点起始目录:DocumentRoot "/var/www"③ 修改目录:<Directory "/var/www">④ 增加默认做为首页的文件名:DirectoryIndex index.html index.php⑤ 增加对php类型的支持:AddType application/x-httpd-php .phpAddType application/x-httpd-php-source .phps然后:wq保存退出!执行 apachectl -t 检查配置文件语法,正常情况下应返回Syntax OK:启动snmp服务:service snmpd start启动apache服务:apachectl start
  • 1
  • 2
  • 下一页
Oracle最简单的查询表空间的使用量、剩余量的方法Oracle如何实现两个数据库的同步(用实体化视图实现)(Oracle快照实例)相关资讯      CACTI  Cacti配置  Cacti监控  Cacti监控MySQL 
  • Cacti监控内网本机TCP连接状况  (08月03日)
  • Cacti auth_login.php绕过访问限制  (04月15日)
  • Cacti host_new_graphs_save函数  (12/16/2015 13:55:43)
  • Cacti 安装spine以实现每分钟获取  (04月27日)
  • Cacti基于SNMP服务添加监控远程  (03月18日)
  • Cacti完全使用手册 ( 让你快速个性  (08/20/2015 19:49:24)
本文评论 查看全部评论 (0)
表情: 姓名: 字数