[SOLVED] dump status in vzdump hook script.

Cédric Dannemark

New Member
Oct 5, 2017
2
0
1
51
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.
 
Ok, I feel a little dumb, now :). I totally overlooked the backup-abort and job-abort parameter. Thank you for your patience and your response.

Best regards.