Hello,
I'm trying to monitor verify tasks on Proxmox Backup Server using their json API with Zabbix 5.0.35. I think I have to use the "http agent" and discovery rule.
The url https://server-hostname:8007/api2/json/admin/verify returns this json data:
I want to discover all existing verify job and for each of them, extract the last run date (last-run-endtime field) and the last run state (last-run-state field) as items. I will use theses values to configure triggers if last run date is too old or if the last state is not ok.
This is what I done so far. This doesn't work and I'm lost. Somebody can help me please?
I created an item with the HTTP agent type. It seem to work, I can get the json reply when I hit the test button.
Then I created a discovery rule. I think this is where I'm starting to be lost.
Then an item prototype.
Thanks.
I'm trying to monitor verify tasks on Proxmox Backup Server using their json API with Zabbix 5.0.35. I think I have to use the "http agent" and discovery rule.
The url https://server-hostname:8007/api2/json/admin/verify returns this json data:
Code:
{"data":[{"id":"v-feca4620-6ba7","ignore-verified":true,"last-run-endtime":1687868864,"last-run-state":"OK","last-run-upid":"UPID:backup-pbs-qc:00101FA3:13132DD1:00001C14:649ABA32:verificationjob:sur\\x2dsite\\x3av\\x2dfeca4620\\x2d6ba7:root@pam:","next-run":1687948200,"ns":"","outdated-after":30,"schedule":"06:30","store":"sur-site"},{"id":"v-91292f7d-c68a","ignore-verified":true,"last-run-endtime":1687865400,"last-run-state":"OK","last-run-upid":"UPID:backup-pbs-qc:00101FA3:13132DD1:00001C1C:649AC838:verificationjob:hors\\x2dsite\\x3av\\x2d91292f7d\\x2dc68a:root@pam:","next-run":1687951800,"ns":"","outdated-after":30,"schedule":"7:30","store":"hors-site"}],"digest":"cffeedd294865525dcd18d42d3c0f06eccd4bcf2b7913db1221cbcdca024ffa1"}
This is what I done so far. This doesn't work and I'm lost. Somebody can help me please?
I created an item with the HTTP agent type. It seem to work, I can get the json reply when I hit the test button.
Then I created a discovery rule. I think this is where I'm starting to be lost.
Then an item prototype.
Thanks.
Comment