标签:art create sha etc emctl tables 告警 efault install
告警
虚拟机上网
[root@test1 alertscripts]# route -n
[root@test1 alertscripts]# route add default gw 172.25.8.250
[root@test1 alertscripts]# route -n
[root@test1 alertscripts]# vim /etc/resolv.conf
114....
[root@test1 alertscripts]# ping www.baidu.com
[root@test1 alertscripts]# tar zxf oneitsm_zabbix_release-1.2.0.tar.gz
[root@test1 alertscripts]# cd oneitsm/bin/
[root@test1 bin]# ./install.sh c272bd48-dfb0-5d00-4c6b-2bd550775939 (后面的key值在网站中添加zabbix生成)
Zabweb
管理—–>用户->Admin->报警媒介->添加
配置-动作-触发器
server2:
[root@test2 ~]# systemctl stop zabbix-agent.service
[root@test2 ~]# systemctl start zabbix-agent.service
JXM
新开一台虚拟机4:172.25.8.4:
[root@server4 ~]# yum install -y zabbix-java-gateway-3.4.6-1.el6.x86_64.rpm
server2:
[root@test2 ~]# tar zxf apache-tomcat-7.0.90.tar.gz -C /usr/local/
[root@test2 local]# ln -s apache-tomcat-7.0.90/ tomcat
[root@test2 local]# cd tomcat/
[root@test2 tomcat]# cd bin/
[root@test2 bin]# vim catalina.sh
[root@test2 ~]# rpm -ivh jdk-8u121-linux-x64.rpm
[root@test2 bin]# ./startup.sh
[root@test2 bin]# netstat -antlp
tcp6 0 0 :::8888 :::* LISTEN 7067/java
server1:
[root@test1 zabbix]# vim zabbix_server.conf
[root@test1 zabbix]# systemctl restart zabbix-server.service
zabweb:
主机-test2-JMX接口-添加
模版-添加
proxy:
test2:
[root@test2 bin]# vim /etc/zabbix/zabbix_agentd.conf
[root@test2 bin]# systemctl restart zabbix-agent.service
server4:
[root@server4 ~]# yum install -y zabbix-proxy-mysql-3.4.6-1.el6.x86_64.rpm fping-2.4b2-16.el6.x86_64.rpm
[root@server4 zabbix-proxy-mysql-3.4.6]# yum install mysql-server -y
[root@server4 ~]# cd /usr/share/doc/
[root@server4 doc]# cd zabbix-proxy-mysql-3.4.6/
[root@server4 mysql]# /etc/init.d/mysqld start
[root@server4 ~]# vim /etc/zabbix/zabbix_proxy.conf
[root@server4 ~]# mysql
mysql> create database zabbix_proxy character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix_proxy.* to zabbix@localhost identified by ‘westos‘;
[root@server4 ~]# cd /usr/share/doc/zabbix-proxy-mysql-3.4.6/
[root@server4 zabbix-proxy-mysql-3.4.6]# zcat schema.sql.gz | mysql -uzabbix -pwestos zabbix_proxy
[root@server4 zabbix-proxy-mysql-3.4.6]# mysql
mysql> use zabbix_proxy
mysql> show tables;
server4:
[root@server4 zabbix]# vim zabbix_proxy.conf
[root@server4 zabbix]# /etc/init.d/zabbix-proxy start
test2:
[root@test2 bin]# vim /etc/zabbix/zabbix_agentd.conf
[root@test2 bin]# systemctl restart zabbix-agent.service
server4
[root@server4 zabbix]# vim zabbix_proxy.conf
[root@server4 zabbix]# /etc/init.d/zabbix-proxy start
zabweb:
标签:art create sha etc emctl tables 告警 efault install
原文地址:https://www.cnblogs.com/zhengyipengyou/p/9826780.html