aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2019-08-09 13:08:39 +0000
committerYousong Zhou <yszhou4tech@gmail.com>2019-08-10 09:52:22 +0800
commit65834147973146925f458e37adaf30f4ab59d2cb (patch)
treef028c937d575f225bbde142ce1a40bf52a0294d6 /utils
parent02840f4c2a3465996cd586bf50f3041c2238cd78 (diff)
collectd: use uname to get default Hostname
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/collectd/files/collectd.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/collectd/files/collectd.init b/utils/collectd/files/collectd.init
index 71993f601..a9182380f 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"