diff --git a/files/build_templates/events_info.json b/files/build_templates/events_info.json index 6d1e019fb85e..846c2a4b0e37 100644 --- a/files/build_templates/events_info.json +++ b/files/build_templates/events_info.json @@ -8,6 +8,10 @@ { "name": "sshd", "parse_json": "sshd_regex.json" + }, + { + "name": "systemd", + "parse_json": "systemd_regex.json" } ] } diff --git a/files/build_templates/systemd_regex.json b/files/build_templates/systemd_regex.json new file mode 100644 index 000000000000..d6ea5619eed9 --- /dev/null +++ b/files/build_templates/systemd_regex.json @@ -0,0 +1,7 @@ +[ + { + "tag": "event-stopped-ctr", + "regex": "Stopped ([a-zA-Z-_\\s]*) container", + "params": [ "ctr-name" ] + } +] diff --git a/files/image_config/monit/container_checker b/files/image_config/monit/container_checker index 6c155e5853a6..6d7f1403d7ae 100755 --- a/files/image_config/monit/container_checker +++ b/files/image_config/monit/container_checker @@ -23,7 +23,7 @@ from sonic_py_common import multi_asic, device_info from swsscommon import swsscommon EVENTS_PUBLISHER_SOURCE = "sonic-events-host" -EVENTS_PUBLISHER_TAG = "event-container" +EVENTS_PUBLISHER_TAG = "event-down-ctr" def get_expected_running_containers(): """