ufsdump email alert ?

From: Bousquet Francois (Francois.Bousquet@cgi.com)
Date: Mon Jul 11 2005 - 14:51:37 EDT


I have several server to backup on a centralized DLT 40/80 tape on a weekly
frequency.

I have create a script that is using sudo (for mt and ufsdump access) and
ssh private key authentication that execute a remove ufsdump from each
server to the centralized server with a tape.

Up to this point, it is working perfectly fine.

The problem is that the amount of data is getting bigger over time and I
have reach the maximum capacity of one tape so ufsdump is asking for a new
one. That is not a problem when running in foreground with when running the
backup scrip with cron it is not funny !

I would like to find a way to alert me with a mail so I can change the tape
and continue the backup.

Is anyone here have done something like that before ?

Basically, I need to find a way to trap ufsdump output and send an email
when I getting a particular strings.

I also need to find a way to get the focus on a cronned process that is
running in the same way bash is doing it with it's jobs (bg & fg commands).

Frangois Bousquet
Unix System Administrator
Email : Francois.Bousquet@CGI.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:05 EDT