Hello,
I'm currently writing a lot of scripts to send passive checks for backups to my monitoring system (icinga2). I'd like to send a message to the API at the end of the daily backup of my proxmoc cluster.
Of cource, i'll use the --script of vzdump. I read and tried the vzdump-hook-script.pl provided with proxmox, but there's one information that I do not find : how can i know, when the script is called with the "backup-end" or "job-end" parameter, if the job succeeded or failed ? Can I find the staus in an env variable that did not spotted ? Do I have to parse the log output ?
Thanks for your answer (if my question was understandable, of course...).
Best regards.
I'm currently writing a lot of scripts to send passive checks for backups to my monitoring system (icinga2). I'd like to send a message to the API at the end of the daily backup of my proxmoc cluster.
Of cource, i'll use the --script of vzdump. I read and tried the vzdump-hook-script.pl provided with proxmox, but there's one information that I do not find : how can i know, when the script is called with the "backup-end" or "job-end" parameter, if the job succeeded or failed ? Can I find the staus in an env variable that did not spotted ? Do I have to parse the log output ?
Thanks for your answer (if my question was understandable, of course...).
Best regards.