Is there a way to run a report in the GUI or via command line to see what Alerts are assigned/turned on for a particular agent and/or application?
At a management module level you can list the state of alerts using Command Line Workstation CLW i.e.
java .... -jar CLWorkstation.jar query state of alerts matching (.*) in management modules matching (.*)
CLW Command Reference - CA Application Performance Management - 10.7 - CA Technologies Documentation
(the current documentation for the "Query Alerts" command does not state that the actual syntax is "query state of alerts", so I will request for that to be fixed)
Hope that helps.
at this moment it's not possible extract via CLW the relationship between alerts and agents but only the list of agents that belong to a Management Module, so if you define one MM for each application it is possible extract the relationship between alerts and application.
I 'd like add another aspect: each alarm produces a virtual metric that assumes, every 15 sec., one of 4 possible values related to the actual alert state (grey/green/yellow/red). You can extract the trend over time state of each alert using the usual CLW commands (Extracts persistent data from Smartstor). In this case you could use a alert naming mechanism to include the MM name, related to the application, in the alert name.