sending alerts email from a custom mail address

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

sending alerts email from a custom mail address

Post by vinish098 »

I have configured "Send Mail From" option in my Nagios server by navigate to "Admin -> Manage Email Settings" and changed the address like this:
Nagios Alerts <nagios.alerts@xxxxxxx.com>

After that, I have tested by sending a test mail from Nagios and got whatever I set.

But when nagios is sending alerts, I got from some different mail address. i.e nagios@hostname

Please help here.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: sending alerts email from a custom mail address

Post by scottwilkerson »

Can you go into the CCM and open the contact you are sending the mail to and let us know what the host/service commands are set to.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: sending alerts email from a custom mail address

Post by vinish098 »

Host command: notify host by email
Service command: notify service by email
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: sending alerts email from a custom mail address

Post by tacolover101 »

you need to use the xi_host_notification_handler and xi_service_notification_handler commands, as those are what are respected in XI.

using notify-host-by-email/notify-service-by-email will simply use the reference in your commands.cfg which is the Core way of "doing things".
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: sending alerts email from a custom mail address

Post by vinish098 »

After doing the said changes, I am not receiving any alert email but receiving test notification.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: sending alerts email from a custom mail address

Post by scottwilkerson »

vinish098 wrote:After doing the said changes, I am not receiving any alert email but receiving test notification.
If you log in as the user you are expecting to receive a notification as, click the username in the upper right and select "Notification Preferences" is Enable notifications checked?

Are the boxes below that all checked?

Under "Notification Methods" is Receive alerts via email checked?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: sending alerts email from a custom mail address

Post by vinish098 »

Yes, Required Checkbox are enabled.

PFA
1.PNG
2.PNG
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: sending alerts email from a custom mail address

Post by scottwilkerson »

Ok, if you click on the green check mark in the upper right is everything green?

If so, can you verify via Reports -> Notifications that a notification has been sent to this user since you made the change yesterday?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: sending alerts email from a custom mail address

Post by vinish098 »

Yes, everything is green
1.PNG
Yes, notification also sent to user "vinish"
2.PNG
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: sending alerts email from a custom mail address

Post by scottwilkerson »

is user vinish the user that isn't getting the email?

The screenshot you showed earlier of the notification preferences, were you logged in as the vinish user when showing them?
Can you also click the "Account Information"
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked