Performance Graphs InfluxDB Nagflux issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
dhlao
Posts: 14
Joined: Thu Apr 29, 2021 10:23 am

Performance Graphs InfluxDB Nagflux issue

Post 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?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Performance Graphs InfluxDB Nagflux issue

Post 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.
Former Nagios employee
https://www.mcapra.com/
dhlao
Posts: 14
Joined: Thu Apr 29, 2021 10:23 am

Re: Performance Graphs InfluxDB Nagflux issue

Post 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.
Locked