diff options
| author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-10-15 06:09:03 -0500 |
|---|---|---|
| committer | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-10-24 10:12:09 -0500 |
| commit | 5d7e45f7d8ba7dceb089dfe56ecf4a8b6ab41e29 (patch) | |
| tree | 5e6857bd2389a64f3a55086e86b73da99f689f55 | |
| parent | 03409cf6b293f727b9f34670a133aefd6d5fabc7 (diff) | |
| download | phosphor-debug-collector-5d7e45f7d8ba7dceb089dfe56ecf4a8b6ab41e29.tar.gz phosphor-debug-collector-5d7e45f7d8ba7dceb089dfe56ecf4a8b6ab41e29.zip | |
dreport: Added uptime plugin
Plugin used for collecting uptime command output data.
Change-Id: Ia6e7f815c4c8e0106cbe77c2c433ff1a01775f95
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
| -rw-r--r-- | tools/dreport.d/plugins.d/uptime | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/uptime b/tools/dreport.d/plugins.d/uptime new file mode 100644 index 0000000..568e598 --- /dev/null +++ b/tools/dreport.d/plugins.d/uptime @@ -0,0 +1,13 @@ +#!/bin/bash +# +# config: 123 50 +# @brief: Collect uptime information. +# + +. $DREPORT_INCLUDE/functions + +desc="uptime" +file_name="uptime.log" +command="uptime" + +add_cmd_output "$command" "$file_name" "$desc" |

