1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| 3、配置java gateway ,最好单独一台服务器装java gateway root@zabbix-server:~# ll /app/zabbix_server/sbin/zabbix_java/settings.sh LISTEN_IP="0.0.0.0" START_POLLERS=20 #采集数量 TIMEOUT=30 #采集到数据,返回时间
启动java gateway root@zabbix-server:~# /app/zabbix_server/sbin/zabbix_java/startup.sh root@zabbix-server:~# ss -nlt 10052端口
.............................................................. apt安装gateway 配置和编译的一样 root@zabbix-server:~# apt-get install zabbix-java-gateway /etc/zabbix/zabbix_java_gateway.conf systemctl restart zabbix-java-gateway.service ...............................................................
4、配置zabbix-server root@zabbix-server:~# vim /app/zabbix_server/etc/zabbix_server.conf ...... JavaGateway=192.168.6.10 #javagateway服务器地址 JavaGatewayPort=10052 #监听端口 StartJavaPollers=20 #发送请求数量给javagateway,最好和START_POLLERS=20一样
root@zabbix-server:~# systemctl restart zabbix-server.service root@zabbix-server:~# ps -ef | grep java java进程是否匹配配置的20个
|