monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Check file and match behavior


From: Lutz Mader
Subject: Re: Check file and match behavior
Date: Tue, 11 Jul 2017 23:51:25 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]