Page 1 of 3

Hosts/Services problem notifition sender email is different

Posted: Tue Jan 20, 2015 8:13 pm
by phyo
In our system, we enable hosts and services notification via email.
And we use gmail to send notification email from nagios to the users.
Nagiosadmin user receive email from [email protected]
But some of the user receive email from [email protected]
nagios01.iptv is the hostname of our nagios server.

Please see the below image for details.

Image

Image

How can we fix this issue? I want to send notification email from [email protected] only.

Re: Hosts/Services problem notifition sender email is differ

Posted: Tue Jan 20, 2015 9:28 pm
by Box293
Go to Admin > System Config > Manage System Config
What is the Administrator Email Address?

Go to Admin > System Config > Manage Email Settings
What is the Send Mail from address?

Re: Hosts/Services problem notifition sender email is differ

Posted: Tue Jan 20, 2015 10:05 pm
by phyo
Box293 wrote:Go to Admin > System Config > Manage System Config
What is the Administrator Email Address?
There, the email account is root@localhost
Box293 wrote:Go to Admin > System Config > Manage Email Settings
What is the Send Mail from address?
There, the email account is [email protected]

Now I have changed from root@localhost to [email protected]
I think this will fix my issue. Right?

Re: Hosts/Services problem notifition sender email is differ

Posted: Tue Jan 20, 2015 10:14 pm
by Box293
Do a test to find out.

Go to a Service to view the Status Details
Click the Advanced tab
Click Send custom notification
Type a Comment and click Commit.

How does it come through now?

Re: Hosts/Services problem notifition sender email is differ

Posted: Tue Jan 20, 2015 10:16 pm
by phyo
This custom notification will send out to every one in the contacts?

Re: Hosts/Services problem notifition sender email is differ

Posted: Tue Jan 20, 2015 10:40 pm
by Box293
Yes it will.

Re: Hosts/Services problem notifition sender email is differ

Posted: Tue Jan 20, 2015 11:55 pm
by phyo
The notification email still using [email protected] for some user.

Re: Hosts/Services problem notifition sender email is differ

Posted: Wed Jan 21, 2015 12:14 am
by Box293
Can you have a look at the following:

CCM
Alerting > Contacts
Click on a contact
Alert Settings tab
Click the "Manage Host Notification Commands" button
Are there any commands assigned here?
Click Close
Click the "Manage Service Notification Commands" button
Are there any commands assigned here?
Click Close
Common Settings tab
Click the "Manage Contact Templates" button
Are there any Templates assigned?
If there are make a note.
Click Close
Click Cancel

If there was a template assigned
Templates > Contact Templates
Click the template
Repeat the steps above to identify what commands are being used.

Re: Hosts/Services problem notifition sender email is differ

Posted: Wed Jan 21, 2015 2:42 am
by phyo
Can you have a look at the following:
Box293 wrote: CCM
Alerting > Contacts
Click on a contact
Alert Settings tab
Click the "Manage Host Notification Commands" button
Are there any commands assigned here?
Click Close
some are notify-host-by-email(just contact) and some are xi_host_notification_handler(user)
Click the "Manage Service Notification Commands" button
Are there any commands assigned here?
Click Close
some are notify-service-by-email and(just contact) some are xi_service_notification_handler(user)
Common Settings tab
Click the "Manage Contact Templates" button
Are there any Templates assigned?
If there are make a note.
Click Close
Click Cancel
Some are xi_contact_generic(user) and some are blank.
If there was a template assigned
Templates > Contact Templates
Click the template
Repeat the steps above to identify what commands are being used.
xi_contact_generic --> alert setting --> manage host notification commands is xi_host_notification_handler and manage service notification commands is xi_service_notification_handler
Common Setting tab--> manage contact group is xi_contactgroup_all

Re: Hosts/Services problem notifition sender email is differ

Posted: Wed Jan 21, 2015 2:47 pm
by tgriep
Go to Admin > System Config > Manage Email Settings and post back how the Mail Method is setup.