In many situations it is needed that alerts be recorded for audit purposes or forwarded to other systems. This can be accomplished by writing fired alerts to a log file via log4j on the server, from where the other system can read the alert data as input.
Contribution from Steve Millidge added in ea44c9b22fcf4
I looked around, but not sure how to test this. Setting this to Need info.
The sender is in RHQ 4 b1 ; the server plugin should have a description on how to set up logging so that alerts go into a specific log file: <serverplugin:help> Used to send notifications to a Log4J Category. This enables you to send different alerts to different log files where they can be scraped by different system management tools e.g. OVO. To configure log4j in the RHQServer edit the file ${rhq.server.home}/conf/jboss-log4j.xml and configure an appender for each of your log categories. The format of the log4J message is; ALERT,Priority,AlertName,AlertDescription,ResourceName,ResourcePlatform,AlertDetails,RHQURL </serverplugin:help> We should probably add a page to the RHQ wiki about this.
discussed with deon. assigning bug to her for consideration for possible inclusion in the documentation ...possibly at this location: http://documentation-stage.bne.redhat.com/docs/en-US/JBoss_Operations_Network/3.0/html/Basic_Admin_Guide/writing-serverside-plugins.html#example-alert-sender
Reassigning to John Ha.