dreport: Added hostnamectl plugin

Plugin used for collecting current hostname settings.

Change-Id: Ie328931a1de648649397d1525f6efaf960a0964e
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/tools/dreport.d/plugins.d/hostnamectl b/tools/dreport.d/plugins.d/hostnamectl
new file mode 100644
index 0000000..18799cf
--- /dev/null
+++ b/tools/dreport.d/plugins.d/hostnamectl
@@ -0,0 +1,13 @@
+#!/bin/bash
+#
+# config: 123 5
+# @brief: Collect current hostname settings.
+#
+
+. $DREPORT_INCLUDE/functions
+
+desc="hostnamectl"
+file_name="hostnamectl.log"
+command="hostnamectl status"
+
+add_cmd_output "$command" "$file_name" "$desc"