telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

Proxmox plugin returns "Error in plugin: node_name not found"

Open davromaniak opened this issue 6 years ago • 8 comments

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.

davromaniak avatar Oct 22 '20 16:10 davromaniak

I'm seeing the same error - node_name not found - can this be verified please?

liveware-problems avatar Nov 03 '20 15:11 liveware-problems

Same issue here. Even commenting node_name (as it's optional) doesn't help. Permission issue?

olsonnn avatar Nov 03 '20 17:11 olsonnn

i've got it working when using:

api_token = "root@pam!monitor=lalblalbal" node_name = "pve"

it seems root is required?!

olsonnn avatar Nov 03 '20 18:11 olsonnn

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.

davromaniak avatar Nov 03 '20 18:11 davromaniak

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.

davromaniak avatar Nov 03 '20 19:11 davromaniak

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.

rare-magma avatar Nov 04 '20 09:11 rare-magma

Hi.

Here it is.

search davro.tech nameserver 213.186.33.99

When I had the issue, the "search" line wasn't here.

Thanks.

davromaniak avatar Nov 04 '20 14:11 davromaniak

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?

papadopouloskyriakos avatar Dec 21 '24 00:12 papadopouloskyriakos