Zabbix分布式监控(3)添加模版(Apache mysql)
实验环境:rhel6.5:server5.example.com172.25.55.5(server)server6.example.com172.25.55.6(agent)一、安装httpd(agent):::yum install -y httpd:::cd /var/www/html/:::vim index
实验环境:
rhel6.5:
server5.example.com 172.25.55.5(server)
server6.example.com 172.25.55.6(agent)
一、安装httpd(agent)
:::yum install -y httpd
:::cd /var/www/html/
:::vim index.html
(文件内容)
server6.example.com
启动httpd服务
:::/etc/init.d/httpd start
二、添加到zabbix监控
configuration–>Action(点击zabbix server)
(点击update 就行)
三、安装mysql(agent)
:::yum install -y mysql-server
:::/etc/init.d/mysqld start
:::musql -pwestos (登录数据库)
:::create database zabbixdb character set utf8 collate utf8_bin;
:::grant all privileges on zabbixdb.* to zabbix@localhost identified by ‘westos’;
:::quit(退出数据库)
:::mkdir /var/lib/zabbix
:::cd /var/lib/zabbix
:::vim .my.cnf
重启服务
:::/etc/init.d/zabbix-agent restart
四、添加到zabbix监控
点击 Configuration -> Hosts -> zabbix server Graphs 可以看到两个新的监控图形
更多推荐

所有评论(0)