Swatch

Hi all, I'm a newbie to swatch and would like to know if it is possible to monitor logfiles on a remote host using swatch, if so how can this be done. (because my plan is to integrate it into Nagios to send notifications based on certain regex patterns). Thanks for your help.

Try this sample chapter of O'Reilly-book

Try the sample chapter of "Building Secure Servers with Linux" found here: http://www.oreilly.com/catalog/bssrvrlnx/chapter/index.html Thi sexplains stuff in conjunction with syslog(-ng).

All swatch really does is

All swatch really does is monitor logs on the local machine, and then activate a script or command in a config file. You could have this script ssh to your Nagios host and activate something there but that may not be the best way. If you want to monitor log files on a remote host I'd really recommend you send those logfiles to your Nagios monitor, and then you can run swatch or whatever you want from there.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.