summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayanth Othayoth <ojayanth@in.ibm.com>2017-10-15 05:54:25 -0500
committerJayanth Othayoth <ojayanth@in.ibm.com>2017-10-24 10:12:07 -0500
commit7fbaff3f59bb3546c411af6a031df253b436a181 (patch)
treed880fb1ac7b1b9abf3d4aba66faba8bb5f6909c4
parent74fe5e432be1690c2995693bf840b07c86aeaace (diff)
downloadphosphor-debug-collector-7fbaff3f59bb3546c411af6a031df253b436a181.tar.gz
phosphor-debug-collector-7fbaff3f59bb3546c411af6a031df253b436a181.zip
dreport: Added meminfo plugin
Plugin used for collecting information about the systems RAM usage. Change-Id: I5a3de1442355d913e08675fa1713a0feb4d5bef4 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r--tools/dreport.d/plugins.d/meminfo12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/meminfo b/tools/dreport.d/plugins.d/meminfo
new file mode 100644
index 0000000..d9b4f0f
--- /dev/null
+++ b/tools/dreport.d/plugins.d/meminfo
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# config: 123 10
+# @brief: Collect meminfo log
+#
+
+. $DREPORT_INCLUDE/functions
+
+desc="Memory info"
+file_name="/proc/meminfo"
+
+add_copy_file "$file_name" "$desc"
OpenPOWER on IntegriCloud