diff --git a/main.py b/main.py index 805b3a52e81c8924ccf6768bb225a7435a5221a4..e02bf9e1d24de87e3a05b0b4128006e2df862793 100755 --- a/main.py +++ b/main.py @@ -71,6 +71,10 @@ def influxb_connect(config): ) client.ping() return client + except KeyError as e: + if e.args == ("x-influxdb-version",): + print("Ignoring vmagent missing x-influxdb-version header") + return client except Exception as e: print("Cannot connect to {} : {}".format(o.hostname, e)) print("If InfluxDB has just started, this is normal, please wait!")