munin shell migration

This commit is contained in:
Thomas S Hatch 2015-01-07 14:27:47 -07:00
parent 4640628be4
commit a4aebb1bce

View File

@ -49,7 +49,9 @@ def run(plugins):
if plugin not in all_plugins: if plugin not in all_plugins:
continue continue
data[plugin] = {} data[plugin] = {}
muninout = __salt__['cmd.run']('munin-run ' + plugin) muninout = __salt__['cmd.run'](
'munin-run {0}'.format(plugin),
python_shell=False)
for line in muninout.split('\n'): for line in muninout.split('\n'):
if 'value' in line: # This skips multigraph lines, etc if 'value' in line: # This skips multigraph lines, etc
key, val = line.split(' ') key, val = line.split(' ')