Example 7.5. Alert configuration to receive only node events and fencing events
<configuration> <alerts> <alert id="my-alert" path="/path/to/my-script.sh"> <select> <select_nodes /> <select_fencing /> </select> <recipient id="my-alert-recipient1" value="someuser@example.com"/> </alert> </alerts> </configuration>
<select>
are <select_nodes>
, <select_fencing>
, <select_resources>
, and <select_attributes>
.
<select_attributes>
(the only event type not enabled by default), the agent will receive alerts when a node attribute changes. If you wish the agent to be called only when certain attributes change, you can configure that as well.
Example 7.6. Alert configuration to be called when certain node attributes change
<configuration> <alerts> <alert id="my-alert" path="/path/to/my-script.sh"> <select> <select_attributes> <attribute id="alert-standby" name="standby" /> <attribute id="alert-shutdown" name="shutdown" /> </select_attributes> </select> <recipient id="my-alert-recipient1" value="someuser@example.com"/> </alert> </alerts> </configuration>