Hello Martin,
this is a nice idea, but doesn't work, I think, because it is necessary
to correlate the message and the timestamp check.

> check file myapp_log with path /var/log/myapp.log
>       if timestamp is older than 1 hour then exec "/usr/bin/monit restart 
> myapp"

Something like the following should work, but is not available.

if match "The message.*" and
   timestamp is older than 1 hour then alert

I try to start a script with an additional check of the last lines in
the log.

Nice suggestion,
thanks for your help,
Lutz

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to