Ad Widget

Collapse

Zabbix_proxy cannnot send data on java_gateway

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mick
    Member
    • Jan 2014
    • 31

    #1

    Zabbix_proxy cannnot send data on java_gateway

    Hello, I have some problem with monitoring JBoos with JMX interface. This problem I resolve with recompile zabbix_java_gateway on file (JMXItemChecker.java)

    Old:
    =======

    String conn = request.getString(JSON_TAG_CONN);<br
    int port = request.getInt(JSON_TAG_PORT);<br

    url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + conn + ":" + port + "/jmxrmi");<br
    jmxc = null;<br
    mbsc = null;<br

    New:
    =========

    String conn = request.getString(JSON_TAG_CONN);<br
    int port = request.getInt(JSON_TAG_PORT);<br


    Integer remoting = new Integer("7777");<br
    int retval = remoting.compareTo(port);<br

    if (retval == 0)<br
    {<br
    url = new JMXServiceURL("service:jmx:remoting-jmx://" + conn + ":" + port);<br
    }<br
    else
    {<br
    url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + conn + ":" + port + "/jmxrmi");<br
    }<br
    jmxc = null;<br
    mbsc = null;<br

    I compile this like that

    ./configure --enable-server --enable-agent --with-mysql --with-libcurl --with-libxml2 --enable-java

    And added the necessary libraries:

    jboss-as-remoting-7.2.1.Final-redhat-10.jar
    jboss-logging-3.1.2.GA-redhat-1.jar
    jboss-logmanager-1.4.3.Final-redhat-1.jar
    jboss-marshalling-1.3.18.GA-redhat-1.jar
    jboss-marshalling-river-1.3.18.GA-redhat-1.jar
    jboss-remoting-3.2.16.GA-redhat-1.jar
    jboss-sasl-1.0.3.Final-redhat-1.jar
    jcl-over-slf4j-1.7.2-redhat-1.jar
    jul-to-slf4j-stub-1.0.1.Final-redhat-1.jar
    log4j-jboss-logmanager-1.0.2.Final-redhat-1.jar
    remoting-jmx-1.1.0.Final-redhat-1.jar
    slf4j-api-1.6.1.jar
    slf4j-api-1.7.2-redhat-1.jar
    slf4j-ext-1.7.2-redhat-1.jar
    xnio-api-3.0.7.GA-redhat-1.jar
    xnio-nio-3.0.7.GA-redhat-1.jar

    Now when I try monitor JBoss with zabbix proxy, data is not sent to the server Zabbix. The logs zabbix_java_gateway can see that the data are retrieved from the JBoss correctly, while the logs zabbix_proxy there is no trace to be executed any traffic between the proxy and the server zabbix. Of course zabix proxy there is on different host.

    Please give me some advice what's wrong?

    Regards
    Mick
Working...