Mail notifications work, just not with the default scripts

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 :slight_smile:

Solved.

I removed the mail-host-notification and mail-service-notification command and manually added them again but wasn’t aware of the “Arguments” tab. For people with the same problem, here are the required arguments for the mail-host-notification command:
mail-host-notification arguments