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