I'm trying to set up "Veeam Backup and Replication by HTTP" in Zabbix 7.0+ and Veeam 12+ (Enterprise Plus, API included)
1) I created a user in Veeam and entered the credentials and Veeam server address as required in the guide.
I get an error when I try to test the template
2) I found a similar topic on the forum and tried to execute the commands given in the topic to check the operability from the console of the Zabbix server itself (https://www.zabbix.com/forum//zabbix...veeam-rest-api)
Code:
with key
or
the request is executed and I get the token
but without this key i get error:
3) I tried to add the certificate to trusted, but the self-signed certificate does not match the internal IP address.
Alternatively, I'm considering issuing a new certificate with an IP address for Veeam, but that may cause the backup to fail. Or set up monitoring via the https://github.com/romainsi/zabbix-VB-R-SQL template.
1) I created a user in Veeam and entered the credentials and Veeam server address as required in the guide.
I get an error when I try to test the template
{"error":"Error: cannot get URL: Couldn't connect to server."}
Code:
HTML Code:
curl -k -H 'x-api-version: 1.0-rev2' 'Content-Type: application/x-www-form-urlencoded' --data 'grant_type=password&username=veeamUserLogin&password=veeamUsrPass' 'https://ip_veeam:9419/api/oauth2/token' curl -k -H 'x-api-version: 1.0-rev2' 'Authorization: Bearer TOKEN_FROM_PREVIOUS_REQUEST' https://ip_veeam:9419/api/v1/jobs/states
----insecure
-k
but without this key i get error:
curl: (3) URL using bad/illegal format or missing URL
curl: (60) SSL: certificate subject name 'Veeam Backup Server Certificate' does not match target host name '192.168.x.x'
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
curl: (60) SSL: certificate subject name 'Veeam Backup Server Certificate' does not match target host name '192.168.x.x'
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
3) I tried to add the certificate to trusted, but the self-signed certificate does not match the internal IP address.
Alternatively, I'm considering issuing a new certificate with an IP address for Veeam, but that may cause the backup to fail. Or set up monitoring via the https://github.com/romainsi/zabbix-VB-R-SQL template.
Comment