I have a cacti v1.2.17 which retrieves snmp data on different equipment
So I don’t want to redo polling on this equipment via telegraf.
So I say use CereusTransporter via the target: influxdb://user:password@IP_INFLUXDB:8086/Cacti to send to InfluxDB v2.5.1
My problem is that using via user/password doesn’t work, you have to use a token.
How can I add a user / password to access influxdb.
To test locally I do this test:
curl -G http://localhost:8086/query -u user:password --data-urlencode “q=SHOW DATABASES”
Thank you in advance for your answers
influx user list -t Mc0y-e-mtD8HCHB7C50mxaxlp3FoHHosAihejMLxj0gSBNg87cl_jx9F8_db1XqZx9ugQZqNKopnwMapbOHGxQ==
The user admin and token is OK
curl --get “http://localhost:8086/query” --user “admin”:“Mc0y-e-mtD8HCHB7C50mxaxlp3FoHHosAihejMLxj0gSBNg87cl_jx9F8_db1XqZx9ugQZqNKopnwMapbOHGxQ==” --data-urlencode “q=SHOW DATABASES”
Thanks for this solution, it works great with curl.
On the other hand with the plugin cacti CereusTransporter it does not work.
I think it’s due to the format of the url which is:
influxdb://user:password@IP_INFLUXDB:8086/Cacti where Cacti is the bucket.
Anyway, I keep looking for a solution.