Page 1 of 1

Performance Graphs InfluxDB Nagflux issue

Posted: Fri Aug 20, 2021 5:02 am
by dhlao
I follow the guide https://support.nagios.com/kb/article/n ... tml#Debian and now get stuck at "Validate Nagflux to InfluxDB Configuration".

Running below command end up showing "code:unauthorized;message:unauthorized access"

Code: Select all

curl -G "http://localhost:8086/query?pretty=true" --data-urlencode "q=show databases"
I admit that I ddin't fully follow the guide which instructs user to use InfluxDB v1.4. But I choose to install the latest v2.0.

Is there anyone knows if the problem was caused by incompatible DB version?

Re: Performance Graphs InfluxDB Nagflux issue

Posted: Fri Aug 20, 2021 9:01 am
by mcapra
InfluxDB 2.0+ has a default username+password I believe:
https://docs.influxdata.com/influxdb/v2 ... ug-fixes-4
Require user to set password during initial user onboarding.
https://docs.influxdata.com/influxdb/v2 ... -password/

If you're set on using InfluxDB 2.0+, you'll need to provide those credentials in your curl command, as well as your Grafana configuration and Nagflux configuration.

Re: Performance Graphs InfluxDB Nagflux issue

Posted: Sun Aug 22, 2021 10:45 pm
by dhlao
Thanks for the tips, mcapra, but the new query command style for v2.0 is way too complicated to me, so I choose v1.6.4 which is stable version of Debian 10.