summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/dreport.d/plugins.d/top13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/top b/tools/dreport.d/plugins.d/top
new file mode 100644
index 0000000..a61e888
--- /dev/null
+++ b/tools/dreport.d/plugins.d/top
@@ -0,0 +1,13 @@
+#!/bin/bash
+#
+# config: 123 10
+# @brief: Collect top command output.
+#
+
+. $DREPORT_INCLUDE/functions
+
+desc="top"
+file_name="top.log"
+command="top -n 1 -b"
+
+add_cmd_output "$command" "$file_name" "$desc"
OpenPOWER on IntegriCloud