Customize VSphere Alarm Subject & Body

Hello Readers,

I came across this to how to customize vSphere Alarm Subject and body, and hence writing this post .

** Locate folder “locale” in vCenter’s Program path.

D:\Program Files\VMware\Infrastructure\VirtualCenter Server\locale\

** Open “en” folder and locate “stask.vmsg” file.

**Make a copy of “stask.vmsg” and rename the copy to “stask.vmsg.Original” as a backup.

**Select “stask.vmsg” and open in notepad.

** Search for“Email.statefulAlarm.subject” and replace the following:
mail.statefulAlarm.subject                                            = “[VMware vCenter – Alarm {alarmName}] {alarmName} changed status from {oldStatus} to {newStatus}”
Email.statefulAlarm.body                                               =  “Target: {targetName}\nPrevious Status: {oldStatus}\nNew Status: {newStatus}\n\nAlarm Definition:\n{declaringSummary}\n\n{alarmValue}:\n {triggeringSummary}\n\nDescription:\n{eventDescription}”

with the following new parameters below:

Email.statefulAlarm.subject                                            = “CompanyName:Critical:{targetName}”
Email.statefulAlarm.body                                               =  “VMware Alarm Name: {alarmName}\n\nTarget: {targetName}\nPrevious Status: {oldStatus}\nNew Status: {newStatus}\n\nDescription: {eventDescription}\n\nAlarm Definition:\n{declaringSummary}\n\n{alarmValue}:\n {triggeringSummary}\n\nDescription:\n{eventDescription}”

** Next, search for

“Email.statefulEventAlarm.subject” and replace the following:

statefulEventAlarm.subject = “[VMware vCenter – Alarm {alarmName}] {eventDescription}”
Email.statefulEventAlarm.body                                               = “Target: {targetName}\nPrevious Status: {oldStatus}\nNew Status: {newStatus}\n\nAlarm Definition:\n{declaringSummary}\n\n{alarmValue}:\n {eventDescription}”

with the following new parameters highlighted below:

Email.statefulEventAlarm.subject                                            = “CompanyName:Critical:{targetName}”
Email.statefulEventAlarm.body                                               = “VMware Alarm Name: {alarmName}\n\nTarget: {targetName}\nPrevious Status: {oldStatus}\nNew Status: {newStatus}\n\nDescription: {eventDescription}\n\nAlarm Definition:\n{declaringSummary}\n\n{alarmValue}:\n {eventDescription}”
** Search for “Email.statelessEventAlarm.subject” and replace the following:

Email.statelessEventAlarm.subject                                           = “[VMware vCenter – Alarm {alarmName}] {eventDescription}”
Email.statelessEventAlarm.body                                              = “Target: {targetName}\nStateless event alarm\n\nAlarm Definition:\n{declaringSummary}\n\n{alarmValue}:\n{eventDescription}”

with the following new parameters highlighted below:

Email.statelessEventAlarm.subject                                           = “CompanyName:Critical:{targetName}”
Email.statelessEventAlarm.body                                              = “VMware Alarm Name: {alarmName}\n\nTarget: {targetName}\nStateless event alarm\n\nDescription: {eventDescription}\n\nAlarm Definition:\n{declaringSummary}\n\n{alarmValue}:\n{eventDescription}”

** Then will restart the vCenter Services.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s