From 04e430c0203b499926fd85950157f407b1f4e883 Mon Sep 17 00:00:00 2001 From: Jayanth Othayoth Date: Sun, 15 Oct 2017 06:13:48 -0500 Subject: dreport: Added systemd failed units plugin Plugin used for collecting systemd failed units information. Change-Id: Icc5f910f613b78fef2e7e557ddfe85692904bce2 Signed-off-by: Jayanth Othayoth --- tools/dreport.d/plugins.d/failedservices | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tools/dreport.d/plugins.d/failedservices (limited to 'tools/dreport.d/plugins.d/failedservices') 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" -- cgit v1.2.1