Is there a guide on how to configure the agent on Proxmox? I found one guide, but it was very confusing on accounts and API keys setup. I spent an hour trying different ways but no luck. I can see the host but get an error message "Proxmox: API service not available". PVE is 8. and Zabbix agent 6.2
Ad Widget
Collapse
Proxmox agent config
Collapse
X
-
Tags: None
-
-
I did, but I cant figure out how to do this. In the Permissions dialog for the user, there are no Add or Create. Just a list that looks like this
For the created API token and user, provide the necessary access levels:- Check: ["perm","/",["Sys.Audit"]]
- Check: ["perm","/nodes/{node}",["Sys.Audit"]]
- Check: ["perm","/vms/{vmid}",["VM.Audit"]]
So I still get this when checking Latest data under Monitoring
and this
Last edited by andersostling56; 28-09-2023, 11:00.Comment
-
It probably is. Maybe caused by the lack of these settings.
Create an API token for the monitoring user. Important note: for security reasons, it is recommended to create a separate user (Datacenter - Permissions).
For the created API token and user, provide the necessary access levels:- Check: ["perm","/",["Sys.Audit"]]
- Check: ["perm","/nodes/{node}",["Sys.Audit"]]
- Check: ["perm","/vms/{vmid}",["VM.Audit"]]
Cant see any option to add permissions for the account
Comment
-
This video will help you.
It probably is. Maybe caused by the lack of these settings.
Create an API token for the monitoring user. Important note: for security reasons, it is recommended to create a separate user (Datacenter - Permissions).
For the created API token and user, provide the necessary access levels:- Check: ["perm","/",["Sys.Audit"]]
- Check: ["perm","/nodes/{node}",["Sys.Audit"]]
- Check: ["perm","/vms/{vmid}",["VM.Audit"]]
Cant see any option to add permissions for the account
Comment
-
Now I was able to add the required permissions to the zabbix account on PVE. One step closer I guess, but still the same issue. I did restart the zabbix-agent service on PVE and rebooted the Zabbix server. I still get this
Comment
-
-
Comment
-
Let me recapitulate my steps so far
On PVE host:- zabbix@pam user created
- API token for the user created
- Permissions as described in the guide assigned to the user
- Macros defined (PVE.TOKEN.ID and PVE.TOKEN.SECRET) with the values from PVE
- PVE host created with Proxmox VE by HTTP template assigned (IP address defined)
- Added to host groups Linux and Hypervisors
- Monitoring/Hosts shows 2 hosts, the zabbix server itself and the PVE host
- Selecting Latest data show this
So here we are. I cannot think of anything that I may have missed. PVE version is 8.06 and Zabbix 6.2 (agent and server appliance)
Agent logfile on PVE does not indicate any errors.
Server logfile on the Zabbix server has this error message. Unfortunately is doesnt tell which hostname is missing/failing. It would have been quite useful ...
2352:20230928:135920.322 Proxmox API failed: *UNKNOWN* Error: Error: cannot get URL: Couldn't resolve host name
Comment
-
Looks like, need a deep dive in logs. Can you please enable debug level in agent if available and gather the logs?Comment
-
Comment