Question about Notification commands

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Question about Notification commands

Post 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!!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Question about Notification commands

Post 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.
Former Nagios employee
Locked