Job Failure Notifications

PowerShell script exchange

Job Failure Notifications

Veeam Logoby snowmizer » Thu Oct 20, 2011 2:54 pm

I am setting up Veeam backups and am working on how our oncall person will receive notifications if a backup fails. Currently we receive a text message that states which backup failed and what time. After reading several posts on this forum I have come up with some questions.

1. Is it possible to only receive a notification after the third retry fails?
2. The emails sent by Veeam are HTML. These won't come through our phones as MMS text messages. We don't currently receive work emails on our phones because we use our personal phones. We don't want to set this up so that it will email our personal email accounts.

How can I generate a failure message that is not HTML? Do I have to write a powershell script to accomplish this?

All I really need is which job failed, which VM and a time.

Thanks.
snowmizer
Enthusiast
 
Posts: 26
Liked: never
Joined: Mon May 02, 2011 8:35 pm

Re: Job Failure Notifications

Veeam Logoby foggy » Thu Oct 20, 2011 3:43 pm

1. The first option is already on our feature list (see this topic for more discussing).
2. Yes, I believe you can use scripting to create such a report. Please search this forum for some examples. This one might be helpful.
foggy
Veeam Software
 
Posts: 14716
Liked: 1075 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Job Failure Notifications

Veeam Logoby snowmizer » Thu Oct 20, 2011 5:20 pm

I had looked at both of the posts you recommended. It sounds to me like if a job fails 3 times then people were getting an email each time it fails. Is that correct? I would agree that I would only want a failure email once the job has retried the backup 3 times. I don't want 4 notifications. One requirement is that we are notified immediately after a failure so we can look at the job and if necessary restart the backup. Can you kick off a powershell script as a post-backup action that would look at the status of the job and then send the message?
snowmizer
Enthusiast
 
Posts: 26
Liked: never
Joined: Mon May 02, 2011 8:35 pm

Re: Job Failure Notifications

Veeam Logoby foggy » Thu Oct 20, 2011 8:09 pm

I don't think there is a ready-made script for this case. You can play with given examples yourself or maybe one of our powershell gurus comes up with something..
foggy
Veeam Software
 
Posts: 14716
Liked: 1075 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Job Failure Notifications

Veeam Logoby Sethbartlett » Wed Oct 26, 2011 12:25 pm

Snowmizer, what would you want the e-mail to say? It should be pretty easy to write a post-backup script that checks your jobs and sends out an e-mail through powershell. Did you want something that runs once a day or maybe runs after your last job finishes and then sends a text with all jobs/vms failing or one per job or how would you want that set up?
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett


Return to PowerShell



Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 6 guests