tag:blogger.com,1999:blog-60800822024-03-19T04:14:33.027+01:00Some things to rememberRandom thoughts about random things.Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.comBlogger37125tag:blogger.com,1999:blog-6080082.post-36778844225090421592014-12-05T11:26:00.001+01:002014-12-05T11:26:45.078+01:00RHQ 4.13 released<img src="https://docs.jboss.org/author/download/attachments/30901932/RHQ?version=2&modificationDate=1257539985000 align="right"/><p>I am very pleased to announce the release of <strong>RHQ 4.13</strong> as an<br />early gift from St. Nicholas :)</p><a href="http://rhq.jboss.org/"><img src="http://rhq-project.github.io/rhq/img/screen2.png"/ width=600><br/>Screenshot of the RHQ UI showing some charts</a><p>This release contains a lot of bug fixes and smaller improvements, as well as some new features:</p><ul><li>Alerts have a new status 'recovered', that can be filtered upon</li><li>The UI allows to hide elements that are not needed on a per user basis</li><li>The as7/WildFly plugin now supports runtime queues and topic subscribers</li><li>Further improvements in the Storage Nodes</li></ul><p>As always RHQ is available for download in form of a zip archive. If you want to try out RHQ without too much setup, you can also use a pre-created Docker image<br />from <a href="https://registry.hub.docker.com/u/rhqproject/rhq-nodb/">https://registry.hub.docker.com/u/rhqproject/rhq-nodb/</a> (the link contains setup information).</p><p>Please consult the <a href="https://docs.jboss.org/author/display/RHQ/Release+Notes+4.13">release notes</a> for further details and a download link.</p><p>Maven artifacts will soon be available on Maven Central.</p><p>Special <strong>thanks</strong> goes to</p><ul><li>Alan Santos</li><li>Andreas Veithen</li><li>Elias Ross</li><li>Jérémie Lagarde</li></ul><p>for their code contributions for this release.</p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-39710912112740103792014-05-07T16:53:00.001+02:002014-05-07T16:53:39.703+02:00RHQ 4.11 released<p><img src="https://docs.jboss.org/author/download/attachments/30901932/RHQ?version=2&modificationDate=1257539985000 align="right"/><br />I am proud to announce the immediate availability of <strong>RHQ 4.11</strong>.</p><p>As always this release contains new features and bug fixes.</p><p>Notable changes are:<br /><ul><li>Plugins can now define plugin specific DynaGroup expressions, which can even be auto-activated</li><li>Further agent footprint reduction for jmx-clients (especially if the agent runs on jdk 1.6)</li><li>Much improved agent install via ssh from the RHQ UI.</li><li>Support for Oracle 12 as backend database</li><li>New login screen that follows patternfly.org</li></ul></p><p>As always RHQ is available for download in form of a zip archive. If you want to try out RHQ without too much setup, you can also use a pre-created Docker image<br />from <a href="https://index.docker.io/u/gkhachik/rhq-fedora.20/">https://index.docker.io/u/gkhachik/rhq-fedora.20/</a> (the link contains setup information).</p><p>Please consult the <a href="https://docs.jboss.org/author/display/RHQ/Release+Notes+4.11">release notes</a> for further details and a download link.</p><p>If you only want to have a quick look, you can also consult a<br /><a href="http://ec2-54-73-79-228.eu-west-1.compute.amazonaws.com:17080/coregui/login">running RHQ 4.11 instance</a> that we have set up. User/Pass are guest / rhqguest</p><p>Special thanks goes to</p><p><ul><li>Elias Ross</li><li>Michael Burman</li></ul><br />for their code contributions for this release.</p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-35678433560732680022013-09-11T18:17:00.001+02:002013-09-11T18:17:30.829+02:00RHQ 4.9 released<div class="paragraph"><p>It is a pleasure for me to announce on behalf of the RHQ development team the immediate availability of RHQ 4.9</p></div><div class="sect1"><h2 id="_features">Features</h2><div class="sectionbody"><div class="paragraph"><p>Some of the new features since <a href="http://pilhuhn.blogspot.com/2013/06/rhq-48-released.html">RHQ 4.8</a> are:</p></div><div class="ulist"><ul><li><p>Metric charts have been further improved</p></li><li><p>Cassandra database for Metrics now supports multiple nodes</p></li><li><p>More <a href="https://docs.jboss.org/author/display/RHQ/Security+Model+for+Bundle+Provisioning">detailed bundle permissions</a></p></li><li><p>Layered plugins can now get discovery results and further modify them <a href="https://docs.jboss.org/author/display/RHQ/Discovery+Callbacks">Discovery Callbacks on the Wiki</a></p></li><li><p><a href="http://jayshaughnessy.blogspot.de/2013/09/rhq-group-definitions-dynagroup.html">Enhancements to DynaGroups</a></p></li></ul></div><div class="paragraph"><p>Be sure to read the <a href="https://docs.jboss.org/author/display/RHQ/Release+Notes+4.9.0">release notes</a> and the installation documents.</p></div></div></div><div class="sect1"><h2 id="_note">Note</h2><div class="sectionbody"><div class="paragraph"><p>For security reasons we have made changes to the installation in the sense that there is no more default password for the <code>rhqadmin</code> super user. Also the default bind address of <code>0.0.0.0</code> has been removed. You need to set them before starting the installation.</p></div><div class="paragraph"><p>If you are upgrading from RHQ 4.8 you need to <a href="http://johnsanda.blogspot.de/2013/09/upgrading-to-rhq-49.html">run a script to remove the native components from Cassandra</a><strong>before the upgrade</strong>. Otherwise RHQ 4.9 will fail to start.</p></div></div></div><div class="sect1"><h2 id="_thanks">Thanks</h2><div class="sectionbody"><div class="paragraph"><p>Special thanks goes to</p></div><div class="ulist"><ul><li><p>Elias Ross</p></li><li><p>Jérémie Lagarde</p></li><li><p>Michael Burman</p></li></ul></div><div class="paragraph"><p>for their code contributions for this release and to Stian Lund for his repeated testing of the new graphs implementation.</p></div></div></div><div class="sect1"><h2 id="_downloads">Downloads</h2><div class="sectionbody"><div class="paragraph"><p>As usual you can download the release from the <a href="https://sourceforge.net/projects/rhq/files/rhq/rhq-4.9.0/">RHQ-project downloads on SourceForge</a></p></div></div></div><br /><br /><br />Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com1tag:blogger.com,1999:blog-6080082.post-82775985952776079162013-06-25T14:52:00.001+02:002013-06-25T16:24:05.909+02:00RHQ 4.8 released<img src="https://docs.jboss.org/author/download/attachments/30901932/RHQ?version=2&modificationDate=1257539985000 align="right"/><br /><br />RHQ 4.8 has been released with another batch of new features and bug fixes.<br />Major changes since <a href="http://pilhuhn.blogspot.com/2013/05/rhq-47-released.html">RHQ 4.7</a> are <br /><ul><li>New storage backend for metrics based on Cassandra:<br/><br />Numerical metric data is now stored in a Cassandra cluster to improve scalability for larger deployments with many metrics.<br /><div style="text-align:center;"><img src="http://lh5.ggpht.com/-gUSfosNNIYY/UclWbKOT0cI/AAAAAAAABHk/PPdRZ-a6Yns/Architecture_overview_cassandra_color.png?imgmax=800" alt="Architecture overview cassandra color" border="0" width="400" /></div><br />The intention is to move more mass data into Cassandra into the future (events, calltime data etc). We just had to start somewhere. If you are upgrading from an earlier version of RHQ, a utility to migrate metrics gathered is provided.<br /></li><li>More improvements to the new charts<br /><div style="text-align:center;"><img src="http://lh6.ggpht.com/-ejKFxD_FY5U/Uclbl7n9wwI/AAAAAAAABH0/6RVaZj9t-GY/Bildschirmfoto%2525202013-06-25%252520um%25252010.57.07.png?imgmax=800" alt="Bildschirmfoto 2013 06 25 um 10 57 07" border="0" width="400" /></div><br />The selection of the time period has been changed:<br /><ul><li>There is now a button bar at the top to quickly select the timeframe to display</li><li>If you hover with the mouse between two "bars" you will see a little crosshair, that starts the<br />selection mode - drag it over a series of bars to zoom in. Mike Thompson has created a <a href="https://www.youtube.com/watch?v=i0CfQIjsy50">YouTube video that</a> explains this.<br /></ul></li><li>New installation process:</br><br />With the above change of the backend storage, we have changed the installation process again to reduce the complexity to install RHQ. The new process basically goes:<br /><ul><li>unzip rhq-server-4.8.0.zip</li><li>cd rhq-server-4.8.0</li><li>edit bin/rhq-server.properties</li><li>bin/rhqctl install (--storage-data-root-dir=<some directory></li></ul><br />For upgrades the process is very similar: you run unzip the new binaries and then run <code>bin/rhqctl upgrade --from-server-dir=<old server></code><br />Please consult the <a href="https://docs.jboss.org/author/display/RHQ/Installing+the+Server">installation and upgrade guides</a> before starting.<br /></li><li>REST-api is now (mostly) stable and supports paging on (some) resources. The <a href="https://sourceforge.net/projects/rhq/files/rhq/rhq-4.8.0/">documentation is also up on SourceForge</a> and the <a href="https://github.com/rhq-project/samples">rhq-samples project</a> has a special section on <a href="https://github.com/rhq-project/samples/tree/master/rest-api">examples for the REST-api</a>.</li></ul><br /><br />As always there have been many more smaller improvements and bug fixes - many thanks to everyone who has contributed via bug report, comments, discussions on #rhq and/or via code contributions.<br /><br />Please check the <a href="https://docs.jboss.org/author/display/RHQ/Release+Notes+4.8.0">full release notes</a> for details. They also contain a list of commits.<br /><br />RHQ is an extensible tool to monitory your infrastructure of machines and applications, alert operators on user defined conditions, configure resources and run operations on them from a central web-based UI. Other ways of communicating with RHQ include a command line interface and a REST-api.<br /><br />You can <a href="https://sourceforge.net/projects/rhq/files/rhq/rhq-4.8.0/">download the release from source forge</a>.<p/><br />As mentioned above, the old installer is gone, so make sure to read <br />the wiki document describing <a href="https://docs.jboss.org/author/display/RHQ/Installing+the+Server">how to use the new installer</a>.<br /><br />Maven artifacts are available from the <a href="https://repository.jboss.org/nexus/content/groups/public-jboss/org/rhq/">JBoss Nexus repository</a> and should also be available from Central.<br /><br /><br />Please give us feedback, be it in <a href="https://bugzilla.redhat.com/enter_bug.cgi?product=RHQ%20Project">Bugzilla</a>, <a href="https://fedorahosted.org/mailman/listinfo/rhq-users">Mailing lists</a> or <a href="http://community.jboss.org/en/rhq">the forum</a>. Or just join us on IRC at <a href="irc://irc.freenode.net/#rhq">irc.freenode.net/#rhq</a>.<br /><br />And as I have been asked recently: yes we are happy to accept code contributions -- be it for the RHQ core, as well as plugins or for the samples project. Also if you e.g. have written a plugin, share a pointer to it, which we can then share on the wiki etc.<br />Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-40606372415018546842013-03-13T14:17:00.001+01:002013-03-13T14:17:48.479+01:00Awesome new graphs in RHQ - based on d3.js<img src="https://docs.jboss.org/author/download/attachments/30901932/RHQ?version=2&modificationDate=1257539985000 align="right"/><br /><br />Mike Thompson has yesterday presented the latest and greatest version of the new graphs for RHQ in a <a href="https://www.youtube.com/watch?v=-H2E2Wc04Do&feature=g-user-u">video on YouTube</a>. Shortly after he has committed the results of his huge work into RHQ master branch.<br /><p/><br />While this work is not yet finished, it is the result of the work started by <a href="http://www.google-melange.com/gsoc/project/google/gsoc2012/kruskod/11001">Denis Krusko</a> in last years <a href="http://pilhuhn.blogspot.com/2012/04/rhq-participates-in-this-years-google.html">Google Summer of Code</a>. At the moment both the old and new graphs are can be looked at in the UI, so that you can compare them and potentially report non-matches.<br /><p/><br />Here are some screenshots to foster your appetite:<br /><br /><br /><div style="text-align:center;"><img src="http://lh6.ggpht.com/-dP_OXQZU-G8/UUBVk766PZI/AAAAAAAAA9Q/bas82zS_UC4/Bildschirmfoto%2525202013-03-13%252520um%25252011.25.51.png?imgmax=800" alt="Popup chart for a single metric" border="0" width="400" /><br/>Popup chart for a single metric<br /></div><p/><div style="text-align:center;"><img src="http://lh3.ggpht.com/-Fej4DXmcTnY/UUB5j0PXb2I/AAAAAAAAA9g/SMWv20QAxFc/Bildschirmfoto%2525202013-03-13%252520um%25252014.03.09.png?imgmax=800" alt="Individual metric" border="0" width="400" /><br/>Individual metric on the monitoring tab</div><br /><br />As the subject already says are those graphs made with the help of the awesome <a href="http://d3js.org">D3.js</a> framework - I let Mike chime in to describe in more details what he and Denis had to do to get this to work inside GWT+SmartGWT.<br /><br />I've <a href="https://sourceforge.net/projects/rhq/files/rhq/rhq-4.7-graphs-snapshot/">uploaded a snapshot from master as of this morning (my time)</a> of this from our CI server onto SourceForge for you to try. <strong>THIS IS NOT FOR PRODUCTION</strong>.<br /><p/><br />There is a known issue where the red bar shows "..global exception.." this is harmless and we will fix that anyway. Also the graph portlets in the dashboard <a href="https://bugzilla.redhat.com/show_bug.cgi?id=921022">don't honor the column width yet</a>.<br /><br/><br />Please do not forget to <a href="https://bugzilla.redhat.com/enter_bug.cgi?product=RHQ%20Project">report bugs</a> (if there are any :-)<br /><br />Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com1tag:blogger.com,1999:blog-6080082.post-31310329625784565382013-02-26T22:20:00.001+01:002013-02-27T10:48:13.966+01:00RHQ 4.6 released<img src="https://docs.jboss.org/author/download/attachments/30901932/RHQ?version=2&modificationDate=1257539985000 align="right"/><br />As I've <a href="http://pilhuhn.blogspot.com/2013/01/rhq-46-beta-released.html">mentioned before</a>, the RHQ team has been very busy since <a href="http://pilhuhn.blogspot.com/2012/10/rhq-451-released.html">RHQ 4.5.1</a> (and actually already before that) and has switched the application server it uses to JBoss AS 7.1. Directly after the switchover we have posted a first alpha version. <br /><p/><br />Now after more work and fixes, we are happy to provide the <strong>release 4.6 of RHQ</strong>, that has all the issues resolved that arose from the switch. Features of this release are:<br /><br /><ul><li>The internal app server is now JBossAS 7.1.1</li><li>GWT has been upgraded to version 2.5</li><li>There is a <strong>new installer</strong> (this has also changed since the 4.6 alpha release)</li><li>The REST-Api has <a href="http://pilhuhn.blogspot.com/2013/01/alertdefinitions-in-rhq-rest-api.html">been enhanced</a></li><li><a href="http://pilhuhn.blogspot.com/2013/01/korean-translations-contributed-to-rhq.html">Korean translations</a> have been added (contributed by SungUk Jeon)</li><li>Webservices have been removed</li><li>Building RHQ now requires Java7, but it will still run on Java6</li></ul>.<br /><br />See the <a href="https://docs.jboss.org/author/display/RHQ/Release+Notes+4.6.0">full release notes</a> for details. They also contain a list of commits.<br /><br />You can <a href="https://sourceforge.net/projects/rhq/files/rhq/rhq-4.6.0/">download the release from source forge</a>.<p/><br />As mentioned above, the old installer is gone, so make sure to read <br />the wiki document describing <a href="https://docs.jboss.org/author/display/RHQ/Running+The+Installer">how to use the new installer</a>.<br /><br />Maven artifacts are available from the <a href="https://repository.jboss.org/nexus/content/groups/public-jboss/org/rhq/">JBoss Nexus repository</a> and should soon also be available from Central.<br /><br />We also like to say thank you to our contributors for this release:<br /><ul><li>Jürgen Hoffmann</li><li>Richard Hensman</li><li>SungUk Jeon</li></ul><br /><br />Please give us feedback, be it in <a href="https://bugzilla.redhat.com/enter_bug.cgi?product=RHQ%20Project">Bugzilla</a>, <a href="https://fedorahosted.org/mailman/listinfo/rhq-users">Mailing lists</a> or <a href="http://community.jboss.org/en/rhq">the forum</a>. Or just join us on IRC at <a href="irc://irc.freenode.net/#rhq">irc.freenode.net/#rhq</a>.<br />Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-36865486726060018132013-01-16T17:47:00.001+01:002013-01-17T16:06:36.344+01:00RHQ 4.6 beta released<img src="https://docs.jboss.org/author/download/attachments/30901932/RHQ?version=2&modificationDate=1257539985000 align="right"/><br />The RHQ team has been very busy since <a href="http://pilhuhn.blogspot.com/2012/10/rhq-451-released.html">RHQ 4.5.1</a> (and actually already before that) and has switched the application server it uses to JBoss AS 7.1. Directly after the switchover we have posted a first alpha version. <br /><p/><br />Now after more work and fixes, we are happy to provide a <strong>beta version of RHQ 4.6</strong>, that has all the issues resolved that arose from the switch. Features of this release are<br /><br /><ul><li>The internal app server is now JBossAS 7.1</li><li>GWT has been upgraded to version 2.5</li><li>There is a new installer (this has also changed since the 4.6 alpha release)</li><li>The REST-Api has <a href="http://pilhuhn.blogspot.com/2013/01/alertdefinitions-in-rhq-rest-api.html">been enhanced</a></li><li><a href="http://pilhuhn.blogspot.com/2013/01/korean-translations-contributed-to-rhq.html">Korean translations</a> have been added (contributed by SungUk Jeon)</li></ul><br /><br />You can <a href="https://sourceforge.net/projects/rhq/files/rhq/rhq-4.6.0-beta/">download the release from source forge</a>.<p/><br />This wiki document describes <a href="https://docs.jboss.org/author/display/RHQ/Installing+RHQ+on+JBossAS+7">how to use the new installer</a>.<br /><br />The first version of the download did unfortunately not contain the Korean locale -- that is now fixed. If you already have downloaded the zip and do not need the Korean locale, then you don't need to re-download.<br /><br />Please try the release and give us feedback, be it in <a href="https://bugzilla.redhat.com/enter_bug.cgi?product=RHQ%20Project">Bugzilla</a>, <a href="https://fedorahosted.org/mailman/listinfo/rhq-users">Mailing lists</a> or <a href="http://community.jboss.org/en/rhq">the forum</a>.<br />Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-47746914396083065772012-10-04T20:29:00.001+02:002012-10-04T20:29:08.304+02:00RHQ 4.5.1 released<img src="https://docs.jboss.org/author/download/attachments/30901932/RHQ?version=2&modificationDate=1257539985000 align="right"/><br /><br />I am pleased to announce the immediate availability of <strong>RHQ 4.5.1</strong>.<br />RHQ is a system for management and monitoring of resources like application servers<br />or databases and can be extended by writing plugins.<br /><br />Actually I wanted to announce 4.5.0 a week ago, but a first user report showed an <br />error in the upgrade path from a previous version, so we have pulled that release<br />and fixed the bug along with another one and have now created a fresh 4.5.1 release.<br /><br />Notable changes are:<br /><br /><ul><li>Python support in the Command Line Interface (CLI)</li><li>Support for importing of scripts in the CLI</li><li>Enhancements in the JBossAS7 plugin</li><li>Enhancements in the REST API</li><li>Events tab allows to filter by date range</li><li>Postgres 9.2 is now supported as backend database</li><li>The Sigar library has been updated.</li></ul><br /><br />Special thanks goes to Elias Ross and Richard Hensman for their contributions.<br /><br />Maven artifacts have been uploaded to the <a href="https://repository.jboss.org/nexus/content/groups/public-jboss/org/rhq/">JBoss Nexus repo</a> and should show up on maven central soon.<br /><br />You can find the full release notes, that also contain a download link on the <a href="https://docs.jboss.org/author/display/RHQ/Home">RHQ wiki</a>. <br /><br/>This time we have included the full output from <code>git shortlog</code> for the commits of the release. Please tell us if this is useful for you. <br /><br /> Heiko on behalf of the RHQ teamHeikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com1tag:blogger.com,1999:blog-6080082.post-62637860918037959822012-05-09T09:13:00.001+02:002012-05-09T09:13:40.830+02:00RHQ 4.4 releasedI am proud to announce the immediate availability of RHQ 4.4 <img src="http://rhq-project.org/download/attachments/1017410/RHQ?version=2&modificationDate=1257543585409 align="right"/><br /><br />As before a lot of work has gone into this release:<br /><ul><li>Availability now knows a type of "disabled". This allows you to mark resources while maintenance or non-connected network interfaces so that they do not show up as down and also don't create false alerts. This also includes the possibility that plugins request to mark a resource as enabled or disabled</li><li>Faster availability reporting</li><li>Faster availability checking in the agent, that is also less bursty than in the past</li><li>Plugins can now request an availability check for a resource</li><li>Alerting has been improved: It is now possible to react on availability being in a certain state for some period of time (see the release notes for a long explanation</li><li>The JBoss AS 7 plugin has been massively improved</li><li>Denis Krusko has provided some <a href="http://javablogs.com/Jump.action?id=710747">initial Russian translations</a> of the UI</li><li>Reports like Suspect Metrics, Recent Operations or Recent Drift can now be exported in CSV format to e.g. post-process them in Open/LibreOffice.</li></ul><br /><br />Of course we have fixed many small bugs too and made tweaks to the UI etc.<br /><br />One very cool feature of this release is that the maven artifacts are already uploaded to the <a href="https://repository.jboss.org/nexus/index.html">JBoss Nexus repository</a> ;-)<br /><br />Please check out the <a href="http://rhq-project.org/display/RHQ/Release+Notes+4.4.0">release notes</a>, where you also find the download link. Also check out the RHQ <a href="http://rhq-project.org/display/RHQ/Release+Notes+4.3.0">4.3 release notes</a>, as 4.3 was more a slient release, which nevertheless brought enhancements in the UI (update of GWT/SmartGWT) and many bug fixes.<br /><br />If you want to get a quick overview on the ways to interact with RHQ, have a look at <a href="https://github.com/downloads/pilhuhn/misc_writing/interfacing.pdf">this whitepaper</a> (PDF) <br /><br />As always: give use feedback, join us on Irc on <a href="irc://irc.freenode.net/#rhq">#rhq</a> and spread the word.<br /><br />And last but not least I want to thank all our contributors for their valuable contributions.<br /><br /> Heiko on behalf of the RHQ team<br />Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com1tag:blogger.com,1999:blog-6080082.post-79199188935805316422012-04-23T21:35:00.001+02:002012-04-23T21:35:05.123+02:00RHQ participates in this years Google Summer of Code™<img src="http://rhq-project.org/download/attachments/1017410/RHQ?version=2&modificationDate=1257543585409 align="right"/><img src="http://lh6.ggpht.com/-9T-SM2nkiwg/T5WqzpHeF_I/AAAAAAAAAkc/QqRWYMkq1LQ/gsoc-2012-logo-color.png?imgmax=800" alt="Gsoc 2012 logo color" border="0" width="300" align="right" /><a href="http://rhq-project.org/display/RHQ/Home">RHQ</a> is happy to be able to participate in this years <a href="http://www.google-melange.com/gsoc/homepage/google/gsoc2012">Google Summer of Code™</a><br /><br />We have as part of the <a href="http://community.jboss.org/">JBoss.org</a> organization seen many very good proposals and the whole JBoss.org has seen many more so that even with the generosity of Google, we have obviously obtained a lot less slots than the number of good proposals received. <br /><br />So I am extremely happy that for RHQ those two proposals have been accepted:<br /><br /><ul><li><a href="http://www.google-melange.com/gsoc/project/google/gsoc2012/kruskod/11001">Replace old graphs by GWT ones - Denis Krusko</a>: The main graphs in RHQ are still from the pre RHQ era and implemented as Servlets embedded in JSP and struts pages. The current UI is mostly written in GWT. While we were able to embed the old graphs, they still don't feel 'right'. <p/><br />Denis will investigate options for replacement and then implement new GWT-compatible graphing. Denis will also look at how the grahps can become more interactive by e.g. applying formulas on the data.</li><li><a href="http://www.google-melange.com/gsoc/project/google/gsoc2012/krzykwas/36002">Implement an RHQ agent in Python - Krzysztof Kwaśniewski</a>: The classical RHQ agent is written in Java and probably not best suited for every purpose. With the addition of the <a href="http://javablogs.com/Jump.action?id=672973">REST api</a>, it now became easier to implement agents in other languages.<p/><br />Krzysiek will implement an agent in Python, that on one side talks REST with the RHQ server and on the other side interfaces with <a href="http://matahariproject.org/">Matahari</a> to take metrics from Fedora and RHEL hosts.<br /></li></ul><br /><br />I am together with the other RHQ contributors very much looking forward to see Krzysztof and Denis in action.<br /><br /> Heiko<br /><br />*) GSoC Logo is taken from <a href="http://code.google.com/p/google-summer-of-code/wiki/GsocLogos">http://code.google.com/p/google-summer-of-code/wiki/GsocLogos</a> and has a CC-3.0-attrib-non-commercial-no-deratie licenseHeikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-46267901776379349882012-02-12T20:22:00.001+01:002012-02-13T16:45:18.405+01:00Small Fosdem 2012 review<img src="http://fosdem.org/promo/going-to" style="align:right"/><br /><br />On the weekend of Feb 4th, 2012 the European (and not only) Free and Open source community met in Brussels, Belgium for FOSDEM (Free and Open Source Developers Meeting). <br /><br /><br /><br />The following video gives an impression on what FOSDEM is like - and I was only able to capture a tiny part of it.<br /><iframe src="http://player.vimeo.com/video/36577369?title=0&byline=0&portrait=0&color=80ceff" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe><br />(<a href="http://vimeo.com/36577369">original size is 960x540</a>)<br /><br />I only arrived on Saturday at around noon via train. Stuttgart to Cologne was via ICE and from Cologne on I took the Thalys where I had the luck to get a a first class ticket for the price of a regular 2nd class one; the ticket included free WiFi and free breakfast with croissants, sandwiches and beverages.<br /><br /><br />I gave a talk on <a href="http://rhq-project.org/display/RHQ/Home">RHQ</a> "Recent and future developments". In the presentation I talked about what we have achieved recently and where we may perhaps go in the future.<br /><br /><iframe src="http://player.vimeo.com/video/36346005?title=0&byline=0&portrait=0&color=80ceff" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe><br />(<a href="http://vimeo.com/36346005">original size is 960x540</a>, <a href="http://www.pilhuhn.de/hwr/FOSDEM12.pdf">here are slides as pdf</a>)<br /><br />As I had the camera with me, I also recorded a few other talks<br /><ul><li><a href="http://vimeo.com/36395894">Byteman</a></li><li><a href="http://vimeo.com/36594413">Thermostat project</a></li><li><a href="http://vimeo.com/36573193">IcedTea and IcedTeaWeb</a></li></ul><br /><br />I was lucky to meet with some of the JBoss colleagues, but was not able to make it to the virt sessions and to meet more of the <a href="http://pilhuhn.blogspot.com/2012/01/jboss-fedora-and-more-from-red-hat-at.html">various Red Hat people</a> that were there. Fortunately some of the talks were recorded by the FOSDEM crew and will hopefully be online soon.<br /><br />FOSDEM is for sure a conference to go to -- and not only because entrance is free and there is beer sold all over the place :)Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-32431035132828270402012-01-23T22:22:00.001+01:002012-01-26T16:39:09.545+01:00JBoss, Fedora and more from Red Hat at FOSDEM 2012A lot of folks from Red Hat are visiting <a href="http://www.fosdem.org/2012/">FOSDEM 2012</a> this year.<br /> <img src="http://fosdem.org/promo/going-to" style="align:right"><br /><br />I've listed the speakers here - I will myself talk on Saturday on <a href="http://rhq-project.org/display/RHQ/Home">RHQ</a>.<br /><br />In addition to the talks there are also stands:<br /><br /><ul><li>JBoss: <a href="http://www.jboss.org/">K building, 1st floor</a></li><li>Fedora: <a href="http://fedoraproject.org/">K building, ground floor</a></li></ul><br />You will be able to get a printed version of this list at the Fedora stand.<br /><br /><h2>Saturday</h2><table border="0" cellspacing="0" cellpadding="0" ><tr ><td ><p><strong>WHEN</strong></p></td><td ><p><strong>EVENT</strong></p></td><td ><p><strong>TRACK & ROOM</strong></p></td><td ><p><strong>SPEAKER</strong></p></td></tr><tr ><td ><p>11:00-11:10</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/welcome">Welcome to the CrossDesktop Devroom</a></p></td><td ><p>CrossDesktop (H.1308)</p></td><td ><p>Christophe Fergeau</p></td></tr><tr ><td ><p>11:00-11:05</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/legal_issues">Welcome to the Legal Issues DevRoom</a></p></td><td ><p>Legal Issues (AW1.125)</p></td><td ><p>Richard Fontana</p></td></tr><tr ><td ><p>11:00-11:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/boxgrinder_grind_your_appliances_easily">BoxGrinder : Grind your appliances easily</a></p></td><td ><p>JBoss.org (K.3.201)</p></td><td ><p>Marek Goldmann</p></td></tr><tr ><td ><p>11:00-11:05</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/free_java">Welcome to the Free Java DevRoom</a></p></td><td ><p>Free Java (K.4.401)</p></td><td ><p>Mark Wielaard, Andrew Haley, Andrew Hughes</p></td></tr><tr ><td ><p>12:00-12:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/drools_planner_planning_optimization_by_example">Drools Planner: Planning optimization by example</a></p></td><td ><p>JBoss.org (K.3.201)</p></td><td ><p>Geoffrey De Smet</p></td></tr><tr ><td ><p>12:30-12:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/libguestfs">libguestfs - tools for modifying virtual machine<br /> disk images</a></p></td><td ><p>Virtualization & Cloud (Chavanne)</p></td><td ><p>Richard Jones</p></td></tr><tr ><td ><p>13:00-13:25</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/pacemaker_cloud">Cloud high availability with pacemaker-cloud</a></p></td><td ><p>Virtualization & Cloud (Chavanne)</p></td><td ><p>Pádraig Brady</p></td></tr><tr ><td ><p>13:00-13:55</p></td><td ><p><a href="http://fosdem.org/2012/schedule/event/openshift">Openshift<a/></p></td><td ><p>JBoss.org (K.3.201)</p></td><td ><p>Grant Shipley</p></td></tr><tr ><td ><p>14:00-14:25</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/aeolus">The Aeolus Project</a></p></td><td ><p>Virtualization & Cloud (Chavanne)</p></td><td ><p>Francesco Vollero</p></td></tr><tr ><td ><p>14:00-14:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/building_jboss_as7_for_fedora">JBoss AS7 : Building JBoss AS 7 for Fedora</a></p></td><td ><p>JBoss.org (K.3.201)</p></td><td ><p>Carlo De Wolf</p></td></tr><tr ><td ><p>15:00-15:50</p></td><td ><p><a href="http://fosdem.org/2012/schedule/event/virt_kvm">Virtualization with KVM: bottom to top, past to future</a></p></td><td ><p>Hypervisors (Janson)</p></td><td ><p>Paolo Bonzini</p></td></tr><tr ><td ><p>15:00-15:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/jboss_forge_and_arquillian_two_missing_links_in_enterprise_java_development">JBoss Forge / Arquillian: Two Missing Links in<br /> Enterprise Java Development</a></p></td><td ><p>JBoss.org (K.3.201)</p></td><td ><p>Koen Aers</p></td></tr><tr><td><p>15:00-15:25</p></td><td><p><a href="http://fosdem.org/2012/schedule/event/deltacloud">Open Clouds with Deltacloud API</a></p></td><td><p>Virtualization & Cloud (Chavanne)</p></td><td ><p>Michal Fojtik</p></td></tr><tr ><td ><p>15:30-15:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/dmtf_deltacloud">DMTF CIMI and Apache Deltacloud</a></p></td><td ><p>Virtualization & Cloud (Chavanne)</p></td><td ><p>Marios Andreou</p></td></tr><tr ><td ><p>16:00-16:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/infinispan_where_open_source_java_and_in_memory_data_grids_converge">Infinispan: where open source, Java and in-memory<br /> data grids converge</a></p></td><td ><p>JBoss.org (K.3.201)</p></td><td ><p>Manik Surtani</p></td></tr><tr ><td ><p>16:15-17:00</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/group_picture">Crossdesktop group picture</a></p></td><td ><p>CrossDesktop (H.1308)</p></td><td ><p>Christophe Fergeau</p></td></tr><tr ><td ><p>16:30-17:00</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/the_decline_of_the_gpl">The (possible) decline of the GPL, and what to do<br /> about it</a></p></td><td ><p>Legal Issues (AW1.125)</p></td><td ><p>Richard Fontana</p></td></tr><tr ><td ><p>17:00-17:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/recent_and_future_developments_in_the_rhq_systems_monitoring_and_management_framework">RHQ: Recent and future developments in the RHQ<br /> systems monitoring and management framework</a></p></td><td ><p>JBoss.org (K.3.201)</p></td><td ><p>Heiko Rupp</p></td></tr><tr ><td ><p>17:30-18:00</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/app_store_panel">Panel on Application Stores</a></p></td><td ><p>Legal Issues (AW1.125)</p></td><td ><p>Richard Fontana</p></td></tr><tr ><td ><p>18:00-18:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/managing_workflows_and_business_rules_with_guvnor_and_the_jbpm_designer">Guvernor/JBPM : Managing workflows and business<br /> rules with Guvnor and the jBPM designer</a></p></td><td ><p>JBoss.org (K.3.201)</p></td><td ><p>Geoffrey De Smet, Marco Rietveld</p></td></tr><tr ><td ><p>18:00-18:30</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/thermostat">Thermostat: Taking over the Java tooling world with<br /> Open Source Software</a></p></td><td ><p>Free Java (K.4.401)</p></td><td ><p>Jon VanAlten, Omair Majid</p></td></tr><tr><td ><p>18:20-18:35</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/pmd5">PMD5: What can it do for you?</a></p></td><td ><p>Lightning Talks (Ferrer)</p></td><td ><p>Romain PELISSE</p></td></tr><tr ><td ><p>18:30-19:00</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/byteman">Tracing, Debugging and Testing With Byteman</a></p></td><td ><p>Free Java (K.4.401)</p></td><td ><p>Andrew Dinn</p></td></tr></table><h2>Sunday</h2><table><tr ><td ><p><strong>WHEN</strong></p></td><td ><p><strong>EVENT</strong></p></td><td ><p><strong>TRACK & ROOM</strong></p></td><td ><p><strong>SPEAKER</strong></p></td></tr><tr ><td ><p>09:00-09:25</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/spice">Spice "Open remote computing" introduction</a></p></td><td ><p>Virtualization & Cloud (Chavanne)</p></td><td ><p>Hans de Goede</p></td></tr><tr ><td ><p>09:30-09:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/usb_network_redirect">USB redirection over the network</a></p></td><td ><p>Virtualization & Cloud (Chavanne)</p></td><td ><p>Hans de Goede</p></td></tr><tr ><td ><p>10:00-10:45</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/matahari">Systems Management with Matahari</a></p></td><td ><p>Configuration & Systems Management (K.3.601)</p></td><td ><p>Zane Bitter</p></td></tr><tr ><td ><p>10:45-11:15</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/gnomeboxes">Boxes, use other systems with ease</a></p></td><td ><p>CrossDesktop (H.1308)</p></td><td ><p>Zeeshan Ali (Khattak), Marc-André Lureau</p></td></tr><tr ><td ><p>11:00-11:15</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/cdt">Powerful tools for Linux C/C++ developers based on<br /> Eclipse</a></p></td><td ><p>Lightning Talks (Ferrer)</p></td><td ><p>Andrew Overholt</p></td></tr><tr ><td ><p>11:00-11:25</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/ovirt_intro">Virtualization Management the oVirt way</a></p></td><td ><p>Virtualization & Cloud (Chavanne)</p></td><td ><p>Itamar Heim</p></td></tr><tr ><td ><p>11:30-11:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/ovirt_engine_core">oVirt Engine Core: Internals and Infrastructure</a></p></td><td ><p>Virtualization & Cloud (Chavanne)</p></td><td ><p>Omer Frenkel</p></td></tr><tr ><td ><p>11:30-12:00</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/can_i_legally_do_that">Can I legally do that?</a></p></td><td ><p>Free Java (K.4.401)</p></td><td ><p>Mark Wielaard</p></td></tr><tr ><td ><p>12:00-12:25</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/ovirt_vdsm">VDSM - The oVirt Node Management Agent</a></p></td><td ><p>Virtualization & Cloud (Chavanne)</p></td><td ><p>Federico Simoncelli</p></td></tr><tr ><td ><p>12:30-13:30</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/openjdk_on_arm">OpenJDK on ARM: Quo vadis?</a></p></td><td ><p>Free Java (K.4.401)</p></td><td ><p>Andrew Haley</p></td></tr><tr ><td ><p>15:00-15:55</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/libvirt_lxc_kvm_sandboxes">Building app sandboxes on top of LXC and KVM with<br /> libvirt</a></p></td><td ><p>Virtualization & Cloud (Chavanne)</p></td><td ><p>Daniel Berrange</p></td></tr><tr ><td ><p>15:30-16:00</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/icedtea_and_icedteaweb">IcedTea and IcedTea-Web</a></p></td><td ><p>Free Java (K.4.401)</p></td><td ><p>Deepak Bhole</p></td></tr><tr ><td ><p>16:30-17:00</p></td><td ><p><a href="http://www.fosdem.org/2012/schedule/event/free_java_future">Discussion on the Future of Free Java</a></p></td><td ><p>Free Java (K.4.401)</p></td><td ><p>Andrew Haley</p></td></tr></table>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-28954545611450741342012-01-14T15:54:00.001+01:002012-01-14T15:54:19.729+01:00Polyglot management of a secured AS7JBossAS7 comes with a nice management interface that tools like the built-in admin-console or the console app are using. Next to the "more binary" DMR protocol, there is also a JSON interface available that can be accessed via http. Using this interface allows to manage AS7 from any programing language. <br />Luckily :-) this interface is secured by default and only accessible for a valid user via http digest authentication.<br /><br /><h2>Set up admin user</h2><br /><br />The first step is to enable a user on the server to use for this management interface:<br /><br /><pre><br />$ cd /jboss-as-7.1.0<br />$ bin/add-user.sh <br /><br />Enter the details of the new user to add.<br />Realm (ManagementRealm) : <em><press enter></em><br />Username : <em>heiko</em><br />Password : <em><provide password></em><br />Re-enter Password : <em><provide password again></em><br />About to add user 'user' for realm 'ManagementRealm'<br />Is this correct yes/no? <em>yes</em><br />Added user 'user' to file '/jboss-as-7.1.0/standalone/configuration/mgmt-users.properties'</pre><br /><br />Now we have created a user 'heiko' with password 'okieh'.<br /><br /><h2>Shell with curl</h2><br /><br />The following command with shut down the server via the management interface:<br /><br /><pre>$ curl --digest -u heiko http://localhost:9990/management/ -d '{"operation":"shutdown" }' -HContent-Type:application/json<br /></pre><br /><br />Note that for option '-u' only the username is given — curl will ask for the password. One important part here is that to mark the content-type of the data sent as "application/json". Curl will, if this header is not provided, send the request as 'application/x-www-form-urlencoded' which is disallowed by AS7.<br /><br />If you run curl with option '-v' you can nicely see the re-negotiation to acquire the nonce from the server in order to compute the digest:<br /><br /><pre>$ curl -v --digest -u heiko http://localhost:9990/management/ -d '{"operation":"shutdown" }' -HContent-Type:application/json<br />Enter host password for user 'heiko': <em><okieh></em><br />* About to connect() to localhost port 9990 (#0)<br />* Trying 127.0.0.1... connected<br />* Connected to localhost (127.0.0.1) port 9990 (#0)<br />* Server auth using Digest with user 'heiko'<br />> POST /management/ HTTP/1.1<br />> User-Agent: curl/7.21.7 (x86_64-apple-darwin10.8.0) libcurl/7.21.7 OpenSSL/1.0.0e zlib/1.2.5 libidn/1.22<br />> Host: localhost:9990<br />> Accept: */*<br />> Content-Type:application/json<br />> Content-Length: 0<br />> <br />< HTTP/1.1 401 Unauthorized<br />< Content-length: 0<br />< Www-authenticate: Digest realm="ManagementRealm",nonce="6089edca29aa27b064aa1db42d9651eb"<br />< Date: Fri, 13 Jan 2012 09:54:39 GMT<br />< <br /><br /></pre><br />First request has been sent and the server replied with a 401 unauthorized and the nonce to use. Now curl continues:<br /><br /><pre><br />* Connection #0 to host localhost left intact<br />* Issue another request to this URL: 'http://localhost:9990/management/'<br />* Re-using existing connection! (#0) with host localhost<br />* Connected to localhost (127.0.0.1) port 9990 (#0)<br />* Server auth using Digest with user 'heiko'<br />> POST /management/ HTTP/1.1<br />> Authorization: Digest username="heiko", realm="ManagementRealm", nonce="6089edca29aa27b064aa1db42d9651eb", uri="/management/", response="78b9546e7485b661121e34a72d2979f1"<br />> User-Agent: curl/7.21.7 (x86_64-apple-darwin10.8.0) libcurl/7.21.7 OpenSSL/1.0.0e zlib/1.2.5 libidn/1.22<br />> Host: localhost:9990<br />> Accept: */*<br />> Content-Type:application/json<br />> Content-Length: 25<br />> <br />< HTTP/1.1 200 OK<br />< Transfer-encoding: chunked<br />< Content-type: application/json<br />< Date: Fri, 13 Jan 2012 09:54:39 GMT<br />< <br />* Connection #0 to host localhost left intact<br />* Closing connection #0<br />{"outcome" : "success"}<br />$ <br /></pre><br /><br />So we've issued the equest and the server has shutdown. Using the same technique you can also e.g. query the port, the http-connector is listening on (which has the symbolic name of 'http'):<br /><br /><pre>curl --digest -u heiko http://localhost:9990/management/ -HContent-Type:application/json --data @-<< -EOF-<br />{<br /> "operation":"read-attribute",<br /> "address":[<br /> {"socket-binding-group":"standard-sockets"},<br /> {"socket-binding":"http"}<br /> ],<br /> "name":"port"<br />}<br />-EOF-<br /></pre><br /><br />In this example you also see how to pass the address of the node to inspect and the name of the attribute to the server.<br /><br />Beware that if you make a typo in the json-encoding (e.g. separating key and value by comma instead of colon), the server may just respond with a 401 without telling you what went wrong<br /><br /><h2>Perl</h2><br /><br />It's a long time since I did serious perl coding, so that next example may not be the most elegant. The example shows again, how to retrieve the http port via a 'read-attribute' operation. As I don't want to obsfuscate the code even more, I did just provide the password in the script.<br /><br /><pre><br />#!/usr/bin/perl<br /><br />use JSON qw(objToJson jsonToObj from_json to_json decode_json);<br />use LWP;<br /><br />$host = "localhost";<br />$port = "9990";<br /><br />$realm = "ManagementRealm";<br />$user = "heiko";<br />$password = "okieh";<br /><br /># Construct url of management api<br />$url = "http://$host:$port/management";<br /><br /><br /># the command to send to the server in JSON encoding<br />$json_data = '<br />{<br /> "operation":"read-attribute",<br /> "address":[<br /> {"socket-binding-group":"standard-sockets"},<br /> {"socket-binding":"http"}<br /> ],<br /> "name":"port"<br />}<br />';<br /># set up a User agent<br />my $browser = LWP::UserAgent->new();<br /><br /># Create the request<br />my $req = HTTP::Request->new(POST => $url);<br />$browser->credentials("$host:$port",$realm,$user,$password);<br />$req->content_type( 'application/json');<br />$req->content($json_data);<br /><br /># send the request to the server<br />$res = $browser->request($req);<br /><br /># If we don't get a 200 back, we finish here<br />die "No success ", $res->status_line unless $res->is_success;<br /><br /># Get the content from the response<br />my $seite_code = $res->content;<br />print "Received : $seite_code \n";<br /><br /># decode the json retieved<br />my $json = JSON->new->utf8;<br />$obj = $json->decode($seite_code);<br />%pairs = %{$obj}; # json->decode returns a hash ref<br /># get the result<br />$httpPort = $pairs{"result"};<br />print "Http port is $httpPort \n";<br /></pre><br /><br />The basic part to handle the digest authentication is <code>$browser->credentials("$host:$port",$realm,$user,$password);</code>, which makes LWP transparently handle the creation of the digest and re-sending of the request.<br /><br /><h2>Ruby</h2><br /><br />Unlike perl, which I was using a lot in the past, I am not yet familiar with Ruby, so there may be a much better solution -- please provide some feedback. Especially I have not found a good way to automatically handle the digest authentication, so this is done explicitly <br /><br /><pre><br />#!/opt/local/bin/ruby1.9<br /><br />require 'json'<br />require 'net/http'<br />require 'net/http/digest_auth'<br /><br />url = URI.parse('http://localhost:9990/management/')<br />url.user = 'heiko'<br />url.password = 'okieh'<br /><br /># data to send to retrieve the server name<br />data = { "operation" => "read-attribute",<br /> "address" => [],<br /> "name" => "name"}<br /><br />h = Net::HTTP.new url.host, url.port<br /><br /># send first request to get nonce<br />req = Net::HTTP::Post.new url.request_uri<br />res = h.request req<br /></pre><br /><br />So far we have sent a first request to obtain the 'nonce' from the server, so we can compute the digest in the 2n step.<br /><pre><br /><br /># compute the digest<br />digest_auth = Net::HTTP::DigestAuth.new<br />auth = digest_auth.auth_header url, res['www-authenticate'], 'POST'<br /><br /># Now send the real request with the nonce<br />body = JSON.generate(data)<br /><br />puts "Sending " + body<br />req = Net::HTTP::Post.new url.request_uri<br />req.add_field 'Content-Type', 'application/json'<br />req.add_field 'Authorization', auth<br />req.body = body<br /><br />res = h.request req<br /><br />print "Result " + res.body<br /><br /># parse the JSON and obtain the 'result' object<br />data = JSON.parse(res.body)<br />server_name = data["result"]<br />print "Server name is " + server_name<br /><br /></pre><h2>Thanks</h2><br />I want to thank Darran Lofthouse for helping me to get going with why apparently correct requests fail with a 403 (because of the wrong content type).Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-90437085618560696302011-12-12T12:08:00.001+01:002011-12-12T12:08:31.873+01:00Announcing the RHQ samples projectI am proud to announce the inception of a the samples project for <a href="http://rhq-project.org/display/RHQ/Home">RHQ</a>. <img src="http://rhq-project.org/download/attachments/1017410/RHQ?version=2&modificationDate=1257543585409 align="right"/><br />This is meant to collect samples and extensions around <a href="http://rhq-project.org/display/RHQ/Home">RHQ</a> that could be used in RHQ and also <a href="http://www.jboss.com/products/jbosson">JBoss ON</a>. Users can go there and copy and paste the solutions to get a quicker start themselves. <br /><br />While this project is started by the RHQ project team, everyone is encouraged to come and use the samples, fork the project and enhance it. To make this process easier, the project is hosted on GitHub at <br /><br /><a href="https://github.com/rhq-project/samples" align="center">https://github.com/rhq-project/samples</a><br /><br />The initial content centers around the new REST api of RHQ, and shows how to use this API from Ruby or Python and how to <a href="https://github.com/rhq-project/samples/tree/master/rest-api/java/jasper">build reports</a> from JasperReports.<br /><br />Wanja Pernath has also submitted his <a href="https://github.com/rhq-project/samples/tree/master/cli/groupcontrol">group control</a> scripts using the CLI in <a href="http://rhq-project.org/display/RHQ/Home">RHQ</a> and <a href="http://www.jboss.com/products/jbosson">JBoss ON</a>.<br /><br />Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-89903726836243996302011-11-23T16:28:00.001+01:002011-11-23T16:28:03.753+01:00Join me and RHQ in London next monday<p><img src="http://photos3.meetupstatic.com/photos/event/9/5/e/3/global_31838371.jpeg" border="0" alt="global_31838371.jpeg" /></p><p>As <a href="http://pilhuhn.blogspot.com/2011/10/rhq-and-jboss-on-at-jbug-london.html">written before</a>, I will talk at the London JBoss User Group next monday about RHQ and JBoss ON.</p><p>You may register on the <a href="http://www.meetup.com/JBoss-User-Group/events/37943312/">meetup page</a>, which also lists the venue and the directions to get there.</p><p><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq6oTPvzpWT1aoKAy4EMFHBosqpWoi9I6tCdph9OoRQIFHjNPq_4zzQd_DVhn0G6EsUBztrQvnvyVYTZuBkpXICFyoGKsTwJU3GHvWu-6qlu5APn6aUBGcaMmshqsK-tr_u6J0/s640/JBUG+November.jpg" border="0" alt="JBUG+November.jpg" /></p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-51016283820255218302011-10-31T21:21:00.001+01:002011-10-31T21:35:22.504+01:00RHQ 4.2 released<p>The RHQ team is proud to have released version 4.2 of the systems management and monitoring framework.</p><p> </p><div style="text-align: center;"><img src="http://lh3.ggpht.com/-u_C7d-qzuHo/ToLyx1-BmcI/AAAAAAAAAYE/meJ8r0-tL2s/Bildschirmfoto%2525202011-09-28%252520um%25252011.33.16.png?imgmax=800" border="0" alt="" width="400" /></div><p> </p><p>This release focuses on:</p><ul><li>UI enhancements / bug fixing</li><li>Completion of drift management (this allows you to e.g. detect changes to files on your managed platform and to alert on such drift)</li><li>Improvements in server config sync (you can basically take (parts of) the configuration of one RHQ server and apply it to a different RHQ server).</li></ul><p>In addition to that, the release is the very first to have a (limited) <a href="http://rhq-project.org/display/RHQ/Design-REST">REST</a> interface. Another change is the added support for PostgreSQL 9.1.</p><p>We want to thank</p><ul><li>Ted Won for contributing Korean installer messages</li><li>Rafael Torres for improvements to the Twitter plugins (OAuth support)</li><li>All community members that provided input and bug reports</li></ul><p>As always check the <a href="http://rhq-project.org/display/RHQ/Release+Notes+4.2.0">release notes</a> for a more complete list of changes. You can get the <a href="http://sourceforge.net/projects/rhq/files/rhq/rhq-4.2.0/">downloads from sourceforge</a>. And please provide us feedback; for the REST interface we are also looking for usage examples.</p><p> </p><p>Heiko Rupp will showcase RHQ 4.2 at the <a href="http://javablogs.com/Jump.action?id=675988">November meeting of the London JBUG</a>.</p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com2tag:blogger.com,1999:blog-6080082.post-34661839089606260462011-10-24T09:11:00.001+02:002011-10-27T09:57:29.030+02:00RHQ and JBoss ON at JBug London (updated)<p><img src="http://photos3.meetupstatic.com/photos/event/9/5/e/3/global_31838371.jpeg" border="0" alt="global_31838371.jpeg" /></p><p>I will talk on monday, Nov 28th at the London (UK) JBoss User Group about RHQ and JBoss ON. The talk will give an overview over RHQ and JBoss ON, showcase the new features in RHQ 4.2 and also talk a little bit about the <a href="http://javablogs.com/Jump.action?id=672973">new REST api</a>.</p><p>The talk venue is the Skills matter eXchange, where the <a href="http://www.meetup.com/JBoss-User-Group/events/37943312/">meetup page</a> has the link to the location and also a link to the registration.</p><p>The guys from <a href="http://blog.c2b2.co.uk/">C2B2</a> also created a cool poster:</p><p><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq6oTPvzpWT1aoKAy4EMFHBosqpWoi9I6tCdph9OoRQIFHjNPq_4zzQd_DVhn0G6EsUBztrQvnvyVYTZuBkpXICFyoGKsTwJU3GHvWu-6qlu5APn6aUBGcaMmshqsK-tr_u6J0/s640/JBUG+November.jpg" border="0" alt="JBUG+November.jpg" /></p><p> </p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com1tag:blogger.com,1999:blog-6080082.post-79845322664082329262011-09-28T21:13:00.001+02:002011-10-09T20:54:38.430+02:00REST coming to RHQ (updated)<p>In the past few weeks I was also working on implementing a sample REST interface for RHQ (see also <a href="http://javablogs.com/Jump.action?id=667246">here</a> and <a href="https://fedorahosted.org/pipermail/rhq-devel/2011-June/000855.html">here</a>). At our team meeting I've showcased the work I've done in the heiko-rest branch of our git repository and we have decided to merge that into the RHQ master branch sooner or later.</p><p><strong>UPDATE</strong>: <em>this has been merged today (2011/10/09); if you build from source, you need to build the container again.</em></p><p>To stimulate your appetite I will show some samples what you could do with the REST api:</p><p>Returning resources in html representation</p><p> </p><div style="text-align: center;"><img src="http://lh6.ggpht.com/-Esr_XfTYwcQ/ToLx-F63q8I/AAAAAAAAAX4/W1Ty9irZsgo/Bildschirmfoto%2525202011-09-28%252520um%25252011.31.55.png?imgmax=800" border="0" alt="Bildschirmfoto 2011 09 28 um 11 31 55" width="400" /></div><div style="text-align: left;">and as JSON</div><div style="text-align: center;"><img src="http://lh3.ggpht.com/-WDhiHy766Fc/ToLyZ5rNlCI/AAAAAAAAAX8/UpPkzSiOpyU/Bildschirmfoto%2525202011-09-28%252520um%25252012.06.55.png?imgmax=800" border="0" alt="Bildschirmfoto 2011 09 28 um 12 06 55" width="400" /></div><div style="text-align: left;">Render metric graphs in Javascript with the help of <a href="http://mbostock.github.com/d3/">D3.js</a></div><div style="text-align: center;"><img src="http://lh3.ggpht.com/-Pc-oHEDT-00/ToLyk85Zo_I/AAAAAAAAAYA/D40aB4sEchU/Bildschirmfoto%2525202011-09-28%252520um%25252011.32.45.png?imgmax=800" border="0" alt="Bildschirmfoto 2011 09 28 um 11 32 45" width="400" /></div><div style="text-align: left;">Or an alternative resource tree in Javascript with the help of <a href="http://mbostock.github.com/d3/">D3.js</a></div><div style="text-align: center;"><img src="http://lh3.ggpht.com/-u_C7d-qzuHo/ToLyx1-BmcI/AAAAAAAAAYE/meJ8r0-tL2s/Bildschirmfoto%2525202011-09-28%252520um%25252011.33.16.png?imgmax=800" border="0" alt="Bildschirmfoto 2011 09 28 um 11 33 16" width="400" /></div><div style="text-align: left;">Providing data to an Android client application (this is not very sophisticated yet, but should illustrate the idea):</div><div style="text-align: center;"><iframe src="http://player.vimeo.com/video/29740860?title=0&byline=0&portrait=0" width="400" height="300" frameborder="0"></iframe><p style="text-align: center;"><a href="http://vimeo.com/29740860">RHQpocket as REST client to the RHQ server</a> from <a href="http://vimeo.com/user5053188">Heiko W. Rupp</a> on <a href="http://vimeo.com">Vimeo</a>.</p></div><div style="text-align: left;">List / add / delete favorite resources:</div><pre style="text-align: left;">$ curl localhost:7080/rest/1/user/favorites/resource -u rhqadmin:rhqadmin<br />[{"resourceWithType":{"@resourceId":"10160","pluginName":"RHQServer"<br /> ,"resourceName":"Measurement Subsystem","typeId":10235<br /> ,"typeName":"RHQ Server Measurement Subsystem"}}<br /> ,{"resourceWithType":{"@resourceId":"10361","pluginName":"jboss-as-7"<br /> ,"resourceName":"\/devel\/jbas7\/jboss-as\/build\/target\/jboss-as-7.1.0.Alpha2-SNAPSHOT","typeId":10055<br /> ,"typeName":"JBossAS7-Standalone"}}]</pre><p style="text-align: left;">Add resource with id 10013 to favorites:</p><pre style="text-align: left;">$ curl localhost:7080/rest/1/user/favorites/resource/10013 -X PUT -u rhqadmin:rhqadmin</pre><pre style="text-align: left;">$ curl localhost:7080/rest/1/user/favorites/resource -u rhqadmin:rhqadmin<br />[{"resourceWithType":{"@resourceId":"10013","pluginName":"Platforms"<br /> ,"resourceName":"en0","typeId":10024<br /> ,"typeName":"Network Adapter"}}<br /> ,{"resourceWithType":{"@resourceId":"10160","pluginName":"RHQServer"<br /> ,"resourceName":"Measurement Subsystem","typeId":10235<br /> ,"typeName":"RHQ Server Measurement Subsystem"}}<br /> ,{"resourceWithType":{"@resourceId":"10361","pluginName":"jboss-as-7"<br /> ,"resourceName":"\/devel\/jbas7\/jboss-as\/build\/target\/jboss-as-7.1.0.Alpha2-SNAPSHOT","typeId":10055<br /> ,"typeName":"JBossAS7-Standalone"}}]</pre><p style="text-align: left;">And remove it again from favorites:</p><pre style="text-align: left;">$ curl localhost:7080/rest/1/user/favorites/resource/10013 -X DELETE -u rhqadmin:rhqadmin</pre><p> </p><p>Of course those are only some examples and should illustrate that:</p><ul><li>the api will be usable from different clients</li><li>from different programming languages</li><li>it will allow write / update access</li><li>it will allow users to write extensions to RHQ like e.g. Über-consoles that we do not even think of</li></ul><p>We were also thinking of the possibility for agents in other languages being able to push events and metrics over this interface.</p><p>The code is currently in the <a href="http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=shortlog;h=refs/heads/heiko-rest">heiko-rest</a> branch in <a href="http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=summary">RHQ-git</a> (at fedorahosted), but we plan to merge it into master as soon as possible. If you want to try the code, check out the branch and either build RHQ from scratch. Or try running /etc/dev-utils/setup-rest/setup.sh to populate the server with the needed libraries (edit that file first), then build server/jar and gui/rest-war in dev-mode so that the artifacts are copied to the server. Then edit rhq.ear/META-INF/application.xml to include the rest war. Of course all this will not be needed after we have merged the code in the master, as the normal build will then have all the artifacts.</p><p>The code for the Android app is available from <a href="https://github.com/pilhuhn/RHQpocket">my repository on GitHub</a></p><p>An important part of this whole effort is <strong>your input</strong>:</p><ul><li>Provide us with your requirements e.g. on the <a href="http://rhq-project.org/display/RHQ/Design-REST">Design - REST</a> page of the RHQ-Wiki</li><li>Contribute to the code</li><li>Show us your examples you have built on top of the API (and perhaps even contribute them)</li></ul><p> </p><p>Please help us making this great so that you can create great stuff with the interface.</p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com2tag:blogger.com,1999:blog-6080082.post-10515092224884642292011-08-11T18:04:00.001+02:002011-08-11T18:04:16.878+02:00RHQ 4.1.0 BETA released<p><img style="border: 0px initial initial;" src="http://rhq-project.org/download/attachments/1017410/RHQ?version=2&modificationDate=1257543585409" alt="" align="right" /></p><p>The RHQ team has just released version 4.1.0.<strong>beta</strong> of the RHQ systems management and monitoring suite. This release serves as a preview of the upcoming version 4.1.0 and has a wealth of new features.</p><p>Some of the new features are work in progress and will only be finished after 4.1, which means that you can still influence the features with your ideas and feedback.</p><p><a href="http://rhq-project.org/display/RHQ/Release+Notes+4.1.0+beta">Release notes are on the RHQ wiki </a>and also contain the link to the download at the bottom.</p><p><div>We want to especially thank Elias Ross, Fusayuki Minamoto, Jijun Liu, Zhongqianglee</div><div>and Rafael Torres Coelho Soares for their contributions (even if some are not in this build)</div></p><p> </p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-87930916650792068392011-05-23T21:10:00.001+02:002011-05-23T21:10:08.098+02:00RHQ 4.0.1 released<p><em></em></p><p><em></em></p><p><em><div style="text-align: center;"><div style="text-align: center;"><img style="border: 0px initial initial;" src="http://lh3.ggpht.com/_OdJrfDwRKLM/TbnKOw9WjyI/AAAAAAAAASE/tOO9lxJo95I/RHQ-logo-wallpaper.png?imgmax=800" border="0" alt="RHQ logo wallpaper" width="400" /></div></div></em></p><p> </p><p> </p><p>The <a href="http://rhq-project.org/">RHQ</a> team has just released version 4.0.1 of its server management and monitoring software.</p><p>This release is a bugfix release over <a href="http://javablogs.com/Jump.action?id=654840">RHQ 4 which was released earlier this month</a>. The biggest change is the addition of support for IE 7 and 8, as well as the fix for a memory leak that came from how JBossAS internally has set up the pools for MDBs and SLSBs.</p><p>You can browse the full <a href="http://rhq-project.org/display/RHQ/Release+Notes+4.0.1">release notes</a>, which also contain a link to the download.</p><p>Jay Shaughnessy has <a href="http://jayshaughnessy.blogspot.com/2011/05/smartgwt-ie7-ie8-support.html">written a blog post </a>on what was necessary with SmartGWT to get it to work on IE7 and 8.</p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-40915298304995214122011-05-02T22:19:00.001+02:002011-05-02T22:19:45.209+02:00RHQ 4 released<p><div style="text-align: center;"><em><div style="text-align: center;"><div style="text-align: center;"><img src="http://lh3.ggpht.com/_OdJrfDwRKLM/TbnKOw9WjyI/AAAAAAAAASE/tOO9lxJo95I/RHQ-logo-wallpaper.png?imgmax=800" border="0" alt="RHQ logo wallpaper" width="400" /></div></div></em></div></p><p>The RHQ team is proud to have released version <strong>4.0</strong> of <strong><a href="http://rhq-project.org/">RHQ</a></strong> monitoring and management project after 10 month of hard work. Most prominent change is the huge rewrite of most parts of the GUI in GWT.</p><p> </p><div style="text-align: center;"><img src="http://lh6.ggpht.com/_OdJrfDwRKLM/Tbm6B3gVBzI/AAAAAAAAASA/c1py032k1Jo/Bildschirmfoto%202011-04-28%20um%2021.02.19.png?imgmax=800" border="0" alt="Bildschirmfoto 2011 04 28 um 21 02 19" width="400" /></div><p> </p><p><strong>New features include:</strong></p><ul style="font-size: 10pt; line-height: 13pt; list-style-type: disc;"><li style="font-size: 10pt; line-height: 13pt; padding: 0px; margin: 0px;">new SmartGWT-based GUI </li><li>support for Postgres 9.0</li><li style="font-size: 10pt; line-height: 13pt; padding: 0px; margin: 0px;">support for deleting Agent plugins</li><li style="font-size: 10pt; line-height: 13pt; padding: 0px; margin: 0px;">support for executing an RHQ CLI script when an alert fires (for more info, see <a class="external-link" style="color: #4a5d75; font-weight: bold; font-size: 12px; text-decoration: none !important;" rel="nofollow" href="http://metlos.wordpress.com/2011/03/08/scripted-alert-notifications-in-rhq/">this blog</a>)</li><li style="font-size: 10pt; line-height: 13pt; padding: 0px; margin: 0px;">improved authorization for content repositories - public/private repos, repo owners, and MANAGE_REPOSITORIES priv</li><li style="font-size: 10pt; line-height: 13pt; padding: 0px; margin: 0px;">Much improved MySQL agent-plugin (by Steve Milidge)</li><li style="font-size: 10pt; line-height: 13pt; padding: 0px; margin: 0px;">New logfile alert-sender (by Steve Milidge)</li></ul><p>Note that Internet Explorer is not fully supported (we expect to fully support it soon) - FireFox and Webkit-based browsers are fine.</p><p>You can browse <a href="http://rhq-project.org/display/RHQ/Release+Notes+4.0.0">the release notes</a> to see a more detailed list of changes, new features and also known issued.</p><p>The <a href="https://sourceforge.net/projects/rhq/files/rhq/rhq-4.0.0/">binaries are available from SourceForge</a>.</p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-40157424557274754902011-04-21T17:29:00.001+02:002011-04-21T17:29:11.905+02:00RHQ 4 candidate release is out and waits for testing<p><img style="float: right;" src="http://rhq-project.org/download/attachments/1017410/RHQ?version=2&modificationDate=1257543585409" border="0" alt="RHQ" /></p><p> </p><p>RHQ team is <a href="http://www.rhq-project.org/display/RHQ/RHQ+4.0+Release+Plan">planning</a> to release <strong>RHQ 4</strong> end of next week. And while we know that there are <a href="https://bugzilla.redhat.com/show_bug.cgi?id=585306">areas that need more love</a>, we want to encourage every one to test the <strong>release candidate, </strong><a href="https://sourceforge.net/projects/rhq/files/rhq/rhq-4.0.0.CR/"><strong>RHQ 4 CR</strong></a>over the long week end and report back (critical) bugs, so that we have a chance to fix them for the final version.</p><p>Download is on <a href="http://sourceforge.net/projects/rhq/files/rhq/rhq-4.0.0.CR/">SourceForge</a> and the <a href="http://rhq-project.org/display/RHQ/Release+Notes+4.0+CR">release notes can be found on rhq-project.org</a>.</p><p>Speaking of giving some love: if you are willing to do some <strong>translations</strong> of the UI messages into your native language, <strong>please contact me</strong>.</p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-73315100682881129792011-03-21T10:56:00.001+01:002011-03-21T10:56:32.161+01:00RHQ tab sweep<p>We had a productive time since last tab sweep and released a <a href="http://javablogs.com/Jump.action?id=640801">third developer preview</a> of <a href="http://rhq-project.org/">RHQ</a>, as well as <a href="http://javablogs.com/Jump.action?id=646100"><strong>RHQ 4.0.0 Beta 1</strong></a>. Please give the beta a try and report issues, as well as file feature requests.</p><p>The <a href="http://www.jboss.org/webinars">JBoss developers webinars</a> series had a session about RHQ. The <a href="http://vimeo.com/19992280">recording is available on Vimeo</a>.</p><p>Ian Springer has answered the forums post about <a href="http://community.jboss.org/message/592490#592490">"JBoss AS 5.1 and RHQ"</a></p><p><strong>IRC</strong></p><p>As you probably know, RHQ team is hanging out on IRC in <a href="irc://irc.freenode.net/#rhq">irc://irc.freenode.net/#rhq</a>. If your access to IRC is blocked for whatever reasons, you can still try to use the <a href="http://webchat.freenode.net/?channels=rhq">web front end</a> to join us.</p><p><strong>Blog postings</strong></p><p>I've written: <a href="http://javablogs.com/Jump.action?id=637411">An explanation of metrics and their per minute counterparts</a></p><p>Mazz has written two blog posts: <a href="http://management-platform.blogspot.com/2011/02/alerting-and-remote-script-execution.html">Alerting and Remote Script Execution</a> and an update on <a href="http://management-platform.blogspot.com/2011/01/bundle-provisioning-via-rhq.html">Bundle provisioning with RHQ</a> both with flash demos.</p><p>Speaking of Bundles, John Sanda has created a <a href="http://johnsanda.blogspot.com/2011/02/rhq-bundle-recipe-for-deploying-jboss.html">bundle receipt for deploying JBossAS</a>.</p><p>Lukáš Krejčí has written about <a href="http://metlos.wordpress.com/2011/03/08/scripted-alert-notifications-in-rhq/">running CLI scripts as alert notifications</a>. This feature made it into RHQ 4 beta 1.</p><p>Jay Shaughnessy has written a hint about <a href="http://jayshaughnessy.blogspot.com/2011/02/smartgwt-tip-regex-evaluation.html">regular expression evaluation in GWT</a>.</p><p><strong>Developer mailing list </strong>(<a href="https://fedorahosted.org/mailman/listinfo/rhq-devel">subscribe here</a>)<strong></strong></p><p>We had some discussions about a new <a href="https://fedorahosted.org/pipermail/rhq-devel/2011-March/000670.html">Auditing subsystem</a> (this would be a great topic to start RHQ hacking, as this can be (mostly) done in great isolation to the existing code base.</p><p>Another discussion went around the <a href="https://fedorahosted.org/pipermail/rhq-devel/2011-February/000584.html">new Summary/Activity pages for groups</a> and about displaying <a href="https://fedorahosted.org/pipermail/rhq-devel/2011-February/000605.html">recent package history and bundle deployments on those</a>.</p><p> </p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-21702234068542928072011-03-14T14:30:00.001+01:002011-03-14T14:30:14.054+01:00RHQ 4 beta 1 available<p>Last week the <strong>first beta version of RHQ 4</strong> has been made available. This beta is the first large milestone towards a <a href="http://rhq-project.org/">RHQ</a> 4 release later this year. The bigest part of the UI has been transitioned to GWT and is now in a state for serious testing.</p><p>One new cool feature made it in to the beta (since the last <a href="http://javablogs.com/Jump.action?id=640801">DP3</a> release): there is now an <a href="http://metlos.wordpress.com/2011/03/08/scripted-alert-notifications-in-rhq/">alert sender that can run CLI scripts</a> when an alert has fired.</p><p>Check the <a href="http://www.rhq-project.org/display/RHQ/Release+Notes+4.0+Beta1">release notes page</a> which also contains the link to the downloads.</p><p>As always: please give us feedback!</p><p style="font-size: 13px;"><strong>Tell us your story about RHQ</strong></p><p style="font-size: 13px;">We are interested on how you use RHQ. Please reply in the <a href="http://community.jboss.org/thread/163960">forums</a> or the <a href="https://fedorahosted.org/mailman/listinfo/rhq-users">rhq-users mailing list</a></p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com0tag:blogger.com,1999:blog-6080082.post-88264172032877882822010-12-30T15:46:00.001+01:002010-12-31T11:24:32.299+01:00Running the RHQ agent as root? Alternatives? ACLs!<p> </p><p>Some <a href="http://rhq-project.org/">RHQ</a> plugins require access to some resources that are normally only readable by <em>root</em> or the respective owner. The example I am using here is the postgres plugin. This plugin needs access to <code>$PGDATA/postgresql.conf</code> in order to show the configuration in the UI (and to possibly update it).</p><p>Unfortunately postgres requires this file to be owned by user <em>postgres</em> and only be read(-writable) by this user (mode 600) and the directory containing this file (<code>$PGDATA</code>) is also required to be owned by user <em>postgres</em> and only be accessible by user <em>postgres</em> (mode 700).</p><p> </p><p>One way to access the data it to run the RHQ agent as <em>root</em> and be done. But even if the agent does not do any harm, many admins don't feel comfortable with it - especially when using plugins from third parties that they don't have the source for. Or when using the script plugin, which can use shell scripts to do its work.</p><p>Luckily there is an easy way to get around this limitation: ACLs</p><p>ACL (access control lists) are a posix feature that is implemented in most (all) modern system these days. The way to set and query them are different unfortunately.</p><p>On <a href="http://www.redhat.com/">Red Hat</a><a href="http://www.redhat.com/rhel/">Enterprise Linux</a> (and <a href="http://fedoraproject.org/">Fedora</a> and probably all other Linuxes) you can set them like this ('hrupp' is used as agent user):</p><pre class="prettyprint" style="color: #007000; font-family: monospace; line-height: inherit; background-color: #fafafa; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; padding: 10px; border: 1px solid #cccccc;">postgres$ pwd<br />/var/db/postgres<br />postgres$ setfacl -m u:hrupp:rw $PGDATA/postgresql.conf<br />postgres$ setfactl -m u:hrupp:x $PGDATA</pre><p><code>ls</code> shows that there are ACLs enabled:</p><pre class="prettyprint" style="color: #007000; font-family: monospace; line-height: inherit; background-color: #fafafa; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; padding: 10px; border: 1px solid #cccccc;">root# ls -lsa<br /> 8 drwx--x---+ 13 postgres postgres 4096 Dec 21 14:04 .<br />24 -rw-rw----+ 1 postgres postgres 16872 Dec 17 12:11 postgresql.conf<br /></pre><p>See the little + in the perms? That indicates an active ACL. Those can be queried via getfacl:</p><pre class="prettyprint" style="color: #007000; font-family: monospace; line-height: inherit; background-color: #fafafa; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; padding: 10px; border: 1px solid #cccccc;">root# getfacl .<br /># file: .<br /># owner: postgres<br /># group: postgres<br />user::rwx<br />user:hrupp:--x<br />group::---<br />mask::--x<br />other::---<p> </p><p>root# getfacl postgresql.conf<br /># file: postgresql.conf<br /># owner: postgres<br /># group: postgres<br />user::rw-<br />user:hrupp:rw-<br />group::---<br />mask::rw-<br />other::---<br /></p></pre><p>Also remember that the mount options need to enable ACLs first.:</p><pre class="prettyprint" style="color: #007000; font-family: monospace; line-height: inherit; background-color: #fafafa; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; padding: 10px; border: 1px solid #cccccc;">root# grep acl /etc/fstab<br />/dev/mapper/VG_data-data1 /var/db ext4 defaults,<strong>acl</strong> 1 3<br /></pre><p> </p><p>On Mac OS X the command to see them in directory listings is '<code>ls -lea</code>' (shown below). To set an ACL you can use <code>chmod</code> (here 'hrupp' is used as agent user):</p><pre class="prettyprint" style="color: #007000; font-family: monospace; line-height: inherit; background-color: #fafafa; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; padding: 10px; border: 1px solid #cccccc;">postgres$ pwd<br />/var/db/postgres<br />postgres$ chmod +a "hrupp allow read,write" postgresql.conf<br />postgres$ ls -le postgresql.conf<br /> -rw-------+ 1 postgres postgres 16759 Jul 22 2009 postgresql.conf<br />0: user:hrupp allow read,write<br />postgres$ chmod +a "hrupp allow execute" .<br />postgres$ ls -lea<br />drwx------+ 23 postgres postgres 782 Dec 30 15:00 . <br />0: user:hrupp allow search<br />-rw-------+ 1 postgres postgres 16759 Jul 22 2009 postgresql.conf <br />0: user:hrupp allow read,write<br /></pre><p>The '0:' tells us that this is the first acl on the file. If there were more acls set, they would be enumerated there as well and evaluated in order.</p><p> </p><p>I have been told that recent Windows versions also support POSIX ACLs, so this should work there as well.</p><p>---</p><p>This tip was brought to you by the excellent <a href="https://www.redhat.com/courses/rh135_red_hat_system_administration_2_and_rhcsa_exam/">RHCSA training</a>.</p><p> </p>Heikohttp://www.blogger.com/profile/04989356067273734299noreply@blogger.com3