LoginSignup
1
1

More than 5 years have passed since last update.

プロセス監視ツール monit の再アラート

Posted at

https://stackoverflow.com/questions/19040510/how-to-re-alert-monit
いままで、monitで再アラートをするとき↓のようにかいていました。

check program check_something with path "/root/scripts/check_something.sh"
  if status > 10 then alert
  if status > 10 with timeout 86400 seconds then alert

リファレンス読んだらreminderと記述できることが分かったので、すっきりしているのでこちらを使うことにしました

number_cyle_per_day = 24*60*60/n

check program check_something with path "/root/scripts/check_something.sh"
  if status > 10 then alert reminder on number_cyle_per_day cycles
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1