Host down - Different email notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Host down - Different email notifications

Post 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
mrock42
Posts: 14
Joined: Tue Mar 23, 2021 11:21 am

Re: Host down - Different email notifications

Post 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!!
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Host down - Different email notifications

Post by gsmith »

Awesome!

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

Thanks
mrock42
Posts: 14
Joined: Tue Mar 23, 2021 11:21 am

Re: Host down - Different email notifications

Post by mrock42 »

All work perfectly !!

Thank you for your great support, I appreciate it!

Best regards,
Locked