zoukankan      html  css  js  c++  java
  • zabbix 通过gateway 获取远程主机的JMX信息

    DBHost=192.168.32.55
    DBName= zabbix
    DBUser=zabbixuser
    DBPassword=zabbixpass
    StartTrappers=20
    MaxHousekeeperDelete=5000       
    CacheSize=1024M
    StartDBSyncers=8
    TrendCacheSize=128M
    HistoryTextCacheSize=512M
    AlertScriptsPath=/etc/zabbix/alertscripts
    LogSlowQueries=1000
    LogFile=/tmp/zabbix_server.log
    ValueCacheSize=128M
    JavaGateway=127.0.0.1
    JavaGatewayPort=10052
    StartJavaPollers=5
    
    
    
    zabbix 里提供了专门针对JMX
    
    注意,zabbix-server 的java poller连接zabbix-java-gateway,由zabbix-java-gateway 去获取远程的JMX 信息。
    
    
    
    zabbix:/root/zabbix-2.2.2/src/zabbix_java# netstat -nap | grep 5566
    tcp        0      0 ::ffff:192.168.32.55:40700  ::ffff:121.40.118.102:5566  TIME_WAIT   -                   
    tcp        0      0 ::ffff:192.168.32.55:33453  ::ffff:121.40.238.78:5566   ESTABLISHED 30862/java    --api服务器
    
       
    
    
    tomcat 机器上启用5566:
    
    
    JAVA_OPTS='-Xms8192m -Xmx8192m'
    export JAVA_HOME=/usr/java/jdk1.8.0_20
    CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5566"
    
    
    

  • 相关阅读:
    Spring MVC源码——Root WebApplicationContext
    ThreadPoolExecutor 源码阅读
    Spark RDD
    HashMap 源码阅读
    不定期更新的IDEA功能整理
    Jvm内存区域和GC
    装饰模式和Java IO
    spring websocket集群问题的简单记录
    Kotlin in Action 笔记
    WebSphere部署Spring Boot
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199265.html
Copyright © 2011-2022 走看看