Perform these steps on any Pacemaker node as the root user:
- Add an e-mail primitive to Pacemaker with crm:
crm configure primitive pg_mail ocf:heartbeat:MailTo \ params email="dbas@mycompany.com" \ subject="Pacemaker\ cluster\ status\ changed:\ "
- Clean up any errors that might have accumulated with crm:
crm resource cleanup pg_mail
- Display the status of our new e-mail alert with crm:
crm resource status