diff options
author | Marri Devender Rao <devenrao@in.ibm.com> | 2018-08-31 15:03:45 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-09-05 16:52:34 +0300 |
commit | 3e4da38c127bb7e7641adc2fc41f4c33744cb918 (patch) | |
tree | 2f761163176b655d03ffcec0233127680249b765 | |
parent | 1074cffea65d095d9093f15ac0da6ae395e0b89f (diff) | |
download | openbmc-3e4da38c127bb7e7641adc2fc41f4c33744cb918.tar.xz |
SNMP error notification for error log entry objects
Made following changes to cater for raising SNMP traps
1) Add watch on error logging entry objects.
2) Add callback functions to call when new error log entries are created
(From meta-ibm rev: 9854ba0949ab4b9bf12146c5e101830c993891d5)
Change-Id: Icc80a24b65ca360f43f3f46eb19e9fa720bcb962
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r-- | meta-ibm/meta-witherspoon/recipes-phosphor/events/witherspoon-events-policy/config.yaml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/events/witherspoon-events-policy/config.yaml b/meta-ibm/meta-witherspoon/recipes-phosphor/events/witherspoon-events-policy/config.yaml index 0d31afb2b..5c62d45a3 100644 --- a/meta-ibm/meta-witherspoon/recipes-phosphor/events/witherspoon-events-policy/config.yaml +++ b/meta-ibm/meta-witherspoon/recipes-phosphor/events/witherspoon-events-policy/config.yaml @@ -112,3 +112,22 @@ properties: occmemtemp property eventName: occ eventMessage: "Memory throttled due to an over temperature condition." + +- name: errorlog path group + class: group + group: path + members: + - meta: PATH + path: /xyz/openbmc_project/logging + +- name: pathwatch errorlog + class: pathwatch + pathwatch: path + paths: errorlog path group + pathcallback: create errorlog trap + +- name: create errorlog trap + class: pathcallback + pathcallback: eventpath + paths: errorlog path group + eventType: ErrorTrap |