dreport: Added Chassis state plugin

Plugin used for collecting Chassis state information.

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