VMware Cloud Community
admin
Immortal
Immortal

Alert Mail Text

Hello,

can the alert mail text in Hyperic OpenSource be changed?
0 Kudos
3 Replies
excowboy
Virtuoso
Virtuoso

Hi,

yes you can. Just edit the files in
$HQ_SERVER/hq-engine/server/default/deploy/hq.ear/alertTemplates/

Mirko
0 Kudos
deeboh
Enthusiast
Enthusiast

Hey Mirko, is there a way to place the matched pattern ${short.reason} from the email template as the subject of the emailed alert?

Also can that same short.reason be used to give a short description in the alert RSS feeds?

for instance if I match this pattern:

ErrNo: 532 | UserID=85092926

I want the email title to be this matched pattern. I'm also using the RSS feature, but there is no detail listed in the RSS alert. In lieu of that detail i'd at least like to see the pattern match to gain some context other than

resource.name - alert.title.

alert title would be enough but i would have to create an alert definition for all 11hundred of my error values. Rather than that i've created a single alert definition with a generic title and then alert based on a given pattern substring.

thanks in advance,

Deeboh
0 Kudos
admin
Immortal
Immortal

You can modify subject.gsp, which has access to just about the same
variables. You can add additional Groovy code in the subject to look
for your pattern and generate the proper error value.

No, you cannot change the RSS feed.

Charles


0 Kudos