{"id":148,"date":"2012-09-29T22:12:42","date_gmt":"2012-09-29T20:12:42","guid":{"rendered":"http:\/\/blog.johannes-beck.name\/?p=148"},"modified":"2012-11-23T18:36:08","modified_gmt":"2012-11-23T17:36:08","slug":"monitoring-jboss-as-7-with-munin","status":"publish","type":"post","link":"https:\/\/blog.johannes-beck.name\/?p=148","title":{"rendered":"Monitoring JBoss AS 7 with Munin"},"content":{"rendered":"<p>Having my JBoss AS 7 up and running, I like to establish a monitoring for the application server. My favorite tool for monitoring is <a href=\"http:\/\/munin-monitoring.org\">Munin<\/a>, since it is quite easy to set up. Assuming you have already installed Munin, here are the steps which are needed to add JBoss AS 7.<\/p>\n<p>First get the munin plugin for JBoss AS 7 from <a href=\"https:\/\/raw.github.com\/lukaf\/munin-plugins\/master\/jboss7_\">https:\/\/raw.github.com\/lukaf\/munin-plugins\/master\/jboss7_<\/a>. Copy <i>jboss7_<\/i> to <i>\/usr\/share\/munin\/plugins<\/i><\/p>\n<p>Edit <i>\/etc\/munin\/plugin-conf.d\/munin-node<\/i> and add<br \/>\n<code><br \/>\n[jboss7_*]<br \/>\nenv.jboss_username USERNAME<br \/>\nenv.jboss_password PASSWORD<br \/>\nenv.datasource data-source<br \/>\n<\/code><\/p>\n<p>where USERNAME and PASSWORD are the configured values you have in <i>mgmt-users.properties<\/i>. Depending which datasource you have configured in the application container, the value for the datasource has to chosen. You can check this with<\/p>\n<p><code><br \/>\nwget http:\/\/USERNAME:PASSWORD@127.0.0.1:9990\/management\/subsystem\/datasources?include-runtime=true&recursive=true<br \/>\n<\/code><\/p>\n<p>Next you need to create the symlinks in <i>\/etc\/munin\/plugins<\/i>:<br \/>\n<code><br \/>\nln -s \/usr\/share\/munin\/plugins\/jboss7_ jboss7_mem<br \/>\nln -s \/usr\/share\/munin\/plugins\/jboss7_ jboss7_web<br \/>\nln -s \/usr\/share\/munin\/plugins\/jboss7_ jboss7_ds<br \/>\n<\/code><\/p>\n<p>After the configuration is complete you can check with <i>munin-run jboss7_mem<\/i> that all is correct and restart the munin-node service.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having my JBoss AS 7 up and running, I like to establish a monitoring for the application server. My favorite tool for monitoring is Munin, since it is quite easy to set up. Assuming you have already installed Munin, here are the steps which are needed to add JBoss AS 7. First get the munin [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[61,17,22,21],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry","category-software-development","tag-java","tag-jboss-as-7","tag-monitoring","tag-munin"],"_links":{"self":[{"href":"https:\/\/blog.johannes-beck.name\/index.php?rest_route=\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.johannes-beck.name\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.johannes-beck.name\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.johannes-beck.name\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.johannes-beck.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":9,"href":"https:\/\/blog.johannes-beck.name\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/blog.johannes-beck.name\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions\/185"}],"wp:attachment":[{"href":"https:\/\/blog.johannes-beck.name\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.johannes-beck.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.johannes-beck.name\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}