adejoux / nmon2influxdb

Make NMON data dynamic with InfluxDB
GNU Affero General Public License v3.0
80 stars 29 forks source link

Compatibility with InfluxDB v.2 #79

Open baxyz opened 3 years ago

baxyz commented 3 years ago

Does anyone have a simple trick to get this awesome tool compatible with InfluxDB v.2 ?

I read that InfluxDB v.2 has a compatibility API (found here), but I got an authentication problem.

I tried without any change:

2021/03/03 15:43:10 Using configuration file /home/username/.nmon2influxdb.cfg
2021/03/03 15:43:10 Creating InfluxDB database nmon_tests-db
2021/03/03 15:43:10 NMON file separator: ,
2021/03/03 15:43:10 {"code":"unauthorized","message":"Unauthorized"}

We successfully used the compatibility API with Grafana, and it works using the token auth method.

adejoux commented 3 years ago

Hello,

Unfortunately I don't work with power systems anymore. I will try to check this issue but without being able to test everything.

Regards,

Alain

yesl0107 commented 2 years ago

I met this problem also when use Influxdb v2.2,Does anyone can fix this?

[root@B software]# ./nmon2influxdb import B_220508_1003.nmon 2022/05/08 20:03:29 Using configuration file /root/.nmon2influxdb.cfg 2022/05/08 20:03:29 Creating InfluxDB database nmon_data 2022/05/08 20:03:29 NMON file separator: , 2022/05/08 20:03:29 {"code":"unauthorized","message":"Unauthorized"}

adejoux commented 2 years ago

Hello,

Unfortunately I will not be able to help. I didn't check the new influxdb protocol and the compatibility layer and will not have time to do so in the near future.