Alert Notifications from Nagios XI
-
btsmnagios
- Posts: 49
- Joined: Tue Mar 07, 2017 9:19 am
Alert Notifications from Nagios XI
Can you advise me how i would go about getting alerts from Nagios, i can't get alerts from Nagios no matter what i do, i have searched this forum and changed what people have suggested before but i am still not getting alert mails, i am getting all other types of mails like account resets and reports
-
kyang
Re: Alert Notifications from Nagios XI
Hi @btsmnagios,
Could you tell me what you have tried changing in order to get alert notifications? Are you able to send test notifications from the UI?
Not sure if you have, but take a look at this doc which shows you how to configure alert notifications.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Let me know of the changes you have made and a few examples of the other mails you are receiving (account resets and reports).
Could you tell me what you have tried changing in order to get alert notifications? Are you able to send test notifications from the UI?
Not sure if you have, but take a look at this doc which shows you how to configure alert notifications.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Let me know of the changes you have made and a few examples of the other mails you are receiving (account resets and reports).
-
btsmnagios
- Posts: 49
- Joined: Tue Mar 07, 2017 9:19 am
Re: Alert Notifications from Nagios XI
I have now been able to get users recieving e-mail alerts but i am struggling to get contacts to recieve them, i have created a contact group and then added that group to the service that i what a mail from, i then create a contact and add it to that group, i have set up the contact with host and service notifications ON, Configured both TImeperiods to xi_timeperiod_24x7, selected the notification options and added the host notification command as notify-host-by-email and for the service notification command, i have used notify-service-by-email, but i am not getting any alerts to the contact, can you help
Re: Alert Notifications from Nagios XI
There are many factors that can play a role here... Did your service change state (I mean hard state)? Have you looked at the State History report?
Was the service flapping? Did someone acknowledge the issue? Was the service (or its host) in scheduled downtime?
Does Nagios "think" that the notification was sent? Can you go to Home > Incident Management > Notifications, select the appropriate time period, host and service, and click on Run? Do you see a notification sent for this particular service?
Did the email bounce? Have you checked the mail logs?
Can you send a custom notification and receive it?
Home > Service Detail > <your service> Advanced > Send custom notification
Is your company's mail server an issue? Have you tried using a "free" mail accounts, i.e. gmail or yahoo, to see if the emails will go through?
Is there an issue with your configs? Can you show us the configs for the contact, contact group, the service, notification commands, and any relevant templates?
Was the service flapping? Did someone acknowledge the issue? Was the service (or its host) in scheduled downtime?
Does Nagios "think" that the notification was sent? Can you go to Home > Incident Management > Notifications, select the appropriate time period, host and service, and click on Run? Do you see a notification sent for this particular service?
Did the email bounce? Have you checked the mail logs?
Code: Select all
tail -100 /var/log/maillog
tail -100 /usr/local/nagiosxi/tmp/phpmailer.logHome > Service Detail > <your service> Advanced > Send custom notification
Is your company's mail server an issue? Have you tried using a "free" mail accounts, i.e. gmail or yahoo, to see if the emails will go through?
Is there an issue with your configs? Can you show us the configs for the contact, contact group, the service, notification commands, and any relevant templates?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
btsmnagios
- Posts: 49
- Joined: Tue Mar 07, 2017 9:19 am
Re: Alert Notifications from Nagios XI
I have managed to get the alerts working for contacts in CCM
i had not configured a template for the contact and i also had to add in the 2 commands so that CCM uses the php mailer rather than sendmail which was not configured, thanks for the help
i had not configured a template for the contact and i also had to add in the 2 commands so that CCM uses the php mailer rather than sendmail which was not configured, thanks for the help
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Alert Notifications from Nagios XI
Glad you were able to resolve the issue!btsmnagios wrote:I have managed to get the alerts working for contacts in CCM
i had not configured a template for the contact and i also had to add in the 2 commands so that CCM uses the php mailer rather than sendmail which was not configured, thanks for the help