Create a notification, such as an email notification, for
a triggered failover.
Procedure
- 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
- 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
- Restart the high availability environment.
pcm-ha-support start --service PCMHA