Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Aleksey-Maksimov opened this issue May 22, 2024 · 0 comments
Open

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

Aleksey-Maksimov opened this issue May 22, 2024 · 0 comments

Comments

@Aleksey-Maksimov
Copy link

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"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant