未验证 提交 b037c96b 编写于 作者: R Rongfeng Fu 提交者: GitHub

fix #37 (#38)

上级 4aad912a
...@@ -167,7 +167,7 @@ def _start_check(plugin_context, strict_check=False, *args, **kwargs): ...@@ -167,7 +167,7 @@ def _start_check(plugin_context, strict_check=False, *args, **kwargs):
devname = server_config.get('devname') devname = server_config.get('devname')
if devname: if devname:
if not client.execute_command("grep -e ' %s:' /proc/net/dev" % devname): if not client.execute_command("grep -e '^ *%s:' /proc/net/dev" % devname):
critical('%s No such net interface: %s' % (server, devname)) critical('%s No such net interface: %s' % (server, devname))
if devname not in inferfaces: if devname not in inferfaces:
inferfaces[devname] = [] inferfaces[devname] = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册