@@ -508,15 +508,15 @@ send it to syslog.
508
508
```
509
509
An example of syslog message generated for an event raised when user selects a custom event profile.
510
510
```
511
- May 19 21:22:07.122786 2021 sonic WARNING eventd#eventd[2419]: [EVENT], %CUSTOM_EVPROFILE_CHANGE :- handle_custom_evprofile: Custom Event Profile myprofile.json is applied.. Custom Event Profile is selected by user.
511
+ May 19 21:22:07.122786 2021 sonic WARNING eventd#eventd[2419]: [EVENT], %CUSTOM_EVPROFILE_CHANGE : handle_custom_evprofile: Custom Event Profile myprofile.json is applied.. Custom Event Profile is selected by user.
512
512
```
513
513
Syslog message for an alarm raised by a sensor:
514
514
```
515
- May 19 21:42:14.373410 2021 sonic ALERT eventd#eventd[2453]: [ALARM] (RAISE), %TEMPERATURE_EXCEEDED :- temperatureCrossedThreshold: Current temperature of sensor/2 is 76 degrees. Temperature threshold is 75 degrees.
515
+ May 19 21:42:14.373410 2021 sonic ALERT eventd#eventd[2453]: [ALARM] (RAISE), %TEMPERATURE_EXCEEDED : temperatureCrossedThreshold: Current temperature of sensor/2 is 76 degrees. Temperature threshold is 75 degrees.
516
516
```
517
517
Syslog message when alarm is clared is as follows:
518
518
```
519
- May 19 21:46:34.373693 2021 sonic ALERT eventd#eventd[2453]: [ALARM] (CLEAR), %TEMPERATURE_EXCEEDED :- temperatureCrossedThreshold: Current temperature of sensor/2 is 70 degrees. Temperature threshold is 75 degrees.
519
+ May 19 21:46:34.373693 2021 sonic ALERT eventd#eventd[2453]: [ALARM] (CLEAR), %TEMPERATURE_EXCEEDED : temperatureCrossedThreshold: Current temperature of sensor/2 is 70 degrees. Temperature threshold is 75 degrees.
520
520
```
521
521
Syslog message when alarm with id=4 is acknowledged is as follows:
522
522
```
@@ -705,7 +705,7 @@ severity : Severity of the event {string}
705
705
706
706
127.0.0.1:6379[6]> hgetall "EVENT|1"
707
707
1) "text"
708
- 2) ":- handle_custom_evprofile: Custom Event Profile x.json is applied."
708
+ 2) "handle_custom_evprofile: Custom Event Profile x.json is applied."
709
709
3) "type-id"
710
710
4) "CUSTOM_EVPROFILE_CHANGE"
711
711
5) "id"
@@ -1045,13 +1045,13 @@ sonic# show event
1045
1045
----------------------------------------------------------------------------------------------------------------------------
1046
1046
Id Action Severity Name Timestamp Description
1047
1047
----------------------------------------------------------------------------------------------------------------------------
1048
- 1 - WARNING CUSTOM_EVPROFILE_CHANGE 2021-05-19T21:38:27.455Z :- handle_custom_evprofile: Custom Event Profile x.json is applied.
1049
- 2 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:39:31.622Z :- signalHandler: Raising simulated alarm
1050
- 3 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:42:34.371Z :- signalHandler: Clearing simulated alarm
1051
- 4 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:46:14.371Z :- signalHandler: Raising simulated alarm
1048
+ 1 - WARNING CUSTOM_EVPROFILE_CHANGE 2021-05-19T21:38:27.455Z handle_custom_evprofile: Custom Event Profile x.json is applied.
1049
+ 2 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:39:31.622Z signalHandler: Raising simulated alarm
1050
+ 3 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:42:34.371Z signalHandler: Clearing simulated alarm
1051
+ 4 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:46:14.371Z signalHandler: Raising simulated alarm
1052
1052
5 ACKNOWLEDGE CRITICAL DUMMY_ALARM 2021-05-19T21:48:05.845Z Alarm id 4 ACKNOWLEDGE.
1053
1053
6 UNACKNOWLEDGE CRITICAL DUMMY_ALARM 2021-05-19T21:53:24.484Z Alarm id 4 UNACKNOWLEDGE.
1054
- 7 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:55:54.977Z :- signalHandler: Clearing simulated alarm
1054
+ 7 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:55:54.977Z signalHandler: Clearing simulated alarm
1055
1055
1056
1056
sonic# show event details
1057
1057
----------------------------------------------
@@ -1062,7 +1062,7 @@ Action: -
1062
1062
Severity: WARNING
1063
1063
Type: CUSTOM_EVPROFILE_CHANGE
1064
1064
Timestamp 2021-05-19T21:38:27.455Z
1065
- Description: :- handle_custom_evprofile: Custom Event Profile x.json is applied.
1065
+ Description: handle_custom_evprofile: Custom Event Profile x.json is applied.
1066
1066
Source: /etc/evprofile/x.json
1067
1067
1068
1068
----------------------------------------------
@@ -1073,7 +1073,7 @@ Action: RAISE
1073
1073
Severity: CRITICAL
1074
1074
Type: DUMMY_ALARM
1075
1075
Timestamp 2021-05-19T21:39:31.622Z
1076
- Description: :- signalHandler: Raising simulated alarm
1076
+ Description: signalHandler: Raising simulated alarm
1077
1077
Source: simulation
1078
1078
1079
1079
----------------------------------------------
@@ -1084,7 +1084,7 @@ Action: CLEAR
1084
1084
Severity: CRITICAL
1085
1085
Type: DUMMY_ALARM
1086
1086
Timestamp 2021-05-19T21:42:34.371Z
1087
- Description: :- signalHandler: Clearing simulated alarm
1087
+ Description: signalHandler: Clearing simulated alarm
1088
1088
Source: simulation
1089
1089
1090
1090
sonic# show event summary
@@ -1100,23 +1100,23 @@ sonic# show event severity critical
1100
1100
----------------------------------------------------------------------------------------------------------------------------
1101
1101
Id Action Severity Name Timestamp Description
1102
1102
----------------------------------------------------------------------------------------------------------------------------
1103
- 2 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:39:31.622Z :- signalHandler: Raising simulated alarm
1104
- 3 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:42:34.371Z :- signalHandler: Clearing simulated alarm
1105
- 4 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:46:14.371Z :- signalHandler: Raising simulated alarm
1103
+ 2 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:39:31.622Z signalHandler: Raising simulated alarm
1104
+ 3 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:42:34.371Z signalHandler: Clearing simulated alarm
1105
+ 4 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:46:14.371Z signalHandler: Raising simulated alarm
1106
1106
5 ACKNOWLEDGE CRITICAL DUMMY_ALARM 2021-05-19T21:48:05.845Z Alarm id 4 ACKNOWLEDGE.
1107
1107
6 UNACKNOWLEDGE CRITICAL DUMMY_ALARM 2021-05-19T21:53:24.484Z Alarm id 4 UNACKNOWLEDGE.
1108
- 7 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:55:54.977Z :- signalHandler: Clearing simulated alarm
1108
+ 7 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:55:54.977Z signalHandler: Clearing simulated alarm
1109
1109
1110
1110
sonic# show event recent 24hr
1111
1111
----------------------------------------------------------------------------------------------------------------------------
1112
1112
Id Action Severity Name Timestamp Description
1113
1113
----------------------------------------------------------------------------------------------------------------------------
1114
- 2 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:39:31.622Z :- signalHandler: Raising simulated alarm
1115
- 3 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:42:34.371Z :- signalHandler: Clearing simulated alarm
1116
- 4 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:46:14.371Z :- signalHandler: Raising simulated alarm
1114
+ 2 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:39:31.622Z signalHandler: Raising simulated alarm
1115
+ 3 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:42:34.371Z signalHandler: Clearing simulated alarm
1116
+ 4 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:46:14.371Z signalHandler: Raising simulated alarm
1117
1117
5 ACKNOWLEDGE CRITICAL DUMMY_ALARM 2021-05-19T21:48:05.845Z Alarm id 4 ACKNOWLEDGE.
1118
1118
6 UNACKNOWLEDGE CRITICAL DUMMY_ALARM 2021-05-19T21:53:24.484Z Alarm id 4 UNACKNOWLEDGE.
1119
- 7 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:55:54.977Z :- signalHandler: Clearing simulated alarm
1119
+ 7 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:55:54.977Z signalHandler: Clearing simulated alarm
1120
1120
1121
1121
sonic# show event id 2
1122
1122
----------------------------------------------
@@ -1127,23 +1127,23 @@ Action: RAISE
1127
1127
Severity: CRITICAL
1128
1128
Type: DUMMY_ALARM
1129
1129
Timestamp 2021-05-19T21:39:31.622Z
1130
- Description: :- signalHandler: Raising simulated alarm
1130
+ Description: signalHandler: Raising simulated alarm
1131
1131
Source: simulation
1132
1132
1133
1133
sonic# show event from 2 to 5
1134
1134
----------------------------------------------------------------------------------------------------------------------------
1135
1135
Id Action Severity Name Timestamp Description
1136
1136
----------------------------------------------------------------------------------------------------------------------------
1137
- 2 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:39:31.622Z :- signalHandler: Raising simulated alarm
1138
- 3 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:42:34.371Z :- signalHandler: Clearing simulated alarm
1139
- 4 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:46:14.371Z :- signalHandler: Raising simulated alarm
1137
+ 2 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:39:31.622Z signalHandler: Raising simulated alarm
1138
+ 3 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:42:34.371Z signalHandler: Clearing simulated alarm
1139
+ 4 RAISE CRITICAL DUMMY_ALARM 2021-05-19T21:46:14.371Z signalHandler: Raising simulated alarm
1140
1140
5 ACKNOWLEDGE CRITICAL DUMMY_ALARM 2021-05-19T21:48:05.845Z Alarm id 4 ACKNOWLEDGE.
1141
1141
1142
1142
sonic# show event start 2021-05-19T21:39:31.622Z end 2021-05-19T21:46:14.371Z
1143
1143
----------------------------------------------------------------------------------------------------------------------------
1144
1144
Id Action Severity Name Timestamp Description
1145
1145
----------------------------------------------------------------------------------------------------------------------------
1146
- 3 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:42:34.371Z :- signalHandler: Clearing simulated alarm
1146
+ 3 CLEAR CRITICAL DUMMY_ALARM 2021-05-19T21:42:34.371Z signalHandler: Clearing simulated alarm
1147
1147
1148
1148
sonic# show alarm [ acknowledged | all | detail | summary | severity <sev> | id <seq-id> | start <from-ts> end <to-ts> | recent <5min|1hr|1day> | from <from-seq> to <to-seq> ]
1149
1149
@@ -1153,16 +1153,16 @@ sonic# show alarm
1153
1153
----------------------------------------------------------------------------------------------------------------------------
1154
1154
Id Severity Name Timestamp Description
1155
1155
----------------------------------------------------------------------------------------------------------------------------
1156
- 14 WARNING TEMPERATURE_EXCEEDED 2021-05-20T00:47:52.992Z :- temperatureCrossedThreshold: Current temperature of sensor/2 is 76 degrees
1156
+ 14 WARNING TEMPERATURE_EXCEEDED 2021-05-20T00:47:52.992Z temperatureCrossedThreshold: Current temperature of sensor/2 is 76 degrees
1157
1157
16 WARNING PSU_FAULT 2021-05-20T02:16:42.611Z :- /psu/2 has experienced a fault
1158
1158
1159
1159
sonic# show alarm all
1160
1160
----------------------------------------------------------------------------------------------------------------------------
1161
1161
Id Severity Name Timestamp Description
1162
1162
----------------------------------------------------------------------------------------------------------------------------
1163
- 14 WARNING TEMPERATURE_EXCEEDED 2021-05-20T00:47:52.992Z :- temperatureCrossedThreshold: Current temperature of sensor/2 is 76 degrees
1164
- 15 WARNING DUMMY_ALARM 2021-05-20T02:16:41.637Z :- signalHandler: Raising simulated alarm
1165
- 16 WARNING PSU_FAULT 2021-05-20T02:16:42.611Z :- /psu/2 has experienced a fault
1163
+ 14 WARNING TEMPERATURE_EXCEEDED 2021-05-20T00:47:52.992Z temperatureCrossedThreshold: Current temperature of sensor/2 is 76 degrees
1164
+ 15 WARNING DUMMY_ALARM 2021-05-20T02:16:41.637Z signalHandler: Raising simulated alarm
1165
+ 16 WARNING PSU_FAULT 2021-05-20T02:16:42.611Z /psu/2 has experienced a fault
1166
1166
1167
1167
1168
1168
sonic# show alarm detail
@@ -1183,9 +1183,9 @@ sonic# show alarm from 14 to 16
1183
1183
----------------------------------------------------------------------------------------------------------------------------
1184
1184
Id Severity Name Timestamp Description
1185
1185
----------------------------------------------------------------------------------------------------------------------------
1186
- 14 WARNING TEMPERATURE_EXCEEDED 2021-05-20T00:47:52.992Z :- temperatureCrossedThreshold: Current temperature of sensor/2 is 76 degrees
1187
- 15 WARNING DUMMY_ALARM 2021-05-20T02:16:41.637Z :- signalHandler: Raising simulated alarm
1188
- 16 WARNING PSU_FAULT 2021-05-20T02:16:42.611Z :- /psu/2 has experienced a fault
1186
+ 14 WARNING TEMPERATURE_EXCEEDED 2021-05-20T00:47:52.992Z temperatureCrossedThreshold: Current temperature of sensor/2 is 76 degrees
1187
+ 15 WARNING DUMMY_ALARM 2021-05-20T02:16:41.637Z signalHandler: Raising simulated alarm
1188
+ 16 WARNING PSU_FAULT 2021-05-20T02:16:42.611Z /psu/2 has experienced a fault
1189
1189
1190
1190
sonic# show alarm summary
1191
1191
Alarm summary
0 commit comments