[ClusterLabs] Coming in 1.1.15: Event-driven alerts

Kristoffer Grönlund kgronlund at suse.com
Wed Apr 27 06:12:04 EDT 2016


Ken Gaillot <kgaillot at redhat.com> writes:

> The most prominent feature will be Klaus Wenninger's new implementation
> of event-driven alerts -- the ability to call scripts whenever
> interesting events occur (nodes joining/leaving, resources
> starting/stopping, etc.).
>
> This is the improved successor to both the ClusterMon resource agent and
> the experimental "notification-agent" feature that has been in the
> upstream master branch.
>
> The new feature was renamed to "alerts" to avoid confusion with the
> unrelated "notify" resource action.
>
> High-level tools such as crm and pcs should eventually provide an easy
> way to configure this, but at the XML level, the cluster configuration
> may now contain an alerts section:

There is now a branch with experimental early support for configuring
alerts in crmsh:

https://github.com/ClusterLabs/crmsh/pull/136

Proposed syntax right now looks like this:

    alert <id> <path>              \
        [attribute <nvpair> ...]   \
        [meta <nvpair> ...]        \
        [to <recipient             \
          [attribute <nvpair> ...] \
          [meta <nvpair> ...] ...]

Example:

    alert alert-1 /srv/pacemaker/pcmk_alert_sample.sh \
        to /var/log/cluster-alerts.log

Opinions / suggestions are more than welcome!

I'll hold off merging this until the feature stabilises in the pacemaker
repository.

Cheers,
Kristoffer

-- 
// Kristoffer Grönlund
// kgronlund at suse.com




More information about the Users mailing list