diff --git a/PVE/Status/InfluxDB.pm b/PVE/Status/InfluxDB.pm index de291de..49c702a 100644 --- a/PVE/Status/InfluxDB.pm +++ b/PVE/Status/InfluxDB.pm @@ -267,6 +267,11 @@ sub test_connection { } my $response = $ua->get($url); + # the InfluxDB v2 listener of Telegraf before 1.36 only has the ready endpoint + if ($response->code == 404) { + $response = $ua->get(_get_v2url($cfg, "ready")); + } + if (!$response->is_success) { my $err = $response->status_line; die "$err\n";