5

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
  • 335
  • 6
  • 16

1 Answers1

6

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

ewwhite
  • 194,921
  • 91
  • 434
  • 799