I'm trying to set up "Veeam Backup and Replication by HTTP" in Zabbix 6.0.
I've set up {$VEEAM.API.URL}, {$VEEAM.USER} and {$VEEAM.PASSWORD} for our VBR server, but when I test the "Veeam: Get metrics" check I always get the result
I looked into the check scripts and tried to do the same requests with curl and here they just work.
Requests:
I've given the user veeam-readonly the "Veeam Backup Viewer" role. I can successfully log in the VBR console with this user and get all information read only. I can get information from the API with this user via curl. Using this user in Zabbix results in a 403 error.
On the other hand, when I enter my personal credentials in the user and password fields and run the test, it is successful. I removed all special characters from the password to rule this out as a problem.
I don't think this is a permission issue on the VBR side, since the requests work fine when issued via curl.
Can I somehow debug the actual requests Zabbix sends to the VBR REST API?
Zabbix is running on Debian 11 if that matters, no proxy involved.
I've set up {$VEEAM.API.URL}, {$VEEAM.USER} and {$VEEAM.PASSWORD} for our VBR server, but when I test the "Veeam: Get metrics" check I always get the result
{"error":"Request failed with status code 403: ."}
Requests:
Code:
curl --insecure -H 'x-api-version: 1.0-rev2' -H 'Content-Type: application/x-www-form-urlencoded' --data 'grant_type=password&username=veeam-readonly&password=LONG_PASSWORD' 'https://vbr.example.com:9419/api/oauth2/token' curl --insecure -H 'x-api-version: 1.0-rev2' -H 'Authorization: Bearer TOKEN_FROM_PREVIOUS_REQUEST' https://vbr.example.com:9419/api/v1/jobs/states
On the other hand, when I enter my personal credentials in the user and password fields and run the test, it is successful. I removed all special characters from the password to rule this out as a problem.
I don't think this is a permission issue on the VBR side, since the requests work fine when issued via curl.
Can I somehow debug the actual requests Zabbix sends to the VBR REST API?
Zabbix is running on Debian 11 if that matters, no proxy involved.
Comment