Page 2 of 2

Re: Host down - Different email notifications

Posted: Fri Apr 30, 2021 7:09 pm
by ssax
Received.

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

Re: Host down - Different email notifications

Posted: Tue May 04, 2021 7:34 am
by mrock42
SSAX,

It worked at last :) I choose to used the second option (edit SOS contact)

Now, I'll test tonight and see if my notification schedule was configured properly.

I'll tell here tomorrow,

Thank you for your help!!

Re: Host down - Different email notifications

Posted: Tue May 04, 2021 3:08 pm
by gsmith
Awesome!

Yes - please let us know how things turn out tonight.

Thanks

Re: Host down - Different email notifications

Posted: Thu May 06, 2021 11:32 am
by mrock42
All work perfectly !!

Thank you for your great support, I appreciate it!

Best regards,