diff --git a/plugins/oceanbase/3.1.0/start_check.py b/plugins/oceanbase/3.1.0/start_check.py index d56070ec4a171dfcc19632d998f17daf65ba41e5..03685eb6736c68b6211bc9e98e34bb055b9a07ae 100644 --- a/plugins/oceanbase/3.1.0/start_check.py +++ b/plugins/oceanbase/3.1.0/start_check.py @@ -167,7 +167,7 @@ def _start_check(plugin_context, strict_check=False, *args, **kwargs): devname = server_config.get('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)) if devname not in inferfaces: inferfaces[devname] = []