I have this in a monit script (lines 11-13):
check program foo with
path "/usr/local/bin/foo.sh" with timeout 300 seconds
if status != 0 then alert dan@example.com
monit reload says:
/etc/monit/conf.d/example:13: Error: syntax error 'dan@example.com'
None of the examples show an email with the alert, but I need one. Why can I not give one here?
I'm using Monit 5.5.