7

How can I do multiple things when condition is matched? For example if I want to restart a process and also send alert email. I know I can do it with two separate lines, but can I combine them?

if cpu > 95% for 2 cycles then restart
if cpu > 95% for 2 cycles then alert
Firze
  • 355
  • 6
  • 16

1 Answers1

7

Monit will implicitly alert upon process restart. You don't need to specify "then alert".

ewwhite
  • 197,159
  • 92
  • 443
  • 809