Hello to all,

probaly i didn't explained mysefl very well so here i
go again :) (please correct me if i'm wrong):

The script is used to ask someone else on the
datacenter to change the tape if there were no errors;
I read in the amcheck man page the following (related
to the -m option):

"-m     Nothing  is printed, but mail is sent if any
errors are detected.  The mail goes to the mailto 
address specified  in  the  amanda.conf file or the
address value if -M is set."

Because nothing is printed i cannot use this option to
check if the backups went fine until i receive an
email (if there were any errors). That means i should
use procmail or something similar to run a tool if an
error mail is received (but then i want the oposite,
that is sent an email to change the tape if everything
was ok)..

Also (correct me if i'm wrong) amcheck only do checks
about the state of the clients, server and current
loaded tape but doesn't say anything about how well
the last amdump command ran (you use amstatus on the
last dump file to check that).

In our case, i need to notify the datacenter if all is
ok; Amdump sent us an email with the whole summary so
we know allways if the dump went fine or not.

Anyway thanks for the info :)

Probably posting the code will clarify the whole thing
but again i don't know if the list is the best place
to do it.

Moderator, any ideas ? ;)

JV


 --- Johannes Niess <[EMAIL PROTECTED]> escribi�: >
Jos� Vicente N��ez Zuleta <[EMAIL PROTECTED]>
> writes:
> 
> > Hello people,
> > 
> > This list has been a very good source of
> information
> > on setting up amanda and i will like to
> contribute; I
> > made a little Perl script that sents an email to
> the
> > responsible  of changing tapes on a tape unit for
> the
> > next backup.
> > 
> > The script is smart (well kind of :) ), only sents
> the
> > email if there were no errors during the amanda
> run
> > and also points correctly wich tape should be put
> onto
> > the tape unit. Also is very easy to configure and
> uses
> > only very standar perl modules (the ones you can
> > install using CPAN, for example :)).
> > 
> > There is a place called amanda contrib or
> something
> > similar where i can post the code?
> > Currently this is the script we are using in our
> > datacenter.
> > 
> > I apologogize is this not the correct list to make
> > this question.
> > 
> > Thanks in advance,
> 
> Jos�,
> 
> I've not seen your script, but a very basic version
> is:
> 
> 0       15      *       *       1-5    
> /usr/local/sbin/amcheck -m taeglich
> 
> i. e. a cron job. The mail is only sent to the
> people getting the dump
> reports if there is a problem, and the mail has the
> expected tape name
> in it.
> 
> Johannes Nie� 

=====
System Engineer, Jos� Vicente Nu�ez Zuleta ([EMAIL PROTECTED])
Newbreak System Administrator (http://www.newbreak.com)
Phone: 203-355-1511, 203-355-1510
Java 2 Certified Programmer
Java 2 Certified Developer

_________________________________________________________
Do You Yahoo!?
�Quieres armar tu pr�pia p�gina Web pero no sabes HTML?
Usa los asistentes de edici�n de Yahoo! Geocities
y tendr�s un sitio en s�lo unos minutos.
Vis�tanos en http://espanol.geocities.yahoo.com

Reply via email to