1. 程式人生 > >jconsole遠程監控logstash agent

jconsole遠程監控logstash agent

tab bsp nbsp -i col 文件 template back alt

在logstash的jvm.options文件末尾添加:

-Dcom.sun.management.jmxremote.port=9999 //指定jmx端口
-Dcom.sun.management.jmxremote.ssl=false // no ssl
-Dcom.sun.management.jmxremote.authenticate=false // no auth

添加用戶:

cd /usr/local/jdk/jre/lib/management

cp jmxremote.password.template jmxremote.password

修改配置文件jmxremote.password 將最後兩行,註釋去掉

monitorRole QED

controlRole R&D

修改文件 jmxremote.password, jmxremote.access 權限

chmod 600 jmxremote.password, jmxremote.access

JConsole remote Process

技術分享

技術分享

技術分享

如果遇到connection refuse,先ping一下IP。再檢查防火墻service iptables status, 選擇關閉防火墻。

如果登錄之後遇到鏈接不上remote server, 登錄到server上運行hostname -i , 如果返回127.0.0.1,修改/etc/hosts 設置本機IP.

jconsole遠程監控logstash agent