Product SiteDocumentation Site

7.3. Alert Meta-Attributes

As with resource agents, meta-attributes can be configured for alert agents to affect how Pacemaker calls them.

Table 7.1. Meta-Attributes of an Alert

Meta-Attribute Default Description
Format the cluster will use when sending the event’s timestamp to the agent. This is a string as used with the date(1) command.
If the alert agent does not complete within this amount of time, it will be terminated.

Meta-attributes can be configured per alert agent and/or per recipient.

Example 7.3. Alert configuration with meta-attributes

        <alert id="my-alert" path="/path/to/">
            <meta_attributes id="my-alert-attributes">
                <nvpair id="my-alert-attributes-timeout" name="timeout"
            <recipient id="my-alert-recipient1" value="">
                <meta_attributes id="my-alert-recipient1-attributes">
                    <nvpair id="my-alert-recipient1-timestamp-format"
                        name="timestamp-format" value="%D %H:%M"/>
            <recipient id="my-alert-recipient2" value="">
                <meta_attributes id="my-alert-recipient2-attributes">
                    <nvpair id="my-alert-recipient2-timestamp-format"
                        name="timestamp-format" value="%c"/>

In the above example, the will get called twice for each event, with each call using a 15-second timeout. One call will be passed the recipient and a timestamp in the format %D %H:%M, while the other call will be passed the recipient and a timestamp in the format %c.