I get 10 emails notifications for some alerts
I get 10 emails notifications for some alerts
All emails are the same. Same date/time. SAme content.
Nagios XI 5.6.10
Nagios XI 5.6.10
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: I get 10 emails notifications for some alerts
Hello @typer100,
Let's do a full restart of the software stack to make sure you do not have multiple Nagios processes running. For Cent/RHEL 7, the commands are as follows:
If the issue persisst, let me kow the exact host or service sending out too many messages and I'll track it down in the system profile.
Also, if you are using SMPT server for email, please enable debugging. Go to Admin > System Config > Email Setting > Enable logging of mail sent with the internal mail component (PHPMailer) /usr/local/nagiosxi/tmp/phpmailer.log
Thanks.
To send us your system profile.
Login to the Nagios XI GUI using a web browser
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
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.
Let's do a full restart of the software stack to make sure you do not have multiple Nagios processes running. For Cent/RHEL 7, the commands are as follows:
Code: Select all
systemctl stop crond
systemctl stop npcd
systemctl stop nagios
systemctl stop ndo2db
pkill -9 -u nagios
for i in $(ipcs -q | grep nagios |awk '{print $2}'); do ipcrm -q $i; done
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
systemctl restart mariadb
systemctl start ndo2db
systemctl start nagios
systemctl start npcd
systemctl start crond
Also, if you are using SMPT server for email, please enable debugging. Go to Admin > System Config > Email Setting > Enable logging of mail sent with the internal mail component (PHPMailer) /usr/local/nagiosxi/tmp/phpmailer.log
Thanks.
To send us your system profile.
Login to the Nagios XI GUI using a web browser
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
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.
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!
Re: I get 10 emails notifications for some alerts
I'll try this report later
Re: I get 10 emails notifications for some alerts
Are they sent to the same user (contact)? How many monitoring contact are currently added to this host/service?All emails are the same. Same date/time. SAme content.
Nagios XI 5.6.10
Sure, let us know when the profile is sent. Thanks!I'll try this report later
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: I get 10 emails notifications for some alerts
You can look for this alert:
***** Nagios XI Alert *****
Nagios has detected a problem with this service.
Notification Type: PROBLEM
Service: Swap Usage
Host: slpelk0677
Address: 172.21.4.56
State: CRITICAL
Info:
CRITICAL: Used swap was 95.10 % (Total: 2147.48 MB, Used: 2041.23 MB, Free: 106.25 MB)
Date/Time: 2020-03-05 06:27:11
Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.
***** Nagios XI Alert *****
Nagios has detected a problem with this service.
Notification Type: PROBLEM
Service: Swap Usage
Host: slpelk0677
Address: 172.21.4.56
State: CRITICAL
Info:
CRITICAL: Used swap was 95.10 % (Total: 2147.48 MB, Used: 2041.23 MB, Free: 106.25 MB)
Date/Time: 2020-03-05 06:27:11
Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.
Re: I get 10 emails notifications for some alerts
In the service template that is used in "Swap Usage", there is one contact, and two contact groups defined. The contact groups have 15 members (contacts) total, assigned to them. For some of them, notifications are disabled but it is hard to find our what the issue is, since we don't have all of the information.
Is this notification sent to the same contact (email) 10 times or it is sent to 10 different contacts at the same time? What are the contacts that received this email? Are you using distribution lists?
Important: I would like to point out that you are NOT using the default notification handlers. Your contact uses custom notification commands - notify-host-by-opsgenie and notify-service-by-opsgenie.
If you are sending notifications to an external program, e.g. Opsgenie, then this is out of scope of Nagios Support. We cannot help you with configuring Opsgenie.
Is this notification sent to the same contact (email) 10 times or it is sent to 10 different contacts at the same time? What are the contacts that received this email? Are you using distribution lists?
Important: I would like to point out that you are NOT using the default notification handlers. Your contact uses custom notification commands - notify-host-by-opsgenie and notify-service-by-opsgenie.
If you are sending notifications to an external program, e.g. Opsgenie, then this is out of scope of Nagios Support. We cannot help you with configuring Opsgenie.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: I get 10 emails notifications for some alerts
Hi! Critical alerts are sent to one contact (OpsGenie) for our ticket management in via Opsgenie to ServiceNow.
And also, for that specific alert, to 2 contact groups via email.
Some contacts in these groups will have notification on or off.
Those with the notification set to ON, will receive the same alert via email up to 10 times.
*see attachment*
And also, for that specific alert, to 2 contact groups via email.
Some contacts in these groups will have notification on or off.
Those with the notification set to ON, will receive the same alert via email up to 10 times.
*see attachment*
You do not have the required permissions to view the files attached to this post.
Re: I get 10 emails notifications for some alerts
Can you go to Reports > Available Reports > Notifications, and show a screenshot of that page, showing multiple notifications, sent to the same contact (email) at the same time?Those with the notification set to ON, will receive the same alert via email up to 10 times.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: I get 10 emails notifications for some alerts
No. Only once.
You do not have the required permissions to view the files attached to this post.
Re: I get 10 emails notifications for some alerts
This means nagios is NOT sending multiple notifications for the same alert at the same time. Once the email is sent to Opsgenie -> ServiceNow, we don't have control over it. Troubleshooting 3rd party ticketing systems/notifications is out of scope of Nagios support. I would recommend that you contact the person who configured Opsgenie and/or ServiceNow, and ask him/her to troubleshot the issue on that end. Thank you!No. Only once.
Be sure to check out our Knowledgebase for helpful articles and solutions!