一.zabbix_proxy 监视tomcat
1.基础配置
1.zabbix-server端 172.16.1.81
安装zabbix-server端
安装zabbix-get
安装zabbix-Javagateway
2.客户代理端 172.16.1.7
安装zabbix-agent2
安装zabbix-proxy
安装数据库
3.客户端运行java 172.16.1.8
安装java
安装zabbix-agent2
2.proxy代理配置文件
(1)zabbix-server服务端配置
[root@zabbix ~]# grep '^[a-Z]' /etc/zabbix/zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
SocketDir=/var/run/zabbix
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=123456
JavaGateway=127.0.0.1
JavaGatewayPort=10052
StartVMwareCollectors=5
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000
StatsAllowedIP=127.0.0.1
(2)客户端代理配置
#1.[root@web01 ~]# grep '^[a-Z]' /etc/zabbix/zabbix_proxy.conf
Server=172.16.1.81
ServerPort=10051
Hostname=nanji_server
LogFile=/var/log/zabbix/zabbix_proxy.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_proxy.pid
SocketDir=/var/run/zabbix
DBName=zabbix_proxy
DBUser=zabbix_proxy
DBPassword=123456
JavaGateway=172.16.1.81
JavaGatewayPort=10052
StartJavaPollers=3
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000
StatsAllowedIP=127.0.0.1
#2.[root@web01 ~]# grep '^[a-Z]' /etc/zabbix/zabbix_agent2.conf
PidFile=/var/run/zabbix/zabbix_agent2.pid
LogFile=/var/log/zabbix/zabbix_agent2.log
LogFileSize=0
Server=172.16.1.81
ServerActive=172.16.1.81
Hostname=Zabbix server
Include=/etc/zabbix/zabbix_agent2.d/*.conf
ControlSocket=/tmp/agent.sock
[root@web01 ~]# grep '^[a-Z]' /etc/zabbix/zabbix_agent2.conf
PidFile=/var/run/zabbix/zabbix_agent2.pid
LogFile=/var/log/zabbix/zabbix_agent2.log
LogFileSize=0
Server=172.16.1.81
ServerActive=172.16.1.81
Hostname=Zabbix server
Include=/etc/zabbix/zabbix_agent2.d/*.conf
ControlSocket=/tmp/agent.sock
3.客户端运行tomcat配置文件
[root@web02 ~]# grep '^[a-Z]' /etc/zabbix/zabbix_agent2.conf
PidFile=/var/run/zabbix/zabbix_agent2.pid
LogFile=/var/log/zabbix/zabbix_agent2.log
LogFileSize=0
Server=172.16.1.7
ServerActive=172.16.1.7
HostnameItem=system.hostname
HostMetadataItem=system.hostname
Include=/etc/zabbix/zabbix_agent2.d/*.conf
ControlSocket=/tmp/agent.sock
4.页面点点点
(1)proxy代理端
(2)tomcat端
5.检测
6.总结
1.你就好好听哥的没事多看看日志,看多了不会*
2.出现错误先看配置文件是否正确,不正确快点看日志
3.就这了多写总结
二.zabbix_proxy 监视普通
1.环境准备
(1)服务端还是和上面一样
(2)代理端也是一样
(3)客户端也是
2.配置文件服务端和代理端都不变 (客户端配置文件)
[root@nfs ~]# grep '^[a-Z]' /etc/zabbix/zabbix_agent2.conf
PidFile=/var/run/zabbix/zabbix_agent2.pid
LogFile=/var/log/zabbix/zabbix_agent2.log
LogFileSize=0
Server=172.16.1.7
ServerActive=172.16.1.7
HostnameItem=system.hostname
HostMetadataItem=system.hostname
Include=/etc/zabbix/zabbix_agent2.d/*.conf
ControlSocket=/tmp/agent.sock
3.点点
4.检测