内网有一台mysql服务器,版本是5.7.14关于这个版本安装,有兴趣可以参考http://xiao987334176.blog.51cto.com/2202382/1783509zabbix自带有一个模板TemplateAppMySQL,用来监控mysql的但是不能直接使用,否则会因为没有Key,导致获取不到数据。下面介绍详细步骤。首先在mysql服..
分类:
数据库 时间:
2016-08-26 15:35:48
阅读次数:
323
mongodb集群采用的replicationset模式,至少3个节点以上。有个问题,当mongodb主节点down的时候,如何让ceilometer自动连接重新选举出来的主节点?这里有两种解法,至于采用哪种,看需求。1、采用vip来定位mongodb主节点使用keepalived来起vip,这里有两个vip,vrrp_instanceVI..
分类:
数据库 时间:
2016-08-10 01:08:42
阅读次数:
789
通过使用mysql_performance_monitor软件包实现zabbix对mysql的监控。 1.安装依赖软件。yum install perl-File-Which perl-libwww-perl perl-Digest-SHA perl-DBD-MySQL perl-Time-HiRe ...
分类:
数据库 时间:
2016-06-22 12:32:05
阅读次数:
248
参考http://www.linuxidc.com/Linux/2016-04/130436.htm环境:zabbixsever:192.168.234.131mysql:192.168.234.130mysql客户端操作:1添加监控用户,登入到数据里然后:
GRANTUSAGEON*.*TO‘zabbix‘@‘localhost‘IDENTIFIEDBY‘zabbix‘WITHGRANTOPTION;
MariaDB[(none)]>flushpr..
分类:
数据库 时间:
2016-05-25 15:19:40
阅读次数:
274
环境:192.168.127.131主数据库及zabbixserver192.168.127.130从数据库及zabbixclienta.首先给mysql分配一个监控的账号mysql>grantallprivilegesonzabbix.*tozabbix@localhostidentifiedby‘zabbix‘;b.编写一个脚本vim/sh/mysql-replication.sh
#!/bin/bash
/usr/local/mysql..
分类:
数据库 时间:
2016-05-20 14:44:46
阅读次数:
254
首先上监控的脚本:#!/bin/bash
status=`mysql-uroot-p123-e"showslavestatus\G"|egrep"Slave_IO_Running|Slave_SQL_Running"|awk-F:‘{print$2}‘|tr"\n"""`
arr_status=(`echo$status`)
[[${arr_status[0]}=~"Yes"]]&&[[${arr_status[1]}=~"Yes"]]&&echo1||ech..
分类:
数据库 时间:
2016-05-18 22:19:54
阅读次数:
297
1.在mysql端(zabbix客户端)修改监控mysql的参数[root@db01~]#vim/etc/my.cnf[mysql]auto-rehashuser=用户名password=密码[mysqladmin]user=用户名password=密码[root@db01~]#vim/etc/zabbix/zabbix_agentd.d/userparameter_mysql.confUserParameter=mysql.status[*],echo
"show..
分类:
数据库 时间:
2016-05-13 05:01:58
阅读次数:
187
MPM插件部署1. 安装MPM依赖的相关perl模块安装mpm需要的相关依赖包:[保险起见,agent端也安装下面的依赖包]#yum-yinstallperl-File-Whichperl-libwww-perlperl-Digest-SHA1perl-DBD-MySQLperl-Time-HiResperl-Crypt-SSLeay#yum-yinstallperl-File-Whichperl-libwww-perlperl-D..
分类:
数据库 时间:
2016-05-10 15:26:20
阅读次数:
565
部署zabbix监控mysql(1)安装LAMP环境[root@localhost~]#yum-yinstallmysql-serverhttpphp(2)安装zabbixweb所需要的依赖包[root@localhost~]#yum-yinstallmysql-devgccnet-snmp-develcurl-develperl-DBIphp-gdphp-mysqlphp-bcmathphp-mbstringphp-xml安装Fping:[root@local..
分类:
数据库 时间:
2016-05-09 18:57:09
阅读次数:
6268
ZabbixAgent安装配置(1)下载安装zabbixagent软件#wgethttp://iweb.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.8/zabbix-2.4.8.tar.gz[root@192~]#tarxfzabbix-2.4.8.tar.gz[root@192~]#cdzabbix-2.4.8[root@192zabbix-2.4.8]#./configure--prefix=/usr..
分类:
数据库 时间:
2016-05-09 18:53:23
阅读次数:
227