aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Portante <peter.portante@redhat.com>2014-09-12 15:29:39 -0400
committerBryn M. Reeves <bmr@redhat.com>2014-09-16 19:38:40 +0100
commit75c635b7aa0c5fd779b1735ff01b69cdbd892d0a (patch)
treedccde1f22de734d01eb84e128b65c2c2b0295ba2
parentf26c7cb829b42662d5d337f0ac892f1e5af1880e (diff)
downloadsos-75c635b7aa0c5fd779b1735ff01b69cdbd892d0a.tar.gz
Try to ensure FQDN of host is collected
Not all systems are required to have the generic hostname command return the FQDN. We have encountered customers who require the a short name by default. Adding the "-f" output helps to get that information. Signed-off-by: Peter Portante <peter.portante@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/general.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/sos/plugins/general.py b/sos/plugins/general.py
index a7a341c3..6fae0367 100644
--- a/sos/plugins/general.py
+++ b/sos/plugins/general.py
@@ -32,7 +32,12 @@ class General(Plugin):
"/etc/os-release"
])
- self.add_cmd_output("hostname", root_symlink="hostname")
+ self.add_cmd_output(
+ "hostname -f",
+ root_symlink="hostname",
+ suggest_filename="hostname"
+ )
+
self.add_cmd_output("date", root_symlink="date")
self.add_cmd_output("uptime", root_symlink="uptime")