Ad Widget

Collapse

Windows TomCat мониторинг Zabbix | Windows TomCat monitoring Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ManMinas
    Junior Member
    • Jun 2020
    • 5

    #1

    Windows TomCat мониторинг Zabbix | Windows TomCat monitoring Zabbix

    Добрый день. Тема мониторинга TomCat на Windows не так актуальна, может быть поэтому не нашёл решения.
    На данный момент поставлен JavaGate непосредственно на Zabbix, в файлах:
    zabbix_server.conf задано значение JavaGateway=127.0.0.1
    catalina.sh:
    CATALINA_OPTS="$CATALINA_OPTS \
    -Dcom.sun.management.jmxremote.password.file=C:\Pro gram Files\Apache Software Foundation\Tomcat 7.0/conf/remote.users \
    -Dcom.sun.management.jmxremote.access.file=C:\Progr am Files\Apache Software Foundation\Tomcat 7.0/conf/remote.acl \
    -Dcom.sun.management.jmxremote \
    -Dcom.sun.management.jmxremote.port=12345 \
    -Dcom.sun.management.jmxremote.authenticate=false \
    -Dcom.sun.management.jmxremote.ssl=false \
    -Djava.rmi.server.hostname=127.0.0.1"



    remote.users: Admin Admin

    remote.acl: Admin readwrite

    Так же были попытки без последних 2х файлов и их настройки, но безрезультатно.

    Но в дашборде выпаливается сообщение на узле сети: В соединении отказано (Connection refused): service:jmx:rmi:///jndi/rmi://IP:12345/jmxrmi


    |




    Good day. The topic of monitoring TomCat on Windows is not so relevant, maybe that's why I could not find a solution.
    Currently JavaGate is installed directly on Zabbix, in the files:
    zabbix_server.conf given the value JavaGateway = 127.0.0.1
    catalina.sh:
    ATALINA_OPTS = "$ CATALINA_OPTS \
    -Dcom.sun.management.jmxremote.password.file = C: \ Pro gram Files \ Apache Software Foundation \ Tomcat 7.0 / conf / remote.users \
    -Dcom.sun.management.jmxremote.access.file = C: \ Progr am Files \ Apache Software Foundation \ Tomcat 7.0 / conf / remote.acl \
    -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port = 12345 \
    -Dcom.sun.management.jmxremote.authenticate = false \ -Dcom.sun.management.jmxremote.ssl = false \
    -Djava.rmi.server.hostname = 127.0.0.1 "
    remote.users: admin admin remote.acl: admin readwrite
    There have also been attempts without the last 2 files and their settings, but to no avail.


    But in the dashboard a message pops up on the host: Connection refused: service: jmx: rmi: /// jndi / rmi: // IP: 12345 / jmxrmi
    Last edited by ManMinas; 08-07-2020, 15:44.
  • ManMinas
    Junior Member
    • Jun 2020
    • 5

    #2
    Забыл отписаться. Для данного действия не требуется прописывать что-либо в файлы, просто добавьте:
    (Пример)
    -Dcom.sun.management.jmxremote.port=12345
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.ssl=false

    Непосредственно в Tomcat7w (ветка: Java)


    Forgot to unsubscribe. This action does not require writing anything to the files, just add:
    (Example)
    -Dcom.sun.management.jmxremote.port = 12345
    -Dcom.sun.management.jmxremote.authenticate = false
    -Dcom.sun.management.jmxremote.ssl = false

    Directly in Tomcat7w (branch: Java)

    Comment

    Working...