Skip to content

Commit ce5785c

Browse files
committed
Allow user to select whether they want the watchdog CloudWatch alert to be sent via a Lamdba function.
1 parent 48ce0bd commit ce5785c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Monitoring/monitor-ontap-services/cloudformation.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,8 @@ Resources:
649649
# "matching conditions." It is intended to be run as a Lambda function, but
650650
# can be run as a standalone program.
651651
#
652-
# Version: v2.16
653-
# Date: 2025-05-19-21:24:55
652+
# Version: v2.18
653+
# Date: 2025-05-23-18:09:41
654654
################################################################################
655655
656656
import json
@@ -1923,7 +1923,10 @@ Resources:
19231923
conditions["services"][getServiceIndex("systemHealth", conditions)]["rules"].append({"networkInterfaces": False})
19241924
elif name == "initialEmsEventsAlert":
19251925
if value == "true":
1926-
conditions["services"][getServiceIndex("ems", conditions)]["rules"].append({"name": "", "severity": "error|alert|emergency", "message": ""})
1926+
if os.environ.get("initialEmsExtendedAlerts") == "true":
1927+
conditions["services"][getServiceIndex("ems", conditions)]["rules"].append({"name": "", "severity": "informational|notice|error|alert|emergency", "message": ""})
1928+
else:
1929+
conditions["services"][getServiceIndex("ems", conditions)]["rules"].append({"name": "", "severity": "error|alert|emergency", "message": ""})
19271930
elif name == "initialSnapMirrorHealthAlert":
19281931
if value == "true":
19291932
conditions["services"][getServiceIndex("snapmirror", conditions)]["rules"].append({"Healthy": False}) # This is what it matches on, so it is interesting when the health is false.

0 commit comments

Comments
 (0)