ops: make freshness negative ntfy call robust
This commit is contained in:
@@ -52,7 +52,7 @@ critical_count="${critical_count:-0}"
|
|||||||
|
|
||||||
if [ "$rc" -ne 0 ] && [ "$critical_count" -gt 0 ]; then
|
if [ "$rc" -ne 0 ] && [ "$critical_count" -gt 0 ]; then
|
||||||
if [ "$SEND_NTFY" = "1" ]; then
|
if [ "$SEND_NTFY" = "1" ]; then
|
||||||
"$SCRIPT_DIR/send-ntfy.sh" \
|
bash "$SCRIPT_DIR/send-ntfy.sh" \
|
||||||
"$ALERT_TOPIC" \
|
"$ALERT_TOPIC" \
|
||||||
"TEST: Restore freshness alert path ok" \
|
"TEST: Restore freshness alert path ok" \
|
||||||
"Negativtest erfolgreich: check-restore-freshness.sh meldete ${critical_count} Criticals gegen synthetischen leeren Testpfad. Produktive Dumps wurden nicht veraendert. Report: $report_file" \
|
"Negativtest erfolgreich: check-restore-freshness.sh meldete ${critical_count} Criticals gegen synthetischen leeren Testpfad. Produktive Dumps wurden nicht veraendert. Report: $report_file" \
|
||||||
@@ -63,7 +63,7 @@ if [ "$rc" -ne 0 ] && [ "$critical_count" -gt 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SEND_NTFY" = "1" ]; then
|
if [ "$SEND_NTFY" = "1" ]; then
|
||||||
"$SCRIPT_DIR/send-ntfy.sh" \
|
bash "$SCRIPT_DIR/send-ntfy.sh" \
|
||||||
"$ALERT_TOPIC" \
|
"$ALERT_TOPIC" \
|
||||||
"TEST FAILED: Restore freshness alert path" \
|
"TEST FAILED: Restore freshness alert path" \
|
||||||
"Negativtest fehlgeschlagen: erwarteter Critical-Zustand wurde nicht erkannt. Report: $report_file" \
|
"Negativtest fehlgeschlagen: erwarteter Critical-Zustand wurde nicht erkannt. Report: $report_file" \
|
||||||
|
|||||||
Reference in New Issue
Block a user