- use as displayname only hostname not fqdn which could be passwed from hello_string

This commit is contained in:
Zdenek Pizl 2014-02-09 14:57:03 +01:00
parent 12e2057505
commit cd586be931

View File

@ -48,7 +48,7 @@ class Munin():
return return
try: try:
node_name = RE_MUNIN_NODE_NAME.search(self.hello_string).group(1) node_name = RE_MUNIN_NODE_NAME.search(self.hello_string).group(1)
self.displayname = node_name self.displayname = node_name.split(".")[0]
except AttributeError: except AttributeError:
logging.info("Unable to obtain munin node name from: %s", logging.info("Unable to obtain munin node name from: %s",
self.hello_string) self.hello_string)