dreport: Added HOST state plugin

Plugin used for collecting HOST state information.

Change-Id: I91143aaf9b0c0c9a33049df5d84216fd29c6e00f
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/tools/dreport.d/plugins.d/hoststate b/tools/dreport.d/plugins.d/hoststate
new file mode 100644
index 0000000..9ab3e94
--- /dev/null
+++ b/tools/dreport.d/plugins.d/hoststate
@@ -0,0 +1,17 @@
+#!/bin/bash
+#
+# config: 123 5
+# @brief: Collect Host state information.
+#
+
+. $DREPORT_INCLUDE/functions
+
+desc="Host State"
+file_name="host-state.log"
+command="busctl get-property \
+                    xyz.openbmc_project.State.Host \
+                    /xyz/openbmc_project/state/host0 \
+                    xyz.openbmc_project.State.Host \
+                    CurrentHostState"
+
+add_cmd_output "$command" "$file_name" "$desc"