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>
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 0d31afb..5c62d45 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