Email not getting for warning alerts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Email not getting for warning alerts

Post by Naveed »

I have configured all my services for warning and critical alerts, I am getting proper alerts from all services, but few services are in warning and not sending alerts over the email..

My service details are as follows:
You do not have the required permissions to view the files attached to this post.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Email not getting for warning alerts

Post by bwallace »

Lets check some general notification settings.

Login to XI and click the username in the top right. Then go to Notification Options > Notification Preferences - ensure that the 'Enable notifications' box is checked, as well as the below boxes for specific alerts. Click 'Update Settings'.

Next, navigate to 'Notification Methods' and ensure 'Receive alerts via email.' is enabled, then click Update Settings.

Now force a notification from one of the services for which you're not getting emails on 'warning' status (this is not the same as the "send test email" function):
- Go to the Service Status Detail page for the service you are monitoring Home > Details > Service Detail & select the service in question
- Click the Advanced tab
- Under the Commands window click "Send custom notification" link
- Tick the box Forced
- Type a comment
- Click Commit and check your email. Also check Home > Incident Management > Notifications for a record of this being sent.

If you still do not receive an email then re-check the service settings.
- Go to Configure > Core Config Manager > Services
- Click the icon for the service in question
- Click the Check Settings tab > ensure there are values for check interval, retry interval, max check attempts and that Active checks enabled = on

Click the Alert Settings tab
- Click Manage Contacts & a window appears
- Select your name in the left and pane and click the "Add Selected" button
- At the bottom left in this window, select the radio button "standard" and click Close - you should return to the original Alert settings window & Check the proper boxes next to Notification options (this all looks good, based on your screenshot but including these suggestions for anyone else who may come across this later)
- set Notification interval = 20 (minutes)
- set First Notification delay = 1 (minute)
- Click the Close button, and on the original window click Save
- Apply Configuration and try sending the test notification again.

Let us know if the above steps revealed a misconfiguration. If not, then let us know is your Nagios system configured to use sendmail or SMTP?
Admin > Manage Email Settings


If sendmail, you can check this log:
/var/log/maillog
tail -100 /var/log/maillog
--This file logs email sent through sendmail. Only applicable to core contact "notify-*-by-email" notification handlers and sendmail tests.

If you're using SMTP, check
/usr/local/nagiosxi/tmp/phpmailer.log
tail -100 /usr/local/nagiosxi/tmp/phpmailer.log

- or post the corresponding log here if in any doubt, thanks.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Email not getting for warning alerts

Post by Naveed »

Sorry I was away for few days thats why could not update you on this thread.

I have checked, all settings are fine already. No change is made from side. I have tested it by generating a custom notification. I got custom notification email as well.

Thank you!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Email not getting for warning alerts

Post by bwallace »

Glad to hear it's working, does that mean we can close this thread or do you want to wait to see if those notifications will be triggered under 'normal' conditions?
Be sure to check out the Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Email not getting for warning alerts

Post by Naveed »

Thank you for your assistance...

lets monitor this to next 24 hours and after that it can be closed?
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Email not getting for warning alerts

Post by bwallace »

Absolutely - just provide an update whenever you're able. This thread will remain open in the meantime....
Be sure to check out the Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Email not getting for warning alerts

Post by Naveed »

Sure
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Email not getting for warning alerts

Post by bwallace »

-
Be sure to check out the Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Email not getting for warning alerts

Post by Naveed »

Close this thread.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Email not getting for warning alerts

Post by rkennedy »

Will do, closing this one out.
Former Nagios Employee
Locked