Veritas-bu

[Veritas-bu] Failed job notifications

2005-11-10 17:46:22
Subject: [Veritas-bu] Failed job notifications
From: RMajor AT vericenter DOT com (Major, Rusty)
Date: Thu, 10 Nov 2005 16:46:22 -0600
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.
=20

------_=_NextPart_001_01C5E648.943B8757
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D284581115-10112005><FONT face=3DArial size=3D2>I'm =
trying to get=20
notifications on job failures&nbsp;ONLY and have added the following to=20
backup_exit_notify:</FONT></SPAN></DIV>
<DIV><SPAN class=3D284581115-10112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D284581115-10112005><FONT face=3DArial size=3D2>if [ =
$5 &gt; 1=20
]<BR>then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cat $OUTF | mail =
-s=20
"Backup of $1, Policy $2, Schedule $3 exited EC $5" <A=20
href=3D"mailto:rmajor AT vericenter DOT com">rmajor AT vericenter DOT 
com</A>&nbsp;&nbs=
p;&nbsp;=20
<BR>fi</FONT></SPAN></DIV>
<DIV><SPAN class=3D284581115-10112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D284581115-10112005><FONT face=3DArial size=3D2>What =
I'm getting is=20
an email for EVERY job in the following format:</FONT></SPAN></DIV>
<DIV><SPAN class=3D284581115-10112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D284581115-10112005></SPAN><SPAN =
class=3D284581115-10112005><FONT=20
size=3D2>Thu Nov 10 10:28:42 EST 2005 =
-----------------------------<BR>Thu Nov 10=20
10:28:42 EST 2005 CLIENT: clientname<BR>Thu Nov 10 10:28:42 EST 2005 =
POLICY:=20
policyname<BR>Thu Nov 10 10:28:43 EST 2005 SCHEDULE: Incremental<BR>Thu =
Nov 10=20
10:28:43 EST 2005 SCHEDULE TYPE: INCR<BR>Thu Nov 10 10:28:43 EST 2005 =
STATUS:=20
0<BR>Thu Nov 10 10:28:43 EST 2005 STREAM: 0<BR>Thu Nov 10 10:28:43 EST =
2005=20
-----------------------------</FONT></DIV></SPAN>
<DIV><SPAN class=3D284581115-10112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D284581115-10112005><FONT face=3DArial size=3D2>I have =
received a=20
few with the subject line, but the large majority do not have it. I will =
admit I=20
am not a perl guru (or unix for that matter) and copied this from an =
older entry=20
in the archives. I would appreciate any help!</FONT></SPAN></DIV>
<DIV><SPAN class=3D284581115-10112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV align=3Dleft>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D194261715-04042005><FONT =
face=3DArial=20
size=3D2><STRONG>Rusty Major, MCSE, BCFP</STRONG></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D194261715-04042005><FONT =
face=3DArial=20
size=3D2><EM>Data Assurance Engineer</EM></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D194261715-04042005><FONT =
face=3DArial=20
size=3D2>(281) 584-4693</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN =
class=3D194261715-04042005><STRONG><FONT=20
size=3D2><FONT face=3DArial><FONT color=3D#008000>Veri</FONT><FONT=20
color=3D#808080>Center, =
Inc.</FONT></FONT></FONT></STRONG></SPAN></DIV></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C5E648.943B8757--

<Prev in Thread] Current Thread [Next in Thread>