[ClusterLabs] Antw: Re: Coming in 1.1.15: Event-driven alerts

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Wed Apr 27 13:59:49 UTC 2016


>>> Kristoffer Grönlund <kgronlund at suse.com> schrieb am 27.04.2016 um 12:12 in
Nachricht <87twinl5sb.fsf at krigpad.kri.gs>:
> 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!

Hi!

IMHO it reads too much like the XML (i.e. nobody understands it unless he
knows the meaning of the XML behind).

> 
> I'll hold off merging this until the feature stabilises in the pacemaker
> repository.
> 
> Cheers,
> Kristoffer
> 
> -- 
> // Kristoffer Grönlund
> // kgronlund at suse.com 
> 
> _______________________________________________
> Users mailing list: Users at clusterlabs.org 
> http://clusterlabs.org/mailman/listinfo/users 
> 
> Project Home: http://www.clusterlabs.org 
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf 
> Bugs: http://bugs.clusterlabs.org 







More information about the Users mailing list