----- On Feb 12, 2021, at 12:50 PM, Yan Gao y...@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.len...@helmholtz-muenchen.de" \ > to "informatic....@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.len...@helmholtz-muenchen.de" \ meta timestamp-format="%D %H:%M" \ to "informatic....@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....@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. 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/