From 5f7a8b83aa39b232172ccc7a7c1844dbb84195a1 Mon Sep 17 00:00:00 2001 From: Chris Sy Date: Sat, 11 Jul 2015 13:00:52 +0200 Subject: [PATCH 1/2] Fix Munin Setup `use_node_name yes` in favor of #474 needs for environments with ipv4 and ipv6 enabled. `hostname` could be differnt to `$PRIMARY_HOSTNAME` For me hostname : vservername.providername.tld $PRIMARY_HOSTNAME : box.vservername.providername.tld (notice the missing `box.`) Munin needs that the hostname fits to the `/etc/hostname`. --- setup/munin.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/munin.sh b/setup/munin.sh index 8ee0ae5b..db55c819 100755 --- a/setup/munin.sh +++ b/setup/munin.sh @@ -21,6 +21,7 @@ includedir /etc/munin/munin-conf.d # a simple host tree [$PRIMARY_HOSTNAME] address 127.0.0.1 +host_name `hostname` # send alerts to the following address contacts admin From 6755a0fcb692f65750e0b3062b33ad19b05205bb Mon Sep 17 00:00:00 2001 From: Chris Sy Date: Sat, 11 Jul 2015 13:32:03 +0200 Subject: [PATCH 2/2] missing parameter could cause wrong hostname --- setup/munin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/munin.sh b/setup/munin.sh index db55c819..9e3f5a8d 100755 --- a/setup/munin.sh +++ b/setup/munin.sh @@ -21,7 +21,7 @@ includedir /etc/munin/munin-conf.d # a simple host tree [$PRIMARY_HOSTNAME] address 127.0.0.1 -host_name `hostname` +host_name `hostname --fqdn` # send alerts to the following address contacts admin