Hi David,
you are more than welcome.
It is the zabbix-alert.sh script that is delivered with the ossec 2.6
package provided by the atomicorp yum repository.
I haven't found your post but in the script is your name and the
version 1.0 from April 6th 2010.
My script can be found at
http://pastebin.com/E6PRgR34 . I hope it
helps.
As long as the whois stuff is not included within the default
notification (maybe configurable via the ossec.conf file) this script
helps us to secure some evidence for legal purposes.
It extracts ID, time, host, rule ID and rule description, level and IP
the way your script does it. It queries whois with the IP and tries to
find the corresponding lines within the log file belonging to the
alert.
It extracts the <email_from> and all <email_to> fields from the config
file and uses sendmail to send a mail to the given recipients. If
DEBUG is set to true the mail is only send to the first configured
<email_to> address and some additional logs are created in the /tmp
directory.
Kind regards
Andre