summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayanth Othayoth <ojayanth@in.ibm.com>2017-10-15 06:13:48 -0500
committerJayanth Othayoth <ojayanth@in.ibm.com>2017-10-24 10:12:09 -0500
commit04e430c0203b499926fd85950157f407b1f4e883 (patch)
tree57f46b5d09698070fecc50420fd60c855d0d8d97
parent05187a63bf0ddbaf0f151b1bd7209f5a9c35f03a (diff)
downloadphosphor-debug-collector-04e430c0203b499926fd85950157f407b1f4e883.tar.gz
phosphor-debug-collector-04e430c0203b499926fd85950157f407b1f4e883.zip
dreport: Added systemd failed units plugin
Plugin used for collecting systemd failed units information. Change-Id: Icc5f910f613b78fef2e7e557ddfe85692904bce2 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r--tools/dreport.d/plugins.d/failedservices13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/failedservices b/tools/dreport.d/plugins.d/failedservices
new file mode 100644
index 0000000..2d0113e
--- /dev/null
+++ b/tools/dreport.d/plugins.d/failedservices
@@ -0,0 +1,13 @@
+#!/bin/bash
+#
+# config: 123 10
+# @brief: Collect failed services information.
+#
+
+. $DREPORT_INCLUDE/functions
+
+desc="failed services"
+file_name="failed-services.log"
+command="systemctl --failed"
+
+add_cmd_output "$command" "$file_name" "$desc"
OpenPOWER on IntegriCloud