Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema update #22

Merged
merged 5 commits into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 27 additions & 42 deletions src/sonic-yang-models/yang-events/sonic-events-host.yang
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,29 @@ module sonic-events-host {
uses evtcmn:sonic-events-cmn;
}

container cpu-usage {
oc-alarm-types:MINOR

description "
Declares an event for memory usage crossing set limit
The parameters describe the usage & limit set.";

uses evtcmn:sonic-events-usage;

uses evtcmn:sonic-events-cmn;
}

container event-sshd {
oc-alarm-types:MINOR

description "
Declares an event reported by sshd.
The fail type declares the type of failure.
INCORRECT_PASSWORD - denotes that sshd is sending
wrong password to AAA to intentionally fail this login.";
This implies an internal system state blocks sshd from
creating the new user.";

leaf fail_type {
type enumeration {
enum "INCORRECT_PASSWD";
}
description "Type of failure";
leaf username {
type string;
description "Name of the new user";
}

uses evtcmn:sonic-events-cmn;
Expand Down Expand Up @@ -110,56 +119,32 @@ module sonic-events-host {
uses evtcmn:sonic-events-cmn;
}

container event-monit-proc {
container event-down-ctr {
eventcmn:EVENT_SEVERITY_2

description "
Declares an event reported by monit for a process
that is not running.
Params:
Name of the process that is not running.
The ASIC-index of that process.";
Declares an container that is expected to be up is down.
Reported by monit periodically.";

leaf proc_name {
leaf ctr_name {
type string;
description "Name of the process not running";
description "Name of the container not running";
default "";
}

leaf asic_index {
type uint8;
description "ASIC index in case of multi asic platform";
default 0;
}

uses evtcmn:sonic-events-cmn;
}

container event-monit-status {
container event-stopped-ctr {
eventcmn:EVENT_SEVERITY_2

description "
Declares an event reported by monit for status check
failure for a process
Params:
Name of the process that is not running.
The ASIC-index of that process.";
Declare an event at the time point of container stopping.
event-down-ctr fires periodically until it starts up.";

leaf entity {
type string;
description "Name of the failing entity";
default "";
}

leaf asic_index {
type uint8;
description "ASIC index in case of multi asic platform";
default 0;
}

leaf reason {
leaf ctr-name {
type string;
description "Human readble text explaining failure";
description "Name of the container";
default "";
}

Expand Down
40 changes: 0 additions & 40 deletions src/sonic-yang-models/yang-events/sonic-events-pmon.yang

This file was deleted.