Page 1 of 1

Question about Notification commands

Posted: Tue Sep 19, 2017 5:49 pm
by Sampath.Basireddy
Hello There,

I am trying to update the notification command to notify-host/service-by-email from xi_host/service_notification_handler.

When using notify-host/service-by-email notification method, email alerts are being sent from email ID nagios@nagiosxiserver

When using xi_host/service_notification_handler notification method, email alerts are sent from ID configured in Mail Settings.

What needs to be updated in notify-host/service-by-email command, so it picks the sender address from Mail Settings.

Thank You!!

Re: Question about Notification commands

Posted: Wed Sep 20, 2017 11:33 am
by tmcdonald
notify-host/service-by-email will not have visibility into that setting, because that command uses the raw /bin/mail command to send email, which in turn uses postfix. You will need to configure that on your server, or have your mail admin do so.