I have rule like this:
if memory usage > 85% for 10 cycles then alert
I want to notify not only via email but also via slack. So I can add second line like this:
if memory usage > 85% for 10 cycles then exec /path/to/slack.rb
It's annoying when you have multiple rules and you have to duplicate each line. Is it possible to use alert and exec together? Something like this:
if memory usage > 85% for 10 cycles then alert and exec /path/to/slack.rb