This is a logfile monitor app. It triggers on regex.
Various tasks can be run when swatch triggers on something.
It holds a default configfile with some examples (it should be ready to run as is).
The init.d script is created such so you can monitor other files then /var/log/messages (e.g. if you use sysklogd).
Multiple swatch processes are done as follows:
ln -s /etc/init.d/swatch /etc/init.d/swatch.daemon.log
rc-update add swatch.daemon.log
/etc/init.d/swatch.daemon.log start
(The above example will try to monitor /var/log/daemon.log)
Please review and apply.
(Note: swatch depends on some perl packages earlier emailed to this mailinglist)
Some good docs/info is found at:
http://sourceforge.net/projects/swatch/http://www.linuxcertif.com/man/1/swatch/
<<mhavela>>