Create a failover notification

Create a notification, such as an email notification, for a triggered failover.

Before you begin

Note: Before you can send email for a triggered failover, you must configure your mail parameters. Refer to Setting up SMTP mail settings.

Procedure

  1. Create an executable script on the share file system. For example, you can use an executable script that sends an email when a failover is triggered. An example send email script (send_mail.sh) is in the /opt/pcm/share/examples/HA directory. Run the following commands to create the script on a share file system. Ensure that you modify send_mail.sh to your real environment settings.
    mkdir -p /install/failover
    cp /opt/pcm/share/examples/HA/send_mail.sh /install/failover
  2. Edit the high availability controller configuration file (ha_wsm.cfg) on the management node in the /opt/pcm/etc/failover directory. In the[__Failover__] section, set the failover_action parameter to the absolute path of your custom script. For example:
    failover_action=/install/failover/send_mail.sh
  3. Restart the high availability environment.
    pcm-ha-support start --service PCMHA