Zabbix Java Gateway / JMX

zabbix-java-gateway 설치

# Zabbix Server 설치된 곳에서 설치
> yum install -y zabbix-java-gateway

catalina-jmx-remote.jar 설치

# 모니터링 대상 호스트에서 설치
# TOMCAT 8
# TOMCAT_HOME\lib 폴더
> wget http://apache.mirror.cdnetworks.com/tomcat/tomcat-8/v8.0.49/bin/extras/catalina-jmx-remote.jar

bin/catalina.sh 수정

# TOMCAT_HOME\bin\catalina.sh
# JAVA_OPTS 하단에 추가
 
JAVA_OPTS="$JAVA_OPTS
    -Dcom.sun.management.jmxremote \
    -Djava.rmi.server.hostname=HOST_SERVER_IP \
    -Dcom.sun.management.jmxremote.authenticate=false \
    -Dcom.sun.management.jmxremote.ssl=false
  "

conf/server.xml 수정

<Server port="8005" shutdown="SHUTDOWN">
...
  <Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener"
    rmiRegistryPortPlatform="12345" rmiServerPortPlatform="12346"/>
...
</Server>

방화벽 설정

# CentOS 7
firewall-cmd --permanent --add-port=12345/tcp
firewall-cmd --permanent --add-port=12346/tcp
firewall-cmd --reload
systemctl restart firewalld
 
# CentOS 6
vi /etc/sysconfig/iptables
 
-A INPUT -p tcp -m tcp --dport 12345 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 12346 -j ACCEPT
# 포트 변경시 그에 맞춰 변경
 
service iptables restart

'프로그래밍 > Monitoring' 카테고리의 다른 글

PMM Install guide (PMM 인스톨 가이드)  (846) 2018.07.05
Zabbix Slack 연동  (1038) 2018.02.22
sendmail - gmail relay 설정  (846) 2018.01.31
sendmail 설치  (859) 2018.01.31
Zabbix Agent Install guide, 자빅스 에이전트 인스톨 가이드  (1067) 2018.01.31

+ Recent posts