Showing posts with label jopr. Show all posts
Showing posts with label jopr. Show all posts

Friday, July 09, 2010

RHQ 3 released, but where is Jopr ?



So we've released RHQ 3 two days ago -- but what about Jopr? Isn't that supposed to build on top of RHQ? Shouldn't there be a release as well?

Actually we did release Jopr too -- those bits are now (since last September) included in RHQ, so there will be no more separate artifacts or downloads. When you download RHQ, you'll get Jopr too -- so simple :-)


The documentation wiki has full install instructions.

Btw: DZone has a nice article about all the new features, check it out and vote it up. They also have my announcement post online.

Monday, May 31, 2010

RHQ / Jopr tab sweep

RHQ release 3.0.0.B06 is out and contains support for provisioning of new software.

Alex Kiefer has worked hard and now we have Nagios support in RHQ.

Episode 6 of the Jopr podcast has been released and is talking about the new pluggable alert senders in RHQ.

And finally we've got portuguese translations of the installer messages by Rafael Soares Tuelho.

As always, give us feedback.

Thursday, May 27, 2010

Nagios Plugin for RHQ and Jopr available



As previously written, Nagios support is coming to RHQ.

Well, Alex has done more work and actually it is here now in its first version and is out-of the box able to monitor the standard services that are in a Nagios install:

Screenshot of resource tree and metric

(Screenshot with standard services and metrics)


This picture shows again the setup:
#alttext#


To take the nagios server into inventory, you need to go to a platform and use the Manually Add functionality, where you have to give the connection properties "host, where nagios is on" and "port" (6557 in the image)

But before you can start you have to:

  • install mk_livestatus within Nagios and xinetd.
    Alex has documented this in the Wiki; the mk_livestatus installation is very well described on the livestatus web page.
  • For all services in addition to the standard ones supplied in the plugin descriptor you need to update the plugin-descriptor of the plugin. This is described below.





As we know the second step is somewhat cumbersome, we will in the future work to make the detection of the resource types dynamic, so that you basically need to point the plugin at a Nagios install and the plugin will then "learn" all the types of service (e.g. SSH, Swap , ..).

PLEASE give feedback on the plugin on the rhq-devel mailing list.
Be it because you know more cool metrics to look at or because you want to help with the parser issue mentioned below. Also the source has a TODO file, that lists more ideas for contributions :-)

Source



You can get the source from the RHQ git repository in the nagios branch.
This first version has been tagged as RHQ_NAGIOS_PLUGIN_V1



Adding additional services



The following is an excerpt from the plugin descriptor:

   <service name="Root Partition"  
class="NagiosMonitorComponent"
discovery="NagiosMonitorDiscovery"
description="root partition service">
<metric property="free_space|plugin_output|.*/ ([\d]+).*"
displayName="Free space" measurementType="dynamic"
units="megabytes" displayType="summary"/>
</service>


The first thing you need to provide is the name of the RHQ-resourceType, which is used in <service name="Root Partition"... To obtain those, you can do the following query against mk_livestatus:

$ cat service-query
GET services
Columns: display_name
$ nc localhost 6557 < service-query
Root Partition
SSH
...
$

So in this example services were 'Root Partition' and 'SSH'

The next thing is to provide the metrics. The property="free_space|plugin_output|.*/ ([\d]+).*" attribute is used here. It actually consists of three parts separated by a bar (|) symbol:

  1. Text identifier - currently unused
  2. The column of the livestatus service query output (see below)
  3. A regular expression where the first capturing group is used as return value


Let's have a look at an extended service query (actually in version 1.0 of the plugin, only he plugin_output column is supported, as the parser in the plugin needs some more work (see below):
$ cat service-query
GET services
Columns: display_name plugin_output
$ nc localhost 6557 < service-query
Root Partition;DISK OK - free space: / 3611 MB (48% inode=71%)
...
$


So Root Partition delivered "DISK OK - free space: / 3611 MB (48% inode=71%)" which is then matched by .*/ ([\d]+).* to extract the value of 3611.

The parser issue



mk_livestatus delivers as default data separated by semicolon (;), but some columns like 'perf_data' (not shown above) can also return data that consist of multiple items separated by semicolon, so that the parser counts wrong and delivers bad answers.

Luckily mk_livestatus can do some
output formatting that can help to work around this. Please ping us if you want to help here.


RHQ community build 3.0.0.B06 released



The RHQ team is pleased to announce the immediate availability of community release 3.0.0.B06 of the RHQ systems management and monitoring platform. As before this release includes the Jopr bits.

This release features a lot of bug fixes as you can see on the
Release Notes.

New features include optimized search in Inventory and especially provisioning of software (like JBossAS servers). See below.

You can download the release from SourceForge

Provisioning...

To enable this you need to go to Administration -> System Configuration -> Settings and enable debug mode

#alttext#


This will then show a new menu "Debug" with a "GWT GUI" entry:

#alttext#


Click on "GWT GUI" and you'll get to a GUI written in GWT with a new "Bundle" menu item.

To learn more about this, have a look at the Wiki and especially
this flash demo video by Mazz

Tuesday, May 04, 2010

RHQ community build 3.0.0.B05 released



The RHQ development team is happy to announce the availability of the 3.0.0.B05 community build of RHQ. As in previous community releases, this also contains the Jopr bits.

As usual, changes have been recorded on the change log page.

Most notable changes were:

  • Support for obfuscated db passwords

  • A fix for postgres 8.4+ servers to display statistics again
  • Completion of the alert sender plugins. This includes the possibility to finally execute resource operations on any resource as result of an alert
  • Suport for Oracle 11g database



Please use and test this release and report issues or feature requests in Bugzilla. If you want to contribute to the project, please have a look at the Contributions page on the wiki.

You can download the release from SourceForge.

If you want to develop plugins against this version, you can find the respective artifacts in the new JBoss Maven repository at https://repository.jboss.org/nexus/content/repositories/releases/org/rhq/.

Friday, April 30, 2010

RHQ/Jopr plugin development and versions

Recently a user showed up on IRC and said he had written a plugin and that deploying it is throwing this error:

2010-04-30 14:26:10,601 WARN [org.rhq.enterprise.server.core.plugin.AgentPluginDeploymentScanner] Failed to scan plugin [...../myPlugin-1.0.jar] found on filesystem. Skipping it.

Cause: java.lang.Exception: No version is defined for plugin jar [..../myPlugin-1.0.jar]. A version must be defined either via the MANIFEST.MF [Implementation-Version] attribute or via the plugin descriptor 'version' attribute.


While the error message is accurate, it is still not obvious, what is going on, as most of the plugins in the RHQ source tree do not explicitly set a version number.

As the message says you need to:

  • either explicitly set a version in the plugin descriptor like

    <plugin name="myPlugin" version="1.2.3" ... >

  • or tell maven to add a Specification-Version: in MANIFEST.MF, which automatically happens when you have the rhq-parent pom as (indirect) parent of your pom, which then contains this:
    <plugin>

    <artifactId>maven-jar-plugin</artifactId>

    <configuration>

    <archive>

    <manifest>

    <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>



In most cases, following the RHQ-version is easiest, as you don't have to do anything. If you want to do release-cycles outside of RHQ, the explicit version is for sure better.

Monday, April 26, 2010

Nagios support coming to RHQ...

Alexander Kiefer started working on supporting the Nagios monitoring system from within RHQ. The idea here is not to plugin the Nagios plugins directly into RHQ, but to talk from RHQ (better, a RHQ plugin) to the Nagios instance via mk_livestatus for Nagios. And overview of the setup is shown in the next figure.

NagiosSetup.png


The first cut of the implementation is mainly about talking to Nagios via mk_livestatus. Next steps will be

  • Implement the plugin in a way that the user only needs to modify the plugin descriptor to monitor additional Nagios resources
  • Implement dynamic metadata so that the plugin can automatically detect resource types present in Nagios and detect resources of the given types.


Alex has started documenting the Plugin in the RHQ Wiki

Code for this is in the nagios branch in git.

PLEASE try it and give feedback on the rhq-devel mailing list

Monday, February 22, 2010

RHQ / Jopr tab sweep

Lot has happened since the last tab sweep ...

Releases

RHQ 3.0.0.B03 has been released. You can find more information on the release notes page and the bits at the download page.

Videos

There are several new videos available:





Talks

I've been talking about RHQ at FOSDEM X - the talk was well received and its recording is finally online (see above).


Misc

Spacewalk 0.8 has been released.

Joe Marques gives a tip about automation in web development




Thursday, February 04, 2010

RHQ / Jopr tab sweep



Releases

RHQ 3.0.0.b02 has been released

Web articles

We have set up a page that lists third party plugins and also usages of Jopr and RHQ - if you want to be listed here, contact us


Marek Goldmann has written a blog post, where he shows how CirrAS uses RHQ for management of servers in the cloud. This post especially talks about using the RHQ CLI to import and configure resources.

Mazz also refers to this in his latest blog entry. In another post he describes how to install the JD java decompiler, which also understands generics unlike the outdated (but often used) jad.

My (German) article "Polyglotte Bohnen" on JSR 223 usage at the example of JRuby got published at Heise Developer. JSR 223 is in usage in a few places within RHQ: CLI, script2 alert plugin and scriptlang alert sender plugin (and probably others).

Talks

I'm going to FOSDEM, the Free and Open Source Software Developers' European Meeting

I will talk about RHQ at FOSDEM. There will be other people from Red Hat, as well as many other interesting talks.

Tuesday, February 02, 2010

RHQ 3.0.0.b02 released - includes Jopr

We are proud to announce the release of RHQ 3.0.0.b02. Like the 1.4.0.B01 release, this is a developer preview and not intended for production. As with the previous release, this includes the Jopr bits, which now also live in the combined RHQ source repository.

You may wonder about the jump in the major release number. Well, first of all, the next release will be a big jump forward for the project, so a new major number is appropriate. And then, there is a very practical reason too: as I've already written earlier, the download not only contains the RHQ bits, but also the Jopr bits, which creates some confusion in the install / upgrade process, as the Jopr bits, which in the last Jopr-release were named xy-plugin-2.3.1, in 1.4.0.B01 they were suddenly xy-plugin-1.4.0.b01. The RHQ installer assumes that plugin versions are increasing and thus is considering the Jopr plugins in 1.4.0.B01 as older.
We could have hacked around this, but just increasing the major number solves this issue in a very natural way.

New Features:

  • Some French installer messages contributed by Victor Montaner

  • Alerting

    • Much improved UI for the new alert sender plugins

    • Alert definition UI partly moved from JSF to struts

    • Improved alert senders for microblog and snmp

    • It is now possible to define templates of alert notifications that contain a bundle of senders that can be reused to create notifications for alert definitions. See menu "Administration -> Settings -> Alert Notification Templates"

    • Alert migration: the datamodel for alerts has changed an needs migration. See the README for a how to

    • NOTE: alert senders for Subject, Roles and Operation are not in this release - they will come back soon


  • Raw configuration support: It is now possible to edit the raw text of configuration files and not only the structural view of them. This includes validation and rollback

  • Operations for server side plugins: it is now possible to define operations on server side plugins, that can be triggered through the alert plugin gui (Administration -> System Configuration -> Plugins -> Server Plugins)

  • Cosmetical changes in the left nav tree


Have a look at the full release notes for more details.

Download:

You can download this release from SourceForge at

https://sourceforge.net/projects/rhq/files/rhq/rhq-3.0.0.B02/. There is an agent download as well, but you don't need to download this, as the agent is contained in the server download already.

The source for the community release can be found in the 3.0.0.b02 branch in RHQ git.



Thursday, January 21, 2010

JBoss talks at FOSDEM 2010

FOSDEM, the Free and Open Source Software Developers' European Meeting

I will talk at FOSDEM 2010 in Brussels about RHQ and Jopr. (Sat, 3pm)

There are actually other JBoss-related talks too:

Of course, there are lots of other interesting talks at Fosdem (some would say: too many):

And much much more.

For iPhone users there is an application available that holds the whole schedule, can inform you what is running now and next and can hold your favorites

Monday, January 18, 2010

RHQ / Jopr tab sweep



Call for papers for JBoss World 2010 in Boston

ends on January 22th - be sure to submit a talk about Jopr or RHQ!



Other news:

Mazz has updated the Byteman plugin for RHQ see http://management-platform.blogspot.com/2010/01/byteman-plugin-revisited.html

Mobicents JAIN SLEE server 2.x does now also support management via Jopr / RHQ (via Amit Bhayani).

We've got some French translations for Installer messages in - those have been provided by Victor Montaner long time ago. If you want to help translating the messages into other languages, feel free to ping me or any other team member.

Speaking of participating: this wiki page contains a list of hints about contributing to RHQ.

RHQ Mastermind Greg Hinkle has written a longer blog post about autocompletion in the RHQ Command line interface (CLI).

I will talk at FOSDEM 2010 in Brussels about Jopr and RHQ. FOSDEM is one of the largest open source conferences in Europe (5000 attendees expected). Have a look at the JBoss developer room page for the exact schedule (as soon as it is published). And the best: admission is free!


FOSDEM, the Free and Open Source Software Developers' European Meeting

Monday, December 21, 2009

RHQ / Jopr tab sweep

This post is to gather a few of the recent developments around RHQ and Jopr

Just in case you have missed it: RHQ 1.4.0.B01 is out - this build contains the Jopr plugins and thus is the successor of the Jopr-server builds that you have seen before.

Mailing lists:

We have opened two mailing lists for RHQ where we expect to bundle the email activities in the future:

  • rhq-users: for user questions around RHQ (including the Jopr plugins

  • rhq-devel: for developing with and on RHQ


Video:

Galder Zamarenno from Infinispan has created a video showing a three-node Infinispan cluster being monitored. It demonstrates graphical measurements, and non-graphical information of running Infinispan instances, addition or removal of monitored metrics and finally, execution of management operations on a Infinispan instance.

Mazz has created a demo on how to use the new server side plugins to periodically create reports on the server.

Alert senders:

Alert notifications can now be processed by plugins. This means that it is finally possible to easily write own notification schemes to forward alerts to various devices. Two posts show how to write such a sender (Part 1 & Part 2).

Agent plugins:

A new agent plugin allows to use script in Ruby and JavaScript to do monitoring. This allows to easily monitor resources via dynamic scripting languages without writing Java code.

Tuesday, December 15, 2009

How to write an alert sender plugin for RHQ/Jopr (Part 2)

Now that we have seen the "theoretical side" of writing an alert sender, lets just start and code one up.

First grab RHQ from GIT and then change into
modules/enterprise/server/plugins.


  • Run this little script:

    mkdir alert-url
    cd alert-url
    mkdir -p src/main/java/org/rhq/enterprise/server/plugins/alertUrl
    mkdir -p src/main/resources/META-INF

  • copy over the pom.xml from alert-email and change email to url in it:

    cp ../alert-email/pom.xml pom.xml,1
    sed -e 's/email/url/' < pom.xml,1 > pom.xml

  • Lets edit the plugin descriptor

    vi src/main/resources/META-INF/rhq-serverplugin.xml

    <alert-plugin
    name="alert-url"
    displayName="Alert:Url"
    xmlns="urn:xmlns:rhq-serverplugin.alert"
    xmlns:c="urn:xmlns:rhq-configuration"
    xmlns:serverplugin="urn:xmlns:rhq-serverplugin"
    package="org.rhq.enterprise.server.plugins.alertUrl"
    description="Alert sender plugin"
    version="1.0"
    >

    This is just the generic header. Now lets set the target host name on the server-wide preferences and

    <serverplugin:plugin-configuration>
    <c:simple-property name="hostName"
    default="localhost" />
    </serverplugin:plugin-configuration>

    Now the name of the sender and its alert sender class

    <short-name>Url</short-name>
     
    <!-- Class that does the actual sending -->
    <plugin-class>UrlSender</plugin-class>

    And now finally the Information that is specific to an alert definition. Lets just set the port here for demonstation purposes.

    <alert-configuration>
    <c:simple-property name="port" type="integer"/>
    </alert-configuration>
    </alert-plugin>

  • Now lets implement the Java sender class

    $ cd src/main/java/org/rhq/enterprise/server/plugins/alertUrl
    $ vi UrlSender.java

    package org.rhq.enterprise.server.plugins.alertUrl;
     
    import java.io.OutputStream;
    import java.net.HttpURLConnection;
    import java.net.URL;
     
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
     
    import org.rhq.core.domain.alert.Alert;
    import org.rhq.enterprise.server.alert.AlertManagerLocal;
    import org.rhq.enterprise.server.plugin.pc.alert.AlertSender;
    import org.rhq.enterprise.server.plugin.pc.alert.ResultState;
    import org.rhq.enterprise.server.plugin.pc.alert.SenderResult;
    import org.rhq.enterprise.server.util.LookupUtil;
    import org.rhq.enterprise.server.xmlschema.generated.serverplugin.perspective.ResourceTaskElement;
     
    public class UrlSender extends AlertSender{
     
    @Override
    public SenderResult send(Alert alert) {

    So this was just the bolier plate code - now lets get the work done by first getting our data that the user entered in the UI

    String hostname = preferences.getSimpleValue("hostname","localhost");
    String portS = alertParameters.getSimpleValue("port","80");

    Then construct an URL and URL connection

    HttpURLConnection conn = null;
    try {
    URL url = new URL("http://" + hostname + ":" + portS);
    conn = (HttpURLConnection) url.openConnection();
    conn.setRequestMethod("POST");
    conn.setDoOutput(true);
    conn.setDoInput(true);
    OutputStream out = conn.getOutputStream();

    Then we get the message together - you see, you can even call into the EJB layer to get things done - and send it off.
         
    AlertManagerLocal alertManager = LookupUtil.getAlertManager();
    StringBuilder b = new StringBuilder("Alert: '");
    b.append(alert.getAlertDefinition().getResource().getName());
    b.append("' (");
    b.append(alert.getAlertDefinition().getResource().getId());
    b.append("): ");
    b.append(alertManager.prettyPrintAlertConditions(alert));
     
    out.write(b.toString().getBytes());
    out.flush();
    conn.connect();
    } catch (Exception e) {
    return new SenderResult(ResultState.FAILURE,"Sending failed " + e.getMessage());
    }
    finally {
    if (conn!=null)
    conn.disconnect();
    }
     
    return new SenderResult(ResultState.SUCCESS,"Sending to " + hostname + ":" + portS + " worked");
    }
    }

    After this was done, we return our operation result in a new SenderResult object - that's all.

    Now just change back to the root directory (the one with the pom.xml file) and fire "mvn install". This leaves you with a jar archive in target/ that you can then deploy into a (running) server:

    Deploying the plugin



    You can deploy the plugin in three ways, where the first one is probably the best, when developing such a plugin:

    • run mvn install above with option -Pdev - this will automatically deploy into the development containter
    • copy the plugin manually into the dropbox at $RHQ_SERVER/plugins (that directory is in parallel to bin/ and jbossas/ )
    • Deploy via GUI:


      • Go to the plugins page
        Bildschirmfoto 2009-12-15 um 21.00.37.png


        and select server plugins at the top tab
      • Scroll down to the upload box, select add, select the plugin in the open dialog and then when done, click on "upload".
      • Press "scan for updates" at the bottom of the plugin list above - it should now show up in the list of plugins


    Configuring it



    Click on "Alert:Url" in the list of plugins. This will bring you to the plugin details. And then on "Configure Alert:Url" (configuring could also happen from the Administration->System Configuration->Settings menu).

    You will see a list of plugins where the Alert:Url one is selected on the left and the current site wide preferences on the right:

    Bildschirmfoto 2009-12-15 um 21.41.18.png


    If you click on Edit, you can edit the host to some other value than the default.

    Using it in an alert definition




    Go to the usual screen for alert definitions of a resource - in the preliminary gui, there is a link To Alert sender plugins; click it.

    You will come to a screen with a drop down - select Url from it

    THIS UI IS CURRENTLY WORK IN PROGRESS

    Click on "Go" and then in the configuration enter the port number to use. Click on "submit it".

    Done

    Congratulations


    you have just written and deployed your first alert sender plugin for RHQ and Jopr




Monday, December 14, 2009

How to write an alert sender plugin for RHQ/Jopr (Part 1)

Now that RHQ 1.4.0-B01 is out, it is time to show you how you can easily write your own alert notification mechanism and plug it into RHQ (see also "RHQ and the future of alerts").

As an example we'll use a sender that will use a http-POST request to a remote host where the body of the request will contain the alert message (like the one you know from the existing email-sender).

But before we do this, I'll show you the bits involved, so that the source code is easier to understand.

In order to write the plugin you need two things at least:

  • plugin descriptor

  • a sender class


Sometimes you also want to implement a component class (more later).

So lets have a look at them in turn:

Plugin descriptor



The structure of the plugin descriptor, rhq-serverplugin.xml, looks like this:

rhq-serverplugin-alert.png


It follows the schema definition in rhq-serverplugin-alert.xsd.
Elements in it are the following.
  • alert-plugin: This is the parent element for the whole descriptor. It contains the following attributes, which are all taken from the general server plugin descriptor:

    • name: name of the plugin

    • displayName: name of the plugin as it shows up in the UI

    • package: the package of the plugin. Is used to determine the fully qualified class name if it contains no package. Within RHQ, there is a naming convention of Alert:medium for this

    • description: A description of the plugin as it shows up in the list of plugins

    • version: the version of the plugin.




The first few child elements come from the general server-plugin descriptor and apply to all server side plugins.

  • help: general information about the plugin, that also shows up in the list of plugins

  • plugin-component: class name of a class that gets loaded on plugin start and stays there as a "singleton" until unload. See below.

  • scheduled-jobs: this is a configuration that allows you to have your plugin code be run at regular intervals; it is probably less of interest for alert senders

  • plugin-configuration: properties listed here will end up in the system-wide preferences system UI and serve to do general configuration of the plugin (like e.g. the name of a remote host where alert notifications should be sent to)


The next batch of elements is specific to the alert-plugins:

  • short-name: the short name of the sender. This is used e.g. in UI drop downs to select the sender

  • plugin-class: the name of the class that implements the abstract AlertSender class to build the actual sender.

  • alert-configuration: specific properties on a per AlertDefinition basis. This can e.g. be the list of email addresses the alert notification should be sent to.

  • custom-ui: this element is not yet active and is supposed to help building a custom UI if the UI via alert-configuration is not powerful enough.



The sender class



All senders need to extend the class org.rhq.enterprise.server.plugin.pc.alert.AlertSender which looks a little like this:

public abstract class AlertSender {
 
/** Configuration from the global per plugin type preferences */
protected Configuration preferences;
 
/** Configuration from the per alert definition parameters */
protected Configuration alertParameters;
 
/** Global component holding persistent resources */
protected T pluginComponent;
 
/** Do the work */
public abstract SenderResult send(Alert alert) ;
}


The method of interest is send(Alert) where you get the data for this specific alert passed in. You need to implement it.

The preferences or the alert definition specific properties are injected by the RHQ server, as well as the plugin component, so that you can just get your properties that you set up in the deployment descriptor via calls like this:

String hostname = preferences.getSimpleValue("hostName","localhost");

assuming that you have the following in the plugin descriptor:

....
<serverplugin:plugin-configuration>
<c:simple-property name="hostName" />
</serverplugin:plugin-configuration>
...


Component class (optional)



The component class is a class that implements the interface org.rhq.enterprise.server.plugin.pc.ServerPluginComponent. It can be used to e.g start up a connection to a remote host within the start() method and tear it down when stop() is called. You need to expect that start() and stop() can get calles multiple times during the life of a plugin.

The interface has two more methods: initialize() and shutdown() - those are called directly after loading and before unloading an alert sender. The idea here could e.g. to load an external library and unload it at plugin unload.

The component class is a "singleton" in the lifecycle of a server plugin and stays present while the plugin is loaded. It is optional for alert Plugins - if it is present, it will be injected into AlertSender.pluginComponent.

Plugin structure



The alert sender is created in the standard Maven-2 directory structure. Java sources go into src/main/java/, while the plugin descriptor goes into src/main/resources/META-INF/rhq-serverplugin.xml:

File system structure for an alert sender plugin


Round up


Ok, that's it for now. You have seen what is involved in writing an alert sender plugin for RHQ and Jopr (versions 1.4.0.B01 and up).

As always give me and us feedback - e.g. via Irc at #rhq on freenode.


Continue with part 2...

Friday, December 11, 2009

RHQ 1.4.0.B01 released - includes Jopr

The RHQ project is pleased to announce the release the first developer build of the RHQ 1.4.0 platform. This developer release, 1.4.0-B01, provides an early looks at the new features which we are planning for the 1.4.0. This release contains many of the plugins which had been available as part of the Jopr project, along with the plugins that were included in previous RHQ releases.

Note: we do not advise to upgrade any existing Jopr or RHQ installs with this build!

Check out the
Release notes.

And
download the software.
The individual maven project artifacts have been published to the JBoss maven repository under org/rhq/ and org/jboss/on/.

Source code can be found in the git repository at fedorahosted.

If you have questions, join us on #rhq on irc.freenode.net or use the mailing lists:

Of course you can still use the existing mailing lists and forums.

Monday, October 26, 2009

RHQ and Jopr: new source repository

Yes, we can as well :)

In the past it was often confusing to users that we have two source repositories for RHQ and Jopr. We have recently changed this.

The new RHQ repository lives now at http://git.fedorahosted.org/. There are a few branches defined, but the main one of interest is origin/master.

As you can see, we have not only move the repository location, but also move to the git version control system and even merged Jopr and RHQ together into one repository - so no more riddling where to find what.


See also this post about the change to bug tracking.

RHQ Bugtracker moves to Bugzilla - action required

RHQ project logo

Project RHQ, which is the foundation for Jopr will soon move all bug tracking from the old JIRA system at jira.rhq-project.org over to a bugzilla instance at Red Hat.

So when you have an account at the jira and reported bugs, you should follow those steps to have your cases linked to you on the new bugzilla site:


  1. Go to bugzilla at bugzilla.redhat.com

    1. If you don't yet have an account create one with your preferred email address.
    2. If you do have an account, login (or submit a password change request then login). And make a note of the email address you are using.

  2. Go to RHQ jira (http://jira.rhq-project.org/browse/RHQ),
    log in and set your email address through your profile (http://jira.rhq-project.org/secure/EditProfile!default.jspa) to the one you are using in bugzilla above.

Cutover will happen within the next few days

For now, the Jopr bugtracker will stay at the JBoss jira, but will probably also merged into bugzilla in the future.

Wednesday, October 07, 2009

Jopr, RHQ and the availability check interval (updated)



Jopr and RHQ check from time to time for each resources availability. This is done in the agent, where a periodic thread calls the getAvailability() method of each ResourceComponent. After this scan the result is sent to the server and the server shows the red and green state on the resource.

This server side processing creates a certain stress in large environements (say: hundreds of agents with ten thousands of resources), so that in Jopr 2.3 we have increased the interval this check is done to 5 minutes.

For many use cases (smaller installs, testing) this is too long. Luckily, this interval is not cast in stone, but configurable in the agent settings file, conf/agent-configuration.xml:


<!--
 
_______________________________________________________________
rhq.agent.plugins.availability-scan.period-secs
 
Defines how often an availability scan is run. This type
of scan is used to determine what resources are up and running
and what resources have gone down. The value is specified in
seconds.
-->
<!--
<entry key="rhq.agent.plugins.availability-scan.period-secs" value="300"/>
-->


You see the default is shown as commented value. To change this to a different value, remove the xml comment signs around it and change this back to e.g. 60 seconds (it will probably not make any sense to go lower than that, as the load on the agent, your managed resource and also the Jopr server will increase again):

<!--
-->
<entry key="rhq.agent.plugins.availability-scan.period-secs" value="60"/>


After this is done, you need to restart the agent to have it read the new value (see also next paragraph).

UPDATE

As the agent writes its configuration into the java preferences as backing store, the above change will not directly be honored. This may sound strange at first, but it has the advantage that you can run an agent, remove it, install a newer version of it and have the new version automatically use the saved values of the first agent install.

So you need to tell the agent that it indeed should read the new configuration file. This can be done by starting the agent with the option --clenanconfig or better by supplying -c agent-configuration.xml. This is explained at the top of the agent-configuration.xml file and also in the yellow box in the agent install document.


Of course this applies to JBoss ON 2.3 as well.

Monday, October 05, 2009

Jopr installer bug - careful when testing



The RHQ 1.3 and Jopr 2.3.1 installer has a little issue (see RHQ-2222 jira), where it clears out the database password when you click on "Test connection".

Lets have a look at a screen shot:

Bildschirmfoto 2009-10-05 um 17.48.13.png


When setting a database password (green circle) and then testing the connection (orange circle), the password will be reset and the install will fail later on.

If you are using the embedded H2 database, just re-select it in the drop down (violet circle) to have the database password filled in again by the system. Actually with H2, there is no need to test the connection in the first place :-)