[ClusterLabs] Coming in 1.1.15: Event-driven alerts
Ken Gaillot
kgaillot at redhat.com
Fri Apr 29 19:51:29 UTC 2016
On 04/28/2016 10:24 AM, Lars Marowsky-Bree wrote:
> On 2016-04-27T12:10:10, Klaus Wenninger <kwenning at redhat.com> wrote:
>
>>> Having things in ARGV[] is always risky due to them being exposed more
>>> easily via ps. Environment variables or stdin appear better.
>> What made you assume the recipient is being passed as argument?
>>
>> The environment variable CRM_alert_recipient is being used to pass it.
>
> Ah, excellent! But what made me think that this would be passed as
> arguments is that your announcement said: "Each alert may have any
> number of recipients configured. These values will simply be passed to
> the script as *arguments*." ;-)
Yes, that was my mistake in the original announcement. :-/
An early design had the script called once with all recipients as
arguments, but in the implementation we went with the script being
called once per recipient (and using only the environment variable).
More information about the Users
mailing list