From cd586be93197bd7c4702ba4b2ea0987fb8b3e0da Mon Sep 17 00:00:00 2001 From: Zdenek Pizl Date: Sun, 9 Feb 2014 14:57:03 +0100 Subject: [PATCH] - use as displayname only hostname not fqdn which could be passwed from hello_string --- m2g-poller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m2g-poller.py b/m2g-poller.py index fe7ac8b..966b68c 100755 --- a/m2g-poller.py +++ b/m2g-poller.py @@ -48,7 +48,7 @@ class Munin(): return try: node_name = RE_MUNIN_NODE_NAME.search(self.hello_string).group(1) - self.displayname = node_name + self.displayname = node_name.split(".")[0] except AttributeError: logging.info("Unable to obtain munin node name from: %s", self.hello_string)