mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
munin shell migration
This commit is contained in:
parent
4640628be4
commit
a4aebb1bce
@ -49,7 +49,9 @@ def run(plugins):
|
||||
if plugin not in all_plugins:
|
||||
continue
|
||||
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'):
|
||||
if 'value' in line: # This skips multigraph lines, etc
|
||||
key, val = line.split(' ')
|
||||
|
Loading…
Reference in New Issue
Block a user