Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-7923

Zabbix Java Gateway 2.2.1 lost JMX credentials

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • None
    • 2.2.1
    • Java gateway (J)

      From a few days in Zabbix 2.2.1 I noticed a strange error. Zabbix Java Gateway lost credentials. It happens randomly to a group of hosts.

      Log file:

      2014-03-10 12:36:46.268 [pool-1-thread-2] DEBUG c.z.gateway.BinaryProtocolSpeaker - received the following data in request:

      { "request":"java gateway jmx", "conn":"111.111.111.111", "port":1234, "keys":["jmx[\"java.lang:type=MemoryPool,name=PS Old Gen\",\"Usage.used\"]"]}

      2014-03-10 12:36:46.268 [pool-1-thread-2] DEBUG com.zabbix.gateway.SocketProcessor - dispatched request to class com.zabbix.gateway.JMXItemChecker
      2014-03-10 12:36:46.269 [pool-1-thread-2] DEBUG com.zabbix.gateway.JMXItemChecker - connecting to JMX agent at service:jmx:rmi:///jndi/rmi://111.111.111.111:1234/jmxrmi
      2014-03-10 12:36:46.287 [pool-1-thread-2] WARN com.zabbix.gateway.SocketProcessor - error processing request
      com.zabbix.gateway.ZabbixException: java.lang.SecurityException: Authentication failed! Credentials required
      at com.zabbix.gateway.JMXItemChecker.getValues(JMXItemChecker.java:100) ~[zabbix-java-gateway-2.0.9.jar:na]
      at com.zabbix.gateway.SocketProcessor.run(SocketProcessor.java:63) ~[zabbix-java-gateway-2.0.9.jar:na]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156) [na:1.7.0]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626) [na:1.7.0]
      at java.lang.Thread.run(Thread.java:804) [na:1.7.0]
      Caused by: java.lang.SecurityException: Authentication failed! Credentials required
      at com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure(Unknown Source) ~[na:1.7.0]
      at com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticate(Unknown Source) ~[na:1.7.0]
      at javax.management.remote.rmi.RMIServerImpl.doNewClient(Unknown Source) ~[na:1.7.0]
      at javax.management.remote.rmi.RMIServerImpl.newClient(Unknown Source) ~[na:1.7.0]
      at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) ~[na:na]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0]
      at java.lang.reflect.Method.invoke(Unknown Source) ~[na:2.6 (10-13-2013)]
      at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) ~[na:1.7.0]
      at sun.rmi.transport.Transport$1.run(Unknown Source) ~[na:1.7.0]
      at sun.rmi.transport.Transport$1.run(Unknown Source) ~[na:1.7.0]
      at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0]
      at sun.rmi.transport.Transport.serviceCall(Unknown Source) ~[na:1.7.0]
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) ~[na:1.7.0]
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source) ~[na:1.7.0]
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) ~[na:1.7.0]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0]
      at java.lang.Thread.run(Unknown Source) [na:1.7.0]
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:287) ~[na:1.7.0]
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:264) ~[na:1.7.0]
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:173) ~[na:1.7.0]
      at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source) ~[na:1.7.0]
      at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2403) ~[na:1.7.0]
      at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:3
      at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFact
      at com.zabbix.gateway.JMXItemChecker.getValues(JMXItemChecker.java:92)

      Hosts are equipped with the correct username and password, if anyone has met with such a problem?

      Regards
      Mick

            Unassigned Unassigned
            spy86 Mick Michalski
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: