Zabbix Template - Proxmox VE by HTTP - not working to provide data

Same problem here
Zabbix Server Version: 6.0.29
This is the step i do on proxmox
Create a new role with this privileges:
1716378826958.png
Then i create new user for zabbix i try both with realm "pam" and "pve" but i have the same errors, and new api token then i assign the roles i created on both user and api token:
1716378922526.png
In the zabbix side i created new host:
1716378948905.png
With this Macros:
1716378980302.png
But this is the error i get:
1716379010915.png
 
Hi everyone
This is the howto that's it works:
Create user on proxmox for zabbix:
1716532086956.png
Create a custom "roles":
1716532124951.png
Create an API TOKEN:
1716532154840.png
Save in a safe place the token ID and Secret.
In Datacenter>Permission configure as follow:
1716532195468.png
On Proxmox side we finished.
On Zabbix Server we add an Host with this:
1716532241857.png
On the TAB "Macros" we add this:
1716532266326.png
and that's it.
 
Hi everyone
This is the howto that's it works:
Create user on proxmox for zabbix:
View attachment 68699
Create a custom "roles":
View attachment 68700
Create an API TOKEN:
View attachment 68701
Save in a safe place the token ID and Secret.
In Datacenter>Permission configure as follow:
View attachment 68702
On Proxmox side we finished.
On Zabbix Server we add an Host with this:
View attachment 68703
On the TAB "Macros" we add this:
View attachment 68704
and that's it.

nope. This is not working.
I am still getting "Response code "400" did not match any of the required status codes "200""
 
Hello! Replied to Issue on GitHub, copyng my answer here.

Most likely, the user under which the template goes to the PBS API does not have enough permissions...

Minimal needed permissions for user:

/datastore - Audit
/system/status - Audit
/system/tasks - Audit
/datastore does not exist
 
Just popping a note here to subscribe to the thread.
I use Zabbix. With PVE and PBS. A lot. It works.

I also wanted a raw measure of how well those systems were working.
How accessible are they?
I settled on monitoring the web interface via Web Scenario.
Made a new template I called GUI Heartbeat.

This person wrote a guide on monitoring a website. I found this easy to follow.
https://karthidkk123.medium.com/a-c...ced-availability-and-performance-f32841e14766
 
Last edited:
I was able to resolve the issue by following (for Proxmox VE by HTTP template):



1. make sure you have PVE user created (not pam)

2. On zabbix server or on zabbix proxy try putting selinux to permissive or run following:

setsebool -P zabbix_can_network 1


3. Proxmox > Datacenter > Permission: assign " PVE auditor" role to both User (user@pve) and API Token Permission (user@pve!TokenName)

/
/nodes/<PVE hostname>
/vms
/storage


4. Make sure zabbix server/proxy trusts your proxmox host certificate


5. use following command for troubleshooting on zabbix server/proxy:

curl -d "username=user@pve&password=<your secret>" https://<URL>:8006/api2/json/access/token -v

curl -d "username=user@pve&password=<your secret>" https://<URL>:8006/api2/json/access/cluster/status -v
 
Last edited:
  • Like
Reactions: Ad3t0
I was able to resolve the issue by following (for Proxmox VE by HTTP template):



1. make sure you have PVE user created (not pam)

2. On zabbix server of zabbix proxy try putting selinux to permissive or run following:

setsebool -P zabbix_can_network 1


3. Proxmox > Datacenter > Permission: assign " PVE auditor" role to both User (user@pve) and API Token Permission (user@pve!TokenName)

/
/nodes/<PVE hostname>
/vms
/storage


4. Make sure zabbix server/proxy trusts your proxmox host certificate


5. use following command for troubleshooting on zabbix server/proxy:

curl -d "username=user@pve&password=<your secret>" https://<URL>:8006/api2/json/access/token -v

curl -d "username=user@pve&password=<your secret>" https://<URL>:8006/api2/json/access/cluster/status -v
Thx. Its work.
 
I was able to resolve the issue by following (for Proxmox VE by HTTP template):



1. make sure you have PVE user created (not pam)

2. On zabbix server of zabbix proxy try putting selinux to permissive or run following:

setsebool -P zabbix_can_network 1


3. Proxmox > Datacenter > Permission: assign " PVE auditor" role to both User (user@pve) and API Token Permission (user@pve!TokenName)

/
/nodes/<PVE hostname>
/vms
/storage


4. Make sure zabbix server/proxy trusts your proxmox host certificate


5. use following command for troubleshooting on zabbix server/proxy:

curl -d "username=user@pve&password=<your secret>" https://<URL>:8006/api2/json/access/token -v

curl -d "username=user@pve&password=<your secret>" https://<URL>:8006/api2/json/access/cluster/status -v
Legend, thank you this helped me!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!