I have gone over this: https://assets.nagios.com/downloads/nag ... ios-XI.pdf
I have been checking the contacts, contact groups, and the contact templates. I can send a test email via SMTP but emails are not sending for down alerts to normal users or the group contacts I have created. Where can I go from here to troubleshoot? This is a newer installation that we were getting way too many messages awhile ago and I think while working on setting it up something happened and now we aren't getting any.
NagiosXI Alerts Will Not Email
Re: NagiosXI Alerts Will Not Email
Hi,
That is the right document to be looking at. Could you please send me a System Profile so
I can take a look?
To send us your system profile.
1. Login to the Nagios XI GUI using a web browser.
2. Click the "Admin" > "System Profile" Menu
3. Click the "Download Profile" button
4. Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.
Thanks
That is the right document to be looking at. Could you please send me a System Profile so
I can take a look?
To send us your system profile.
1. Login to the Nagios XI GUI using a web browser.
2. Click the "Admin" > "System Profile" Menu
3. Click the "Download Profile" button
4. Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.
Thanks
Re: NagiosXI Alerts Will Not Email
Hi,
I received the PM but there were no attachments.
Please re-send.
Thank you
I received the PM but there were no attachments.
Please re-send.
Thank you
Re: NagiosXI Alerts Will Not Email
Ok I think I didn't click the add button last time. I think you should have it now.
Re: NagiosXI Alerts Will Not Email
Hi,
Looks like you need to tweak your Contact template called UserTemplate.
Go to Configure, Core Config Manager
Left hand menus: Templates, Contact templates
Edit your UserTemplate
go to the Alert Settings tab
Halfway down the page, you will need to select Manage Host Notifications Command
change from: xi_host_event_handler
to: xi_host_notification_handler
Halfway down the page, you will need to select Manage Service Notifications Command
change from: xi_service_event_handler
to: xi_service_notification_handler
I didn't check all your templates but this should get you going.
Please let me know how you make out.
Thanks
Looks like you need to tweak your Contact template called UserTemplate.
Go to Configure, Core Config Manager
Left hand menus: Templates, Contact templates
Edit your UserTemplate
go to the Alert Settings tab
Halfway down the page, you will need to select Manage Host Notifications Command
change from: xi_host_event_handler
to: xi_host_notification_handler
Halfway down the page, you will need to select Manage Service Notifications Command
change from: xi_service_event_handler
to: xi_service_notification_handler
I didn't check all your templates but this should get you going.
Please let me know how you make out.
Thanks
Re: NagiosXI Alerts Will Not Email
I think primarily we want to use a group called IT Nagios to send notifications through and not the individual ones. IT Notify it part of a contact group called Admins and emerg. That was the Template called Email Template it has the admins and emerg groups assigned to it. I thought the documentation said to change it to notify-host-by-email and notify-service-by-email? That is how I had it but it wasn't working. I will try changing those to the ones you mentioned as well...does that make sense?
Re: NagiosXI Alerts Will Not Email
I think primarily we want to use a group called IT Nagios to send notifications through and not the individual ones. IT Notify it part of a contact group called Admins and emerg. That was the Template called Email Template it has the admins and emerg groups assigned to it. I thought the documentation said to change it to notify-host-by-email and notify-service-by-email? That is how I had it but it wasn't working. I will try changing those to the ones you mentioned as well...does that make sense?
Re: NagiosXI Alerts Will Not Email
Those changes did not make a difference. Still no notifications.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NagiosXI Alerts Will Not Email
Hi,
That should work, how are you testing the notifications? For both the UserTemplate and Email Template contact templates, you'll want to set the notifications handlers as follows.
Those are the correct handlers for SMTP, the other handlers are mainly used on Core systems. Are these users or contacts, there is a distinction in Nagios XI. The guide below explains the difference.
Nagios XI Understanding Users and Contacts
A good way to test this is to send a custom notification from a host or service that the contact is assigned to. Go to Home > Details and chose Host or Service status. Then search for the host or service, click on the link, select the Advanced Tab, and chose Send Custom Notification under the Commands menu.
That should work, how are you testing the notifications? For both the UserTemplate and Email Template contact templates, you'll want to set the notifications handlers as follows.
Code: Select all
service_notification_commands xi_service_notification_handler
host_notification_commands xi_host_notification_handle
Nagios XI Understanding Users and Contacts
A good way to test this is to send a custom notification from a host or service that the contact is assigned to. Go to Home > Details and chose Host or Service status. Then search for the host or service, click on the link, select the Advanced Tab, and chose Send Custom Notification under the Commands menu.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!