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.

geomtech commented 2 months ago

You can't use CREATE with Influxdb 2 API v1 compatibility, the database must be created before with this command : influx v1 dbrp create --db aix --default --org "XXXXX" --bucket-id XXXXX --rp autogen

After that, in the cfg conf file, you must put the name of the database in following fields : influxdb_database AND import_log_database

It works well with InfluxDB v2 with API compatibility : image

yesl0107 commented 1 month ago

Thanks for your method 👍👍发自我的 iPhone在 2024年9月24日,23:08,Alexy Da Cruz @.***> 写道: You can't use CREATE with Influxdb 2 API v1 compatibility, the database must be created before with this command : influx v1 dbrp create --db aix --default --org "XXXXX" --bucket-id XXXXX --rp autogen After that, in the cfg conf file, you must put the name of the database in following fields : influxdb_database AND import_log_database It works well with InfluxDB v2 with API compatibility : image.png (view on web)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>