Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-4458

Make Zabbix Java Gateway logs more human-friendly

XMLWordPrintable

    • Sprint 31, Sprint 32, Sprint 38
    • 1

      Please make Zabbix Java Gateway logs more human-friendly(debug level: info) because right now Zabbix Java Gateway provides a lot of unnecessary information making it hard to troubleshoot.

      Examples:
      invalid username and password nullness combination

      2018-03-29 05:42:46.551 [pool-1-thread-3] WARN  com.zabbix.gateway.SocketProcessor - error processing request
      com.zabbix.gateway.ZabbixException: java.lang.IllegalArgumentException: invalid username and password nullness combination
              at com.zabbix.gateway.JMXItemChecker.<init>(JMXItemChecker.java:71) ~[zabbix-java-gateway-4.0.0alpha3.jar:na]
              at com.zabbix.gateway.SocketProcessor.run(SocketProcessor.java:58) ~[zabbix-java-gateway-4.0.0alpha3.jar:na]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_161]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_161]
              at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161]
      Caused by: java.lang.IllegalArgumentException: invalid username and password nullness combination
              at com.zabbix.gateway.JMXItemChecker.<init>(JMXItemChecker.java:67) ~[zabbix-java-gateway-4.0.0alpha3.jar:na]
              ... 4 common frames omitted
      

      Connection refused

      2018-03-29 05:52:21.924 [pool-1-thread-1] WARN  com.zabbix.gateway.SocketProcessor - error processing request
      com.zabbix.gateway.ZabbixException: java.net.ConnectException: Connection refused
              at com.zabbix.gateway.JMXItemChecker.getValues(JMXItemChecker.java:98) ~[zabbix-java-gateway-4.0.0alpha3.jar:na]
              at com.zabbix.gateway.SocketProcessor.run(SocketProcessor.java:63) ~[zabbix-java-gateway-4.0.0alpha3.jar:na]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_161]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_161]
              at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161]
      Caused by: java.net.ConnectException: Connection refused
              at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_161]
              at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_161]
              at org.xnio.nio.WorkerThread$ConnectHandle.handleReady(WorkerThread.java:327) ~[jboss-client.jar:11.0.0.Final]
              at org.xnio.nio.WorkerThread.run(WorkerThread.java:591) ~[jboss-client.jar:11.0.0.Final]
              at ...asynchronous invocation...(Unknown Source) ~[na:na]
              at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:570) ~[jboss-client.jar:11.0.0.Final]
              at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:532) ~[jboss-client.jar:11.0.0.Final]
              at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:520) ~[jboss-client.jar:11.0.0.Final]
              at org.jboss.remotingjmx.RemotingConnector.internalRemotingConnect(RemotingConnector.java:268) ~[jboss-client.jar:11.0.0.Final]
              at org.jboss.remotingjmx.RemotingConnector.internalConnect(RemotingConnector.java:156) ~[jboss-client.jar:11.0.0.Final]
              at org.jboss.remotingjmx.RemotingConnector.connect(RemotingConnector.java:103) ~[jboss-client.jar:11.0.0.Final]
              at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270) ~[na:1.8.0_161]
              at com.zabbix.gateway.ZabbixJMXConnectorFactory$1.run(ZabbixJMXConnectorFactory.java:76) ~[zabbix-java-gateway-4.0.0alpha3.jar:na]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_161]
              at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_161]
              ... 3 common frames omitted
       

            vjaceslavs Vjaceslavs Bogdanovs
            aleksejs.petrovs Aleksejs Petrovs
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: