Bug 577256 (jon24-alert-scripts)

Summary: Support executing agent side scripts as the result of an alert
Product: [Other] RHQ Project Reporter: Charles Crouch <ccrouch>
Component: No ComponentAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecifiedCC: hbrock
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-04 14:06:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 573816, 599538, 602682, 613834, 614165    
Bug Blocks: 577011    

Description Charles Crouch 2010-03-26 15:11:50 UTC
Through the use of the new pluggable alert notification system it should be possible to configure an alert to trigger the run an arbitrary script on a specific platform which is inventory. We should test and document that this use case is working as expected, both for scripts which are automatically added to the inventory under a JBAS instance and those which need to be manually added to the inventory. It should be possible to pass relevant information from the alert and the resource which the alert was triggered on, to the script.

Comment 1 Charles Crouch 2010-04-26 15:20:07 UTC
Some test cases that have occurred to me:
-Test alert and resource arguments can be passed successfully through to scripts on multiple OS's
-Test what happens if multiple scripts are found that match the selection criteria, which one gets used. (maybe covered by https://bugzilla.redhat.com/show_bug.cgi?id=577217)
-Test what happens if no script is found that matches the selection criteria. (maybe covered by https://bugzilla.redhat.com/show_bug.cgi?id=577217)
-Test support for both scripts defined at the Platform level(manually added) and those discovered underneath a JBAS instances
-Test that scripts can be programmatically discovered through the CLI and then used as the target for alert notifications

Comment 3 Corey Welton 2010-08-04 14:06:52 UTC
Closing these trackers.