Hello, Im struggling to set up email notifications for icinga2.
I’ve set up director and can confirm it runs the mail-host-notification.sh when it’s supposed to.
To figure this out I’ve changed the script to
mail -s "Icinga Script Test" name@company.com <<-EOF
test message >
EOF
and I do receive those emails. For some reason i receive it three times but thats better than none.
I am guessing it has something to do with the default script requiring longdatetime as when I run it from command line i get Required parameter 'LONGDATETIME' is missing.
Thank you for your time