Proxmox plugin error

I created a user auditor in the pve realm, and add the role PVEAuditor to it

# pveum aclmod / -user auditor@pve -role PVEAuditor

Then I created a token for it, and name the token auditor

I copied configuration from telegraf/plugins/inputs/proxmox at master · influxdata/telegraf · GitHub

I’m confused about the api_token config:

“auditor@pve!TOKENID=UUID”

Should I put the secret from creating the token or put the token id: auditor in the UUID? I tried both, but all have error below when testing it.

$ telegraf --debug --config t.conf --input-filter proxmox --test
2021-03-11T03:33:04Z I! Starting Telegraf 1.17.3
2021-03-11T03:33:04Z D! [agent] Initializing plugins
2021-03-11T03:33:04Z D! [agent] Starting service inputs
2021-03-11T03:33:07Z E! [inputs.proxmox] Error in plugin: unexpected end of JSON input
2021-03-11T03:33:07Z D! [agent] Stopping service inputs
2021-03-11T03:33:07Z D! [agent] Input channel closed
2021-03-11T03:33:07Z D! [agent] Stopped Successfully
2021-03-11T03:33:07Z E! [telegraf] Error running agent: input plugins recorded 1 errors

Hi, I think the thread on this issue may help you configure your api_token correctly:

Let me know if that works for you.

1 Like