centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

[database::influxdb::plugin] Is InfluxDB v2 supported?

Open Aleksey-Maksimov opened this issue 9 months ago • 7 comments

Hello. Is InfluxDB v2 supported in the plugin "database::influxdb::plugin" ?

# ./centreon_plugins.pl --plugin=database::influxdb::plugin --mode=list-databases 
--hostname localhost --username 'admin' --password 'mypass' --debug

UNKNOWN: 401 Unauthorized

URL: 'http://localhost:8086/query?epoch=s'
Parameters: 'q=SHOW DATABASES'
======> request send
POST http://localhost:8086/query?epoch=s
Authorization: Basic aWNpbm....==
User-Agent: centreon::plugins::backend::http::useragent
Content-Type: application/x-www-form-urlencoded

q=SHOW+DATABASES
======> response done
HTTP/1.1 401 Unauthorized
Date: Wed, 22 May 2024 20:41:31 GMT
Content-Length: 48
Content-Type: application/json; charset=utf-8
Client-Date: Wed, 22 May 2024 20:41:31 GMT
Client-Peer: 127.0.0.1:8086
Client-Response-Num: 1
X-Influxdb-Build: OSS
X-Influxdb-Version: v2.7.6
X-Platform-Error-Code: unauthorized

{"code":"unauthorized","message":"Unauthorized"}

Aleksey-Maksimov avatar May 22 '24 20:05 Aleksey-Maksimov