summaryrefslogtreecommitdiffstats
path: root/meta-ibm
diff options
context:
space:
mode:
authorMarri Devender Rao <devenrao@in.ibm.com>2018-08-31 07:03:45 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-09-05 09:52:34 -0400
commit3e4da38c127bb7e7641adc2fc41f4c33744cb918 (patch)
tree2f761163176b655d03ffcec0233127680249b765 /meta-ibm
parent1074cffea65d095d9093f15ac0da6ae395e0b89f (diff)
downloadtalos-openbmc-3e4da38c127bb7e7641adc2fc41f4c33744cb918.tar.gz
talos-openbmc-3e4da38c127bb7e7641adc2fc41f4c33744cb918.zip
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>
Diffstat (limited to 'meta-ibm')
-rw-r--r--meta-ibm/meta-witherspoon/recipes-phosphor/events/witherspoon-events-policy/config.yaml19
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
OpenPOWER on IntegriCloud