I would like to use swatch to tail a log file for "PageTurnEvent", and if this is not seen in the past 15 minutes then a restart script should be run.
Does anyone know if this is possible with the swatch program?
On Mon, Jul 21, 2008, Sean Carolan wrote:
I would like to use swatch to tail a log file for "PageTurnEvent", and if this is not seen in the past 15 minutes then a restart script should be run.
Does anyone know if this is possible with the swatch program?
I don't see how as swatch is looking for things that happen, not those that don't.
We have all the systems we monitor check in using an xml-rpc call to a central server every fifteen minutes, and that server has a cron job that checks every fifteen minutes for systems that have not checked in within the last 20 minutes.
Bill
Does anyone know if this is possible with the swatch program?
I don't see how as swatch is looking for things that happen, not those that don't.
I figured as much. Before I go and write my own, are there any general purpose utilities that can simply monitor a log file for inactivity? In other words once logs stop being written I would like my monitoring script to let me know about it or perform some action.
I figured as much. Before I go and write my own, are there any general purpose utilities that can simply monitor a log file for inactivity? In other words once logs stop being written I would like my monitoring script to let me know about it or perform some action.
What about monit? http://www.tildeslash.com/monit/