I've seen a few people ask if RHQ has this capability, so I blogged about it and put together a flash demo to show people how it works.
This is the feature where you want to execute your own custom scripts on a remote machine when an alert is triggered (the use case is something along the lines of having the script try to reconfigure something or start/stop some server when an abnormal condition occurs).
blog:
http://management-platform.blogspot.com/2011/02/alerting-and-remote-script-e...
demo:
http://www.rhq-project.org/display/JOPR2/Demo-AlertsRemoteScriptExecution
rhq-users@lists.stg.fedorahosted.org