Veritas-bu

[Veritas-bu] Re: Failed job notifications

2005-11-10 22:17:39
Subject: [Veritas-bu] Re: Failed job notifications
From: ed AT gurski DOT com (ed)
Date: Thu, 10 Nov 2005 22:17:39 -0500
On Thu, 2005-11-10 at 20:51 -0600, veritas-bu-
request AT mailman.eng.auburn DOT edu wrote:

> Date: Thu, 10 Nov 2005 16:46:22 -0600
> From: "Major, Rusty" <RMajor AT vericenter DOT com>
> To: <veritas-bu AT mailman.eng.auburn DOT edu>
> Subject: [Veritas-bu] Failed job notifications
> 
> This is a multi-part message in MIME format.
> 
> ------_=_NextPart_001_01C5E648.943B8757
> Content-Type: text/plain;
>       charset="us-ascii"
> Content-Transfer-Encoding: quoted-printable
> 
> I'm trying to get notifications on job failures ONLY and have added the
> following to backup_exit_notify:
> =20
> if [ $5 > 1 ]
> then
>         cat $OUTF | mail -s "Backup of $1, Policy $2, Schedule $3 exited
> EC $5" rmajor AT vericenter DOT com   =20
> fi
> =20
> What I'm getting is an email for EVERY job in the following format:
> =20
> Thu Nov 10 10:28:42 EST 2005 -----------------------------
> Thu Nov 10 10:28:42 EST 2005 CLIENT: clientname
> Thu Nov 10 10:28:42 EST 2005 POLICY: policyname
> Thu Nov 10 10:28:43 EST 2005 SCHEDULE: Incremental
> Thu Nov 10 10:28:43 EST 2005 SCHEDULE TYPE: INCR
> Thu Nov 10 10:28:43 EST 2005 STATUS: 0
> Thu Nov 10 10:28:43 EST 2005 STREAM: 0
> Thu Nov 10 10:28:43 EST 2005 -----------------------------
> =20
> I have received a few with the subject line, but the large majority do
> not have it. I will admit I am not a perl guru (or unix for that matter)
> and copied this from an older entry in the archives. I would appreciate
> any help!
> =20
> Rusty Major, MCSE, BCFP
> Data Assurance Engineer
> (281) 584-4693
> VeriCenter, Inc.

Rusty:

What I've done is added on the last line a call to a separate script
with all the parameters passed to it (6). I call it
ebs_backup_exit_notify and you can download it from my web-site at
http://gurski.comn/netbackup.php and then choose the Unix Scripts on the
left-hand side of the page...

Let me know how you make out...

Ed

-- 
ed <ed AT gurski DOT com>


<Prev in Thread] Current Thread [Next in Thread>
  • [Veritas-bu] Re: Failed job notifications, ed <=