We are in the process of writing a technote on how to do this. but in the mean time the steps below should help.
ApplicationHA can provide a method for notifying important events such as resource or system faults to administrators or designated recipients.This notification is configured via the command line from within the virtual machine or through the Veritas Operations Manager web interface.
ApplicationHA includes a notifier component, which consists of the notifier process. ApplicationHA support SNMP consoles that can use an SNMP V2 MIB. The notifier process performs the following task
- Receives notifications from High Availability engine (HAD)
- Formats the notification
- Generates an SNMP (V2) trap or sends an email to the designated recipient, or does both.
There four severity levels: SevereError, Error, Warning, and Information. SevereError indicates the highest severity level, Information the lowest. Note that these severity levels are case-sensitive. SNMP traps are forwarded to the SNMP console. Typically, traps are predefined for events such as service group or resource faults.
For configuration via command line connect to the virtual machine via RDP, putty or similar remote management tool or via VMware Console from with vSphere Client.
Launch a command prompt or terminal session depending on which operating system the virtual machine is running.
Procedure
Step 1. Enable writing to the virtual machine ApplicationHA configuration.
haconf –makerw
Step 2. Add the Notifier resource to Heartbeat service group.
hares –add <notifier resource> NotifierMngr <Heartbeat Service Group>
Example:- hares -add AppMonNtfr NotifierMngr VCSAppMonHBSG
Step 3. Configure for SNMP notifications type
hares -modify <notifier resource> SnmpConsoles <snmpserv> <security level>
example:- hares -modify AppMonNtfr SnmpConsoles 10.10.1.6 Information
Step 4. Enable the new resource type
hares -modify AppMonNtfr Enabled 1
Step 5. Configure for SMTP notifications type
hares -modify <notifier resource> <SmtpServer> <SMTP server admin email address>
Example:-hares -modify AppMonNtfr EXCHSVR1 infra_admin@company.com
Step 6. Set the type of notifications for SNMP type
hares -modify <notifier resource> SmtpRecipients <admin email> <security level>
Example:- hares -modify AppMonNtfr SmtpRecipients "infra_admin@company.com" SevereError
Step 7. Save the changes to the virtual machine ApplicationHA configuration.
haconf -dump -makero
Step 8. Online the resource.
hares -online AppMonNtfr -sys <virtual machine name>
Example:- hares -online AppMonNtfr -sys SQL2008SRV1
To speed up the process a batch file can be created and run on each VM.