Browse Source

collectd: use uname to get default Hostname

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
lilik-openwrt-22.03
Yousong Zhou 5 years ago
parent
commit
6583414797
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/collectd/files/collectd.init

+ 1
- 1
utils/collectd/files/collectd.init View File

@ -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"


Loading…
Cancel
Save