Hi,
i need to create an email alerts to specific groups by vcops application.
does anyone have a sample emailfilter.xml exapmle for this?
thanks,
Itay
Certainly.
<FilterRule name="SQLFarmAlerts">
<Conditions>
<condition type="Application">SQL Server Farm</condition>
<condition type="Level">Critical</condition>
</Conditions>
<Addresses>
<sendTo type="email">SQLAdmins@example.com</sendTo>
</Addresses>
</FilterRule>
See the VMware vCenter Operations Manager Administration Guide, page 82, for details.
i got one more question,
i need to get an alarms about workload of the virtual machines that are under the application.
does my syntax is correct?
<FilterRule name="Intranet">
<Conditions>
<condition type="Application">Intranet</condition>
<condition type="Level">Critical</condition>
<condition alert_type="Health" alert_subtype="Workload" status="New">Intranet.html</condition>
<condition alert_type="Health" alert_subtype="Workload" status="Active">Intranet.html</condition>
<condition alert_type="Health" alert_subtype="Workload" status="Cancel">Intranet.html</condition>
<condition alert_type="Health" alert_subtype="Workload" status="Update">Intranet.html</condition>
</Conditions>
<Addresses>
<sendTo type="email">itay.mesholam@emc.com</sendTo>
</Addresses>
</FilterRule>
i got this error message while i was try to put your syntax
if i use the deafult template the test message works fine.
What you have is no good for a number of reasons. I'm going to assume you're using the same template for all statuses for some special purpose.
Let's try this..
Stick this up in with the templates:
<Template alert_type="Health" alert_subtype="Workload" status="NEW" sentTo="itay.mesholam@emc.com">Intranet.html</Template>
<Template alert_type="Health" alert_subtype="Workload" status="UPDATE" sentTo="itay.mesholam@emc.com">Intranet.html</Template>
<Template alert_type="Health" alert_subtype="Workload" status="CANCEL" sentTo="itay.mesholam@emc.com">Intranet.html</Template>
Put this down with the filters:
<FilterRule name="Intranet">
<Conditions>
<condition type="Application">Intranet</condition>
<condition type="Level">Critical</condition>
<condition type="AlertType">Health</condition>
</Conditions>
<Addresses>
<sendTo type="email">itay.mesholam@emc.com</sendTo>
</Addresses>
</FilterRule>
*If this was for a specific application, I'd put an app_admin distribution list for the sendTo.
Hi Mark,
i attached the filter.xml file after i was try what you suggested.
i still got the same error.
thanks a lot for the help!
Template sendTo="xyz@integrien.com" alert_type="CLASSIC" alert_subtype="KPI_HT_Breach" status="NEW">xxx.txt</Template-->
</Templates>
</Conditions>
</FilterRule>
</EmailFilter>
Does the Intranet.html template file exist int eh ./conf/<templates folder> directory?
Please attach it here.
I have a question for you. What is the configuration of your alert handlers that you tested above? Can you attach a screenshot of the one that failed and one that worked?
hi,
after i saw your comment i was try to change the intranet.html to generic.html but still i got the messege error.
the akert handelr that work is the original emailfilter.xml that i just change there the email address.
i think taht i need to understand that my steps are ok:
1. i create an application via the custom
2. i create an email handler in the outbound configure
3. change the emailfilter.xml and insert the rows that you wrote to me, i leave there all the comments and the exsiting condition rows.
Let's put your custom template aside for a moment. Try this and see if it works:
1. Drop the 3 custom template rows above.
2. Use this content for the filter rule:
<FilterRule name="Intranet">
</Conditions>
- <Addresses>
</FilterRule>
.
no still the same error
See, that seems suspect to me. We're not doing any custom templates in that test and the error is pointing to the SMTP handler.
Do you 'require' SSL for SMTP? If not, can you do me a favor and delete the setting for "secure connection type" and set "secure connection" to "no"? Then set the SMTP host to the IP address of the SMTP server not the FQDN. Then try again.
If that doesn't work, delete and recreate the alert handler and try again.
i was try to remove the ssl but still got the same error in the test.
i i use the deafult emailfilter.xml and then change in this rows the email address it's work and i got a test email:
</EmailFilter>
i don't know what was changed but now this is not work also with the deafult, i got the same error.
Hi Mark,
after making some homeworks i need your help to create the email filter.
this my application ELA, i need that when one of the virtual machine that are under the ELA are having Workload i will recive an email alarm.
this is the example of ny app: