I finally setup icinga2 / icingaweb2 and icinga director.
I can monitor hosts and services by adding them over icinga director everything just works fine with that.
My problem right now is i try to get email notifications if a host is down or gets up (or any service that has problems).
What I did till now :
- Install postfix and mailutils
- configure postfix
-> sending mails with = mail -s "TEST" works fine ! I receive those mails i send via the terminal !
after this 3 steps I changed the scripts under /etc/icinga2/scripts
The only thing I did here was changing the last line :
mail -s ....
mail -S smtp=MY.SERVER.ADRESS:PORT -s
after i have done all this
I went to Director
I defined an user with an email address...
I went to notifications under icinga Director :
- created a template for the timeperiod
- created notificationtemplate
- created notification
SCREENSHOTS NOTIFICATIONS :
What am I doing wrong here ?
Or did i forget somthing ?