[collectd-changes] collectd, the system statistics collection daemon: Changes to 'ja/tomcat'

Florian Forster octo at verplant.org
Thu Apr 3 15:58:59 CEST 2008


New branch 'ja/tomcat' available with the following commits:
commit 25d82ba439ce6b8861bd285441557045332d6d12
Author: Florian Forster <octo at huhu.verplant.org>
Date:   Wed Dec 26 16:35:53 2007 +0100

    collectd.conf(5): Added a paragraph about the tomcat plugin.

commit 188fb7293118bc484e0318768ff8a21defef0731
Author: Justo Alonso <justo.alonso at gmail.com>
Date:   Wed Dec 26 15:38:13 2007 +0100

    tomcat plugin: Fix two little problems.
    
    Signed-off-by: Florian Forster <octo at huhu.verplant.org>

commit 17fc4a0ab0261ee87edef62ab628fee7225818d7
Author: Florian Forster <octo at huhu.verplant.org>
Date:   Wed Dec 19 13:34:39 2007 +0100

    tomcat plugin: Wrapped long lines and improved the configuration.

commit 4f1403dabbf21fce6861add9d24fb47ef98f018f
Author: Florian Forster <octo at huhu.verplant.org>
Date:   Wed Dec 19 13:10:12 2007 +0100

    tomcat plugin: Streamlined the XML parsing a bit.

commit d2ce6d3211ad08c46c3158c23d01624c71b50368
Author: Florian Forster <octo at huhu.verplant.org>
Date:   Wed Dec 19 11:25:05 2007 +0100

    Build system: Added the new tomcat plugin.

commit 3959a928e0ca2f04f2c9300f91488afb860ed723
Author: Justo Alonso <justo.alonso at gmail.com>
Date:   Wed Dec 19 10:45:59 2007 +0100

    tomcat plugin: Added a new plugin which collects statistics for Tomcat servers.
    
    I attach a source for a tomcat stats plugin. This plugin get an url and parse
    the results with libxml2 (need libcurl and libxml2). Collects stats for memory
    (max, free, total), garbage collectors (times and time), threads by connector
    (max, count, idle), request by connector (requests, errors, bytes) and workers
    state by connector. In the configuration, you have "instance", "url", "user",
    "password", "cacert". You must define first instance, and the other options is
    related to it. You can define one or more instances (if you have 2 tomcats on
    the same machine). P.E
    
      <plugin tomcat>
        instance "blog"
        url "http://localhost:8080/collectd/stats"
        instance "web"
        url "http://localhost:9090/collect/stats"
        user "stats"
        password "**************"
      </plugin>
    
    this define 2 instances on the plugin, "blog" and "web", blog don't have
    user/password and "web" have it.
    
    On the tomcat side, you need install a collectd servlet. This servlet get stats
    from mbeans (as manager/status) and the result is a xml with the info (please
    consider security needs of your platform. To me RemoteAddrValve for localhost
    is ok). This servlet is a modification of manager/status, so it's under Apache
    license.
    
    Signed-off-by: Florian Forster <octo at huhu.verplant.org>




More information about the collectd-changes mailing list