From 4d54186f17a6df43945e405091f2ee904593718a Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Fri, 9 Aug 2019 13:08:39 +0000 Subject: [PATCH] collectd: use uname to get default Hostname Signed-off-by: Yousong Zhou (cherry-picked for 19.07) Signed-off-by: Hannu Nyman --- utils/collectd/files/collectd.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/collectd/files/collectd.init b/utils/collectd/files/collectd.init index 71993f6012..a9182380f4 100644 --- a/utils/collectd/files/collectd.init +++ b/utils/collectd/files/collectd.init @@ -189,7 +189,7 @@ process_config() { config_get ReadThreads globals ReadThreads 2 printf "ReadThreads \"%s\"\n" "$ReadThreads" >> "$COLLECTD_CONF" - config_get Hostname globals Hostname "$(hostname)" + config_get Hostname globals Hostname "$(uname -n)" printf "Hostname \"%s\"\n" "$Hostname" >> "$COLLECTD_CONF" printf "\n" >> "$COLLECTD_CONF" -- 2.30.2