Trigger scripts for cluster events
Configure Pacemaker cluster alerts to trigger external actions when cluster events occur, such as node failures, configuration changes, or resource state changes. Alert agents run these external programs similarly to resource agents.
The cluster passes information about the event to the agent by means of environment variables. Agents can do anything with this information, such as send an email message or log to a file or update a monitoring system.
- Pacemaker provides several sample alert agents, which are installed in
/usr/share/pacemaker/alertsby default. These sample scripts may be copied and used as is, or they may be used as templates to be edited to suit your purposes. See the source code of the sample agents for the full set of attributes they support. - If the sample alert agents do not meet your needs, you can write your own alert agents for a Pacemaker alert to call.