Page 2 of 2
Re: Changing from address in email notification
Posted: Mon Nov 21, 2016 5:21 am
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
Re: Changing from address in email notification
Posted: Mon Nov 21, 2016 4:02 pm
by avandemore
-----------------------------------------------------------------------------------------------------
Please attach /var/log/maillog after one of these failed send attempts.
Re: Changing from address in email notification
Posted: Thu Nov 24, 2016 12:29 am
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
Re: Changing from address in email notification
Posted: Mon Nov 28, 2016 1:37 pm
by avandemore
XI notifications need an XI user. notify-*-by-email will use a Nagios Core contact. Closing per request.