[omd-devel] [Bug]: jolokia plugin and Template in OMD 1.01.20131106

Stephan Helas stephan.helas at pixelpark.com
Fri Nov 8 12:24:37 CET 2013


Hi.


verwendete Version: OMD Nightly Build: 1.01.20131106


der Agent erzeugt bei der Abfrage auf debian Wheezy mit 
Tomcat6/jolokia1.1.4 eine Fehlermeldung:


# ./mk_jolokia
<<<jolokia_info>>>
8080 tomcat 6.0.35 1.1.4
<<<jolokia_metrics>>>
8080 NonHeapMemoryUsage 34277288
8080 HeapMemoryUsage 28782672
8080 ThreadCount 28
8080 DeamonThreadCount 19
8080 PeakThreadCount 28
8080 TotalStartedThreadCount 29
8080 Uptime 473162
8080,/ activeSessions 14
8080,/ maxActiveSessions -1
8080,/jolokia activeSessions 0
8080,/jolokia maxActiveSessions -1
8080,/manager activeSessions 0
8080,/manager maxActiveSessions -1
ERROR: Invalid response when fetching url 
http://localhost:8080/jolokia/read/*:j2eeType=Servlet,name=default,*/stateName
        Response: 
{"error_type":"java.lang.IllegalArgumentException","error":"java.lang.IllegalArgumentException 
: No matching attributes [stateName] found on MBeans 
[Catalina:j2eeType=Servlet,name=default,WebModule=\/\/localhost\/manager,J2EEApplication=none,J2EEServer=none, 
Catalina:j2eeType=Servlet,name=default,WebModule=\/\/localhost\/,J2EEApplication=none,J2EEServer=none, 
Catalina:j2eeType=Servlet,name=default,WebModule=\/\/localhost\/jolokia,J2EEApplication=none,J2EEServer=none]","status":400,"request":{"mbean":"*:j2eeType=Servlet,name=default,*","attribute":"stateName","type":"read"},"stacktrace":"java.lang.IllegalArgumentException: 
No matching attributes [stateName] found on MBeans 
[Catalina:j2eeType=Servlet,name=default,WebModule=\/\/localhost\/manager,J2EEApplication=none,J2EEServer=none, 
Catalina:j2eeType=Servlet,name=default,WebModule=\/\/localhost\/,J2EEApplication=none,J2EEServer=none, 
Catalina:j2eeType=Servlet,name=default,WebModule=\/\/localhost\/jolokia,J2EEApplication=none,J2EEServer=none]\n\tat 
org.jolokia.handler.ReadHandler.fetchAttributesForMBeanPattern(ReadHandler.java:152)\n\tat 
org.jolokia.handler.ReadHandler.doHandleRequest(ReadHandler.java:117)\n\tat 
org.jolokia.handler.ReadHandler.doHandleRequest(ReadHandler.java:37)\n\tat 
org.jolokia.handler.JsonRequestHandler.handleRequest(JsonRequestHandler.java:160)\n\tat 
org.jolokia.backend.MBeanServerHandler.dispatchRequest(MBeanServerHandler.java:97)\n\tat 
org.jolokia.backend.LocalRequestDispatcher.dispatchRequest(LocalRequestDispatcher.java:91)\n\tat 
org.jolokia.backend.BackendManager.callRequestDispatcher(BackendManager.java:388)\n\tat 
org.jolokia.backend.BackendManager.handleRequest(BackendManager.java:150)\n\tat 
org.jolokia.http.HttpRequestHandler.executeRequest(HttpRequestHandler.java:197)\n\tat 
org.jolokia.http.HttpRequestHandler.handleGetRequest(HttpRequestHandler.java:86)\n\tat 
org.jolokia.http.AgentServlet$3.handleRequest(AgentServlet.java:298)\n\tat 
org.jolokia.http.AgentServlet.handle(AgentServlet.java:229)\n\tat 
org.jolokia.http.AgentServlet.doGet(AgentServlet.java:194)\n\tat 
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)\n\tat 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)\n\tat 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)\n\tat 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\n\tat 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)\n\tat 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)\n\tat 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)\n\tat 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)\n\tat 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)\n\tat 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)\n\tat 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)\n\tat 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)\n\tat 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)\n\tat 
java.lang.Thread.run(Thread.java:722)\n"}
8080,/jolokia requestCount 0
8080,/ requestCount 3
8080,/manager requestCount 0


Nach dem Deaktiviern des Checks läuft der Agent. Beim Anzeigen der 
Performance-Daten kommt kein Graph mehr, sondern eine Fehlermeldung 
(Screenshot anbei). Das alte Template aus 1.00 läuft weiterhin.

Betroffene Datei:
/opt/omd/versions/1.01.20131106/share/check_mk/pnp-templates/check_mk-jolokia_metrics.mem.php

-- 
Viele Grüße
Stephan Helas


More information about the omd-devel mailing list