On Wednesday, June 22, 2011 22:39:46 Steven North wrote:
Hi,
I am investigating how I might accomplish the following scenario using RHQ:
- define an alert on, say, a JBoss metric;
- when that alert is triggered perform an operation on another resource
to get a log file
through the SupportFacet; and
- make the URL of that log file available in the RHQ UI as a link (so it
can be clicked
by the user to download the file and start the proper program to view
it).
It seems like the log file can be acquired using a CLI script
notification sender. Presumably the script can obtain the id of the
resource that originates the alert. Deriving the id of the resource to
be the target of the "get log file" operation will be harder because the
alert can't provide it.
How about making the URL of log file available in the RHQ UI? I suppose
the URL could be e-mailed, but is there a way to get the URL displayed
on the RHQ UI with the alert? Can the URl be in the Alert Notifications
Message field? Would that show up as an active link in the browser?
(Guess I can try to get it there and see.)
In my blog post about the CLI Script alert sender I actually showcase that the
script's output is being captured and shown in the RHQ UI:
http://metlos.wordpress.com/2011/03/08/scripted-alert-notifications-in-rhq/
That said the place this gets shown is not very prominent, as you already
found out and as others already said, the link most probably wouldn't be
clickable.
Thoughts? Pointers to examples of these activities?
Thanks in advance,
Steve
_______________________________________________
rhq-devel mailing list
rhq-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/rhq-devel