[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [FW-1] Editing Mail-Alert Messages
you could try writing a perl script and using that as a userdefined alert then that way you can parse the alert output and mail it in whatever format you want i.e alertf 60 15 mailalertscript ( in the alerts page of the properties of the firewall ) then on the management station ... stick a script in the $FWDIR/bin directory #!/usr/bin/perl -w my $a = <STDIN>; my $from = "whatever\@yourcompany.com"; my $date = `date '+%Y%m%d_%H%M%S'` ; open(MAIL, "|/usr/lib/sendmail -t -f $from") || die "Can't open pipe to send mail\n"; print MAIL <<__END__; Subject: FireWall-1 Alert $date From: $from To: whoever\@yourcompany.com $a __END__ close(MAIL); or something like that ........... josh >>> [email protected] 07/25/02 03:25pm >>> Hi all, how is it possible to modify the text and information given in a Mail-Alert ? For example I want to send the username and some further details in a http-Mail-Alert. Are there any possibilities to do that ? Thanks. Ralf -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net ================================================= To set vacation, Out Of Office, or away messages, send an email to [email protected] in the BODY of the email add: set fw-1-mailinglist nomail ================================================= To unsubscribe from this mailing list, please see the instructions at http://www.checkpoint.com/services/mailing.html ================================================= If you have any questions on how to change your subscription options, email [email protected] ================================================= ================================================= To set vacation, Out Of Office, or away messages, send an email to [email protected] in the BODY of the email add: set fw-1-mailinglist nomail ================================================= To unsubscribe from this mailing list, please see the instructions at http://www.checkpoint.com/services/mailing.html ================================================= If you have any questions on how to change your subscription options, email [email protected] =================================================
|