diff --git a/tests/test_monitoring.py b/tests/test_monitoring.py index b11608b40c115b52af114bfce4fb4f6b30a478ac..4d5784f440b51e65fd093159483cd6208a782728 100755 --- a/tests/test_monitoring.py +++ b/tests/test_monitoring.py @@ -45,6 +45,7 @@ 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") + def check_munin(): print('Checking if monitoring works') mtime = os.path.getmtime(MUNIN_CHECK_PATH) @@ -62,5 +63,5 @@ if not os.path.exists(MUNIN_CHECK_PATH): print_red('Munin data %s not found.' % MUNIN_CHECK_PATH) sys.exit(1) -rc = check_munin() +rc = check_munin() sys.exit(rc)