Ad Widget

Collapse

Multiple tomcat discovery and monitoring on a single server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • imrg
    Junior Member
    • Apr 2016
    • 1

    #1

    Multiple tomcat discovery and monitoring on a single server

    Hello

    I'ld like to know if what I'm trying to do is feasible.

    I've multiple tomcats on a server. Discovering them is the easy part, here's the result of a discovery script (with indentation for readability)

    Code:
    {
        'data': [
            {'{#TOMCAT_AJP_PORT}': '53106', '{#TOMCAT_HTTP_PORT}': '52060', '{#TOMCAT_JMX_PORT}': '52360', '{#TOMCAT_NAME}': 'tomcat6'},
            {'{#TOMCAT_AJP_PORT}': '53105', '{#TOMCAT_HTTP_PORT}': '52050', '{#TOMCAT_JMX_PORT}': '52350', '{#TOMCAT_NAME}': 'tomcat5'},
            {'{#TOMCAT_AJP_PORT}': '53104', '{#TOMCAT_HTTP_PORT}': '52040', '{#TOMCAT_JMX_PORT}': '52340', '{#TOMCAT_NAME}': 'tomcat4'},
            {'{#TOMCAT_AJP_PORT}': '53103', '{#TOMCAT_HTTP_PORT}': '52030', '{#TOMCAT_JMX_PORT}': '52330', '{#TOMCAT_NAME}': 'tomcat3'},
            {'{#TOMCAT_AJP_PORT}': '53102', '{#TOMCAT_HTTP_PORT}': '52020', '{#TOMCAT_JMX_PORT}': '52320', '{#TOMCAT_NAME}': 'tomcat2'},
            {'{#TOMCAT_AJP_PORT}': '53101', '{#TOMCAT_HTTP_PORT}': '52100', '{#TOMCAT_JMX_PORT}': '52200', '{#TOMCAT_NAME}': 'tomcat1'},
        ],
    }
    Ok, one userparam later I brought this intel to zabbix server.

    First problem, can I create or modify a host, adding a JMI interface / JMX port above ? peatb told me on IRC he saw no "add interface" operation...

    But for my test, I already got an host with a JMI interface / tomcat, so went a step ahead and I swa another problem : I see no "interface id" or alike field in item_prototype to map a newly created item to the proper interface.
    Which end up with Zabbix giving the red cross as I got more than one item with the same key. Which is the big idea, same kind of data for all available tomcats...

    So anyone can give me an hint or a brand new idea to do this ?

    I'm a beginner regarding zabbix, on the topic because I know the tomcat arch we're trying to monitor. Maybe I should look into network discovery or... ?

    Thanks & regards
Working...