VMware Cloud Community
vishal112
Contributor
Contributor
Jump to solution

Custom Dashboard - Email Alerts ?

Hi

I have set a Custom Dashboard for one of my app teams to monitor disk space on their servers

In particular the /opt partition on Unix servers

The dashboard works fine - but i cannot seem to find out where we can define email alerts to be generated for any "non green" server

If you take a look at the attached

dash1.JPG

What we need is for the Yellow / Orange and Red servers (The ones where used guest file system % used is over 70%) is for Vcops to send an email alert to the app team.

Can someone point me in the right direction where i can define the email alerts for guest file systems ?

Reply
0 Kudos
1 Solution

Accepted Solutions
aaghabekyan
VMware Employee
VMware Employee
Jump to solution

Hi Vishal,

First you have setup your system to generate alerts when used guest file system % used is over 70%. Then you have to Configure Alert Notifications for you alerts.

Configure alert handler instances to send alert notifications as email messages. Select Admin > Configure Outbound Alert. Add Alert Handler Instance To send alert notifications to users in email messages, you must create an alert handler that

sends alert notifications to an email filter.

Here is a info from "VMware vCenter Operations Manager

Administration Guide"

Procedure

1 Select Admin > Configure Outbound Alert.

2 Add or edit an email alert handler instance.

Option Action

Add an email alert handler instance a Click the Add Alert Handler icon.

b Select Email from the Outbound Alert Type drop-down menu.

c Type a name for the alert handler instance in the Instance Name text box.

Edit an email alert handler instance Select the alert handler instance and click the Edit Alert Handler icon. You

cannot change the outbound alert type.

3 Configure or modify the email alert handler settings.

Option Description

SMTP_HOST Type the IP address of the SMTP server. The SMTP server delivers email

messages to the recipients of the alert notifications.

SMTP_PORT Type the SMTP port number. The default value is 25.

4 Click Test to test the filter.

vCenter Operations Manager verifies that the SMTP host and port you specified are valid and checks the

syntax and data of the emailFilter.xml file.

5 Click OK to save your configuration.

vCenter Operations Manager starts the alert handler instance.

Configuring Email Alert Notifications

Configuring email alert notifications involves adding filtering rules, defining email templates, and configuring

email alert notification settings.

A filtering rule is a set of conditions and email addresses. The vCenter Operations Manager email plug-in uses

filtering rules to send email alert notifications to the proper users based on the affected application, resource

kind, alert level, and other criteria.

An email template definition specifies which email template file to use for a given alert type, subtype, and

status. An email template file defines the body text of an email alert notification.

vCenter Operations Manager provides several default email template files. You can also create your own

custom email template files. In general, you use the default email template files for most notifications and

create custom email template files for users that require different information in their notifications. You can

create custom email template files before or after you configure email template definitions.

You typically have more email template file definitions than email template files. Most email template

definitions point to the same email template file, even though they are for different combinations of alert types

and recipients.


emailFilter.xml File

emailFilter.xml is an XML file that defines the filtering rules and template files to use for email alert

notifications. The file also contains general settings that apply to all email alert notifications.

IMPORTANT Do not edit emailFilter.xml directly unless you are familiar with XML structure and syntax. A

formatting mistake might prevent email alert notifications from working. If you edit emailFilter.xml directly,

make a backup copy of the file before you change it.

After you edit the emailFilter.xml file, you must restart the email filter plug-in instance in

vCenter Operations Manager to make your changes take effect

View solution in original post

Reply
0 Kudos
1 Reply
aaghabekyan
VMware Employee
VMware Employee
Jump to solution

Hi Vishal,

First you have setup your system to generate alerts when used guest file system % used is over 70%. Then you have to Configure Alert Notifications for you alerts.

Configure alert handler instances to send alert notifications as email messages. Select Admin > Configure Outbound Alert. Add Alert Handler Instance To send alert notifications to users in email messages, you must create an alert handler that

sends alert notifications to an email filter.

Here is a info from "VMware vCenter Operations Manager

Administration Guide"

Procedure

1 Select Admin > Configure Outbound Alert.

2 Add or edit an email alert handler instance.

Option Action

Add an email alert handler instance a Click the Add Alert Handler icon.

b Select Email from the Outbound Alert Type drop-down menu.

c Type a name for the alert handler instance in the Instance Name text box.

Edit an email alert handler instance Select the alert handler instance and click the Edit Alert Handler icon. You

cannot change the outbound alert type.

3 Configure or modify the email alert handler settings.

Option Description

SMTP_HOST Type the IP address of the SMTP server. The SMTP server delivers email

messages to the recipients of the alert notifications.

SMTP_PORT Type the SMTP port number. The default value is 25.

4 Click Test to test the filter.

vCenter Operations Manager verifies that the SMTP host and port you specified are valid and checks the

syntax and data of the emailFilter.xml file.

5 Click OK to save your configuration.

vCenter Operations Manager starts the alert handler instance.

Configuring Email Alert Notifications

Configuring email alert notifications involves adding filtering rules, defining email templates, and configuring

email alert notification settings.

A filtering rule is a set of conditions and email addresses. The vCenter Operations Manager email plug-in uses

filtering rules to send email alert notifications to the proper users based on the affected application, resource

kind, alert level, and other criteria.

An email template definition specifies which email template file to use for a given alert type, subtype, and

status. An email template file defines the body text of an email alert notification.

vCenter Operations Manager provides several default email template files. You can also create your own

custom email template files. In general, you use the default email template files for most notifications and

create custom email template files for users that require different information in their notifications. You can

create custom email template files before or after you configure email template definitions.

You typically have more email template file definitions than email template files. Most email template

definitions point to the same email template file, even though they are for different combinations of alert types

and recipients.


emailFilter.xml File

emailFilter.xml is an XML file that defines the filtering rules and template files to use for email alert

notifications. The file also contains general settings that apply to all email alert notifications.

IMPORTANT Do not edit emailFilter.xml directly unless you are familiar with XML structure and syntax. A

formatting mistake might prevent email alert notifications from working. If you edit emailFilter.xml directly,

make a backup copy of the file before you change it.

After you edit the emailFilter.xml file, you must restart the email filter plug-in instance in

vCenter Operations Manager to make your changes take effect

Reply
0 Kudos