Hi all,
I have installed docker checkmk(open port 5000) and installed postfix server to send email (tested and sent successfully). Please guide me on how to send email from checkmk.
Hello
To configure Checkmk to send emails via Postfix, first ensure Postfix is running correctly. In Checkmk, navigate to “WATO - Configuration” > “Notifications” to create or modify notification rules. In “Global Settings”, set the SMTP server to localhost and the port to 25 (or the port your Postfix uses). Test the email notification by triggering an event or using the test feature. If emails aren’t sent, check Checkmk logs and Postfix logs (usually in /var/log/mail.log or /var/log/maillog).
Here’s an example notification command: /usr/bin/printf “%b” “Subject: [Monitoring] $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$\nDate/Time: $SHORTDATETIME$\n\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\n\nInfo: $HOSTOUTPUT$\n\n\n” | /usr/sbin/sendmail -t $CONTACTEMAIL$.
You can check Checkmk documentation on email notifications .
Hope it helps !
Thank you
gregbowers