Proxmox plugin returns "Error in plugin: node_name not found"
Hi.
Here's the issue I encounter while trying to activate the new proxmox input plugin
~# telegraf --config /etc/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d/ --input-filter proxmox --test
2020-10-22T16:19:08Z I! Starting Telegraf 1.16.0
2020-10-22T16:19:08Z E! [inputs.proxmox] Error in plugin: node_name not found
2020-10-22T16:19:08Z E! [telegraf] Error running agent: input plugins recorded 1 errors
/etc/telegraf/telegraf.d/proxmox.conf:
[[inputs.proxmox]]
base_url = "https://__host__.davromaniak.eu:8006/api2/json"
api_token = "root@pam!xxxxxx-xxxxxxx"
insecure_skip_verify = false
response_timeout = "5s"
System info:
Telegraf 1.16.0 on Debian Buster 64bits (running Proxmox PVE, standalone node)
Additional info:
When trying to perform the API call "manually", here's the result I get using the url "https://host.davromaniak.eu:8006/api2/json/nodes/host/dns" :
{"data":{"search":"davromaniak.eu","dns1":"xxx.xxx.xxx.xxx"}}
host being the hostname (not the FQDN)
I don't know if I missed something on this, don't hesitate to tell/ask me.
Thanks.
I'm seeing the same error - node_name not found - can this be verified please?
Same issue here. Even commenting node_name (as it's optional) doesn't help. Permission issue?
i've got it working when using:
api_token = "root@pam!monitor=lalblalbal" node_name = "pve"
it seems root is required?!
Hi.
Even when I set the node name to the actual hostname (not FQDN), I have the "node_name not found".
I'll try to do some debug later today, but I'm not fluent in Go, so it will be kind of challenging.
Thanks.
Hi.
Well... I found the issue.
I don't know why, but my "/etc/resolv.conf" file was totally messed up and there was no default domain ("search ...").
I fixed this, rebooted the server and no issues right now.
I hope it will help you and anybody that encounter this error.
Thanks.
Hi @davromaniak Could you please share more details on how you fixed your issue? Perhaps share your /etc/resolv.conf setup? I'm still facing the same error.
Hi.
Here it is.
search davro.tech
nameserver 213.186.33.99
When I had the issue, the "search" line wasn't here.
Thanks.
Can you kindly re-open this and all related issues with the "search domain is not set" error? It doesn't look like it is solved somehow, or I haven't noticed after all this time searching?