Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Email Alerting for failed jobs

Updated: 22 May 2010 | 2 comments
sumanreddy's picture
0 0 Votes
Login to vote

Hi All,

I have configured email alerting for Backup jobs.
I am getting emails for both failed jobs , partial jobs and successful jobs.

where as i want to receive emails/alerts for ONLY failed jobs.
If  there is any possibilty let me know the ateps.

Thanks in advance,

Regards,
Suman

discussion Filed Under:

Comments

nairdheeraj's picture
02
Oct
2009
0 Votes 0
Login to vote

All you need to do is to

All you need to do is to append the backup_exit_notify script with the below lines

if [ "$5" -gt 1 ]
then
        cat $OUTF | mailx -s "$2 - Exit Status = $5" abdcd@abcd.com

this is for unix environment.

Basically $5 is the exit status code. Hence by giving the above condition and error apart from "0" and "1" will be email to you.

You can use this syntax for other script files are well.