I'm not sure i've choose the right handler for admins and contacts...
Can you tell me the right handler for contacts and admins (notify-host-by-email, notify-service-by-email, xi_host_notification_handler, xi_service_notification_handler) ?
I'm a bit lost :/
Thanks
Mail alerts received by users, not by contacts
-
Valouch312
- Posts: 14
- Joined: Tue Mar 18, 2014 3:30 am
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Mail alerts received by users, not by contacts
Sure! As the documentation states, you need to use (notify-host-by-email, notify-service-by-email) for your contacts, if you are using USER based notifications you need to use the (XI) handlers, you said contacts and admins, this does not mean much to us out of context, are you saying that these contacts were created with an associated user, and are defined as admins in the web interface? If so they should be using the XI handlers, not (notify-host-by-email, notify-service-by-email).
-
Valouch312
- Posts: 14
- Joined: Tue Mar 18, 2014 3:30 am
Re: Mail alerts received by users, not by contacts
When i create a new user with associated contact, he receive the Nagios mail alert ! But when i create a simple contact with notify-host-by-email and notify-service-by-email he don't...
I' tried to duplicate the contact created with the Nagios user and modify the infos of the contact but it doesn't work either...
I' tried to duplicate the contact created with the Nagios user and modify the infos of the contact but it doesn't work either...
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Mail alerts received by users, not by contacts
It should work fine, you need to follow the guidelines here:
http://exchange.nagios.org/directory/Do ... ns/details
http://exchange.nagios.org/directory/Do ... ns/details
-
Valouch312
- Posts: 14
- Joined: Tue Mar 18, 2014 3:30 am
Re: Mail alerts received by users, not by contacts
I've import configuration files of existing Nagios Core. Everything work properly except contacts...
They don't receive Nagios mail alerts while they receive them in Nagios Core...
What should I do ?
They don't receive Nagios mail alerts while they receive them in Nagios Core...
What should I do ?
Re: Mail alerts received by users, not by contacts
Can you show us the contact definition of one of the contacts (that doesn't receive alerts)?
Does nagios *think* that notifications have been sent? Can you search for this contact under the "Notifications" page (Reports->Notifications)?
Does nagios *think* that notifications have been sent? Can you search for this contact under the "Notifications" page (Reports->Notifications)?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Valouch312
- Posts: 14
- Joined: Tue Mar 18, 2014 3:30 am
Re: Mail alerts received by users, not by contacts
define contact {
contact_name systeme
alias Info Systeme
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period workhours
service_notification_period workhours
host_notification_options d,u,r,f,s,
service_notification_options w,u,c,r,f,s,
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
email [email protected]
use generic-contact
}
contact_name systeme
alias Info Systeme
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period workhours
service_notification_period workhours
host_notification_options d,u,r,f,s,
service_notification_options w,u,c,r,f,s,
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
email [email protected]
use generic-contact
}
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Mail alerts received by users, not by contacts
When those notifications are send run the following and share the output with us:
Be sure to use CODE WRAPS, there is a button in the section above your text box when you start to reply, simply highlight the log dump and click "Code."
Code: Select all
tail -50 /var/log/maillog