Agnello George wrote:
> HI
>
> I have a small query !! I need to write a script whenever there is an
> error generated in the spamd.log or any general log file to send me a
> mail only once, the bellow script is what i came u with but i doubt it
> would work.
>
> if [ $(grep -e "unable to start service" /var/log/spamd.log) = 1 ] ; then
> mail -s " pls check server IP 203.185.XXX>XXX" agnello.dsouza@gmail.com
> fi
>
> Is there any application that can scan the log file for a specific
> word or error as soon as the logs are generated. I have even heard of
> SMS being sent in some cases.


sec -- simple event correlator

google the full name


---------------

Chris Hoogendyk

-
O__ ---- Systems Administrator
c/ /'_ --- Biology & Geology Departments
(*) \(*) -- 140 Morrill Science Center
~~~~~~~~~~ - University of Massachusetts, Amherst



---------------

Erdös 4