1. Zabbix Server에 필요한 설정
yum install zabbix-java-gateway
cd /opt/tomcat/lib/
wget https://www-us.apache.org/dist/tomcat/tomcat-7/v7.0.96/bin/extras/catalina-jmx-remote.jar
cd /opt/tomcat/bin/
vi setenv.sh
#서버 IP 설정 JMX_OPTS=" -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.authenticate=false \ -Djava.rmi.server.hostname=192.168.80.130 \ -Dcom.sun.management.jmxremote.ssl=false " CATALINA_OPTS=" ${JMX_OPTS} ${CATALINA_OPTS}" |
chmod 755 setenv.sh
./setenv.sh
cd /opt/tomcat/conf/
vi server.xml
<Server port="8005" shutdown="SHUTDOWN"> ... <Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" rmiRegistryPortPlatform="12345" rmiServerPortPlatform="12346"/>
|
cd /etc/zabbix/
vi zabbix_server.conf
systemctl restart zabbix-server.service
systemctl restart tomcat
===============================================
✔ Verify
[root@localhost zabbix]# netstat -nlp | grep 12345 tcp6 0 0 :::12345 :::* LISTEN 32831/java |
[CentOS7] Apache HTTP Server Version 2.4 (Source) (0) | 2019.11.20 |
---|---|
[CentOS7] zabbix 4.0 설치 (0) | 2019.10.31 |
[CentOS6] zabbix 4.0 설치 (0) | 2019.09.16 |
[CentOS7] Apache Tomcat 9 연동 (0) | 2019.07.18 |
[CentOS7] Tomcat 9 설치 (0) | 2019.07.12 |