Skip to content
Snippets Groups Projects
Commit 5e988b80 authored by Florent Thiery's avatar Florent Thiery
Browse files

handle both aaa.bbb.ccc and aaa.ccc cases, refs #21661

parent 6945d4cc
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ def print_green(txt):
host = conf.get('MS_SERVER_NAME')
suffix = host.split('.')[-1]
suffix = '.'.join(host.split('.')[1:])
MUNIN_CHECK_PATH = "/var/cache/munin/www/%s/%s/cpu-day.png" % (suffix, host)
if not os.path.exists(MUNIN_CHECK_PATH):
MUNIN_CHECK_PATH = "/var/cache/munin/www/%s/%s/cpu-day.png" % ("localdomain", "localhost.localdomain")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment