Skip to content

Commit

Permalink
Add systemd event (sonic-net#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbud-msft authored Sep 16, 2022
1 parent e773a0e commit 2b30fc4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions files/build_templates/events_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
{
"name": "sshd",
"parse_json": "sshd_regex.json"
},
{
"name": "systemd",
"parse_json": "systemd_regex.json"
}
]
}
7 changes: 7 additions & 0 deletions files/build_templates/systemd_regex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"tag": "event-stopped-ctr",
"regex": "Stopped ([a-zA-Z-_\\s]*) container",
"params": [ "ctr-name" ]
}
]
2 changes: 1 addition & 1 deletion files/image_config/monit/container_checker
Original file line number Diff line number Diff line change
Expand Up @@ -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():
"""
Expand Down

0 comments on commit 2b30fc4

Please sign in to comment.