[ClusterLabs] Antw: [EXT] Re: weird xml snippet in "crm configure show"
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Mon Feb 15 03:55:46 EST 2021
>>> "Lentes, Bernd" <bernd.lentes at helmholtz-muenchen.de> schrieb am 13.02.2021
um
01:23 in Nachricht
<547781995.41340156.1613175834146.JavaMail.zimbra at helmholtz-muenchen.de>:
>
> ----- On Feb 12, 2021, at 12:50 PM, Yan Gao ygao at suse.com wrote:
>
>
>>
>>
>> It seems that crmsh has difficulty parsing the "random" ids of the
>> attribute sets here. I guess `crm configure edit` the part to be
>> something like:
>>
>> alert smtp_alert "/root/skripte/alert_smtp.sh" \
>> attributes email_sender="bernd.lentes at helmholtz-muenchen.de" \
>> to "informatic.idg at helmholtz-muenchen.de" meta
>> timestamp-format="%D %H:%M"
>>
>> will do.
>
> Hi,
>
> i could configure the following:
>
> ha-idg-1:~ # crm configure show smtp_alert
> alert smtp_alert "/root/skripte/alert_smtp.sh" \
> attributes email_sender="bernd.lentes at helmholtz-muenchen.de" \
> meta timestamp-format="%D %H:%M" \
> to "informatic.idg at helmholtz-muenchen.de"
>
> Script is available:
> ha-idg-1:~ # ll /root/skripte/alert_smtp.sh
> -rwxr-xr-x 1 root root 4080 Feb 13 01:10 /root/skripte/alert_smtp.sh
>
> But it's not executed, although Cluster log says the alert is doing his
job:
> Feb 13 01:10:57 [30760] ha-idg-1 crmd: info: exec_alert_list:
> Sending resource alert via smtp_alert to
informatic.idg at helmholtz-muenchen.de
> Feb 13 01:10:57 [30757] ha-idg-1 lrmd: info:
> process_lrmd_alert_exec: Executing alert smtp_alert for
> 621c8a64-13aa-46fa-a7f7-f7df8d384a86
>
> I added a simple logger command into the script, but nothing is written to
> system log.
How does the first line in your script look like?
>
> Bernd
>
> Helmholtz Zentrum München
>
> Helmholtz Zentrum Muenchen
> Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
> Ingolstaedter Landstr. 1
> 85764 Neuherberg
> www.helmholtz-muenchen.de
> Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
> Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin
> Guenther
> Registergericht: Amtsgericht Muenchen HRB 6466
> USt-IdNr: DE 129521671
>
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
More information about the Users
mailing list