monit-general
[Top][All Lists]
Advanced

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

How to watch file content tests for several events in the same cycle?


From: Marcus Mülbüsch
Subject: How to watch file content tests for several events in the same cycle?
Date: Thu, 26 Sep 2019 11:11:53 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

Hello all,

the following lines alert me if the logfiles contains 2 Criticals in 2 minutes and ignores single Crits:

check file log_to_watch with path /var/log/log_to_watch
  if match "CRITICAL" for 2 times within 2 cycles then alert

However, my Crits mostly happen in the same second. I can safely ignore a single one, but want monit to alert me if several happen at once (or in short succession). The above lines does not do that.

Unfortunately I can't figure out how to proceed. Is there a way?

Any suggestion would be highly appreciated.

Marcus



reply via email to

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