Skip to content
Snippets Groups Projects
Commit 45d64f8e authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Changed Munin test log | refs #32915

parent 85b61af6
No related branches found
No related tags found
No related merge requests found
......@@ -35,14 +35,15 @@ def check_munin_node():
out = p.stdout.decode('utf-8').strip()
lg.log(out)
if out:
if out.count('ln -s'):
lg.warning('%s plugins should be enabled.' % out.count('ln -s'))
if out.count('rm -f'):
lg.warning('%s plugins should be disabled.' % out.count('rm -f'))
lg.log('''To enable/disable correct plugins, please run:\n
munin-node-configure --shell --remove-also 2>/dev/null | sh;
systemctl restart munin 2>/dev/null;
systemctl restart munin-node;''')
to_be_enabled_count = out.count('ln -s')
if to_be_enabled_count:
lg.warning('%s plugins should be enabled.' % to_be_enabled_count)
to_be_disabled_count = out.count('rm -f')
if to_be_disabled_count:
lg.warning('%s plugins should be disabled.' % to_be_disabled_count)
lg.log('''To enable/disable correct plugins, please run this command:
munin-node-configure --shell --remove-also 2>/dev/null | sh; systemctl restart munin 2>/dev/null; systemctl restart munin-node;
''')
return 0
......
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