[ClusterLabs] Antw: [EXT] Re: weird xml snippet in "crm configure show"
Lentes, Bernd
bernd.lentes at helmholtz-muenchen.de
Mon Feb 15 07:05:49 EST 2021
----- On Feb 15, 2021, at 9:55 AM, Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de wrote:
>> 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?
>
#!/bin/sh
#
# Copyright (C) 2016 Klaus Wenninger <kwenning at redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
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
More information about the Users
mailing list