diff options
| author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-10-15 06:05:19 -0500 |
|---|---|---|
| committer | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-10-24 10:12:08 -0500 |
| commit | 03409cf6b293f727b9f34670a133aefd6d5fabc7 (patch) | |
| tree | 245489cd5ecc79ddccc8b6ab4bfaa6f6f302812a /tools | |
| parent | 64d6d6a52094f29a23734f78587f8c28a35e3b8a (diff) | |
| download | phosphor-debug-collector-03409cf6b293f727b9f34670a133aefd6d5fabc7.tar.gz phosphor-debug-collector-03409cf6b293f727b9f34670a133aefd6d5fabc7.zip | |
dreport: Added disk usage plugin
Plugin used for collecting BMC disk usage data.
Change-Id: I507a7516453aeff7b7675a41a52ec54b881c6ca1
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/dreport.d/plugins.d/diskusage | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/diskusage b/tools/dreport.d/plugins.d/diskusage new file mode 100644 index 0000000..54fb6b9 --- /dev/null +++ b/tools/dreport.d/plugins.d/diskusage @@ -0,0 +1,13 @@ +#!/bin/bash +# +# config: 123 10 +# @brief: Collect disk usage information. +# + +. $DREPORT_INCLUDE/functions + +desc="disk usage" +file_name="disk-usage.log" +command="df -hT" + +add_cmd_output "$command" "$file_name" "$desc" |

