Because the SOS contact doesn't have an associated user, you will either need to do this for the contacts without users:
https://assets.nagios.com/downloads/nag ... Mailer.pdf
OR you can do this:
You will need to edit the SOS contact:
- Click Alert Settings tab
- Click Manage Host Notification Commands
- Remove xi_host_event_handler
- Click Manage Service Notification Commands
- Remove xi_service_event_handler
- Go to the Common Settings tab
- Click Manage Contact Templates and select generic-contact
- Save and apply configuration
- Then setup postfix to relay:
---- Change yourmailserver in the command below to what you have in Admin > Email Settings
Code: Select all
yum install postfix -y
alternatives --set mta /usr/sbin/sendmail.postfix
echo 'relayhost = [yourmailserver]:25' >> /etc/postfix/main.cf
systemctl enable postfix
systemctl restart postfix
systemctl restart nagios