Changing from address in email notification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Changing from address in email notification

Post by yunushaikh »

ssax wrote:Please run this command and see if it resolves the issue:

Code: Select all

alternatives --set mta /usr/sbin/sendmail.postfix
I ran the above command but still it didnt trigger email with the xi_service_notification_command. There were no logs generated in /var/log/maillog


I also tried to change the command to notify_service_by_email after that, It triggered automatically.

It means that with xi_service_notification_handler command the mail is not getting triggered at all. Please help me if you find any clue in this..

Thanks a lot for providing your valuable inputs
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Changing from address in email notification

Post by avandemore »

-----------------------------------------------------------------------------------------------------

Please attach /var/log/maillog after one of these failed send attempts.
Previous Nagios employee
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Changing from address in email notification

Post by yunushaikh »

Hello Everyone,

Thanks for all your help.
I know I made a silly mistake and took a lot of time from you for this issue. Sorry for the trouble
I found the reason why the email was not getting sent.
My contact was not a nagios user because of which xi_service_notification_handler was not trigerring an email. Later I configured a user which was also a contact and mail got triggered.

One more thing that can help if any one else face this issue. User which we create should be a monitoring contact otherwise mail will not trigger.

Please correct me if I am wrong.

You can close this case
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Changing from address in email notification

Post by avandemore »

XI notifications need an XI user. notify-*-by-email will use a Nagios Core contact. Closing per request.
Previous Nagios employee
Locked