Page 1 of 1
Duplicate email notifiations
Posted: Wed Mar 11, 2020 11:19 am
by tomchattle
Hello,
We're currently migrating to a new build of NagiosXI and when enabling notifications we get 10 emails for every notification that is shown in the Notifications page in the web console.
Sending a test email to the XI account in question only sends a single email as expected.
The contact in CCM has no additional notification commands, just the ones it pulls from the xi_contact_generic template.
Thanks
Re: Duplicate email notifiations
Posted: Wed Mar 11, 2020 12:51 pm
by benjaminsmith
Hi Tom,
Welcome to the Nagios Support Forum! That's quite a few duplicates, have you searched through CCM to make sure you don't have multiple copies of the same contacts?
Also, do you have multiple Nagios processes running?
Please send over the system profile and the contacts receiving duplicates, and I can review your configuration settings. 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 in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
Re: Duplicate email notifiations
Posted: Wed Mar 11, 2020 1:25 pm
by tomchattle
We only have 5 contacts total in CCB, only the one of which has the email address that is receiving the duplicate alerts.
Here's a copy of the ps output on the box:
Code: Select all
ps -ef | grep nagios.cfg
nagios 9298 1 1 11:33 ? 00:01:09 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 9393 9298 0 11:33 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 21324 6378 0 13:18 pts/0 00:00:00 grep --color=auto nagios.cfg
I tried to send you the profile.zip in a private message but it says I am not authorised to use that feature.
Edit: Sent you the profile in a private message
Re: Duplicate email notifiations
Posted: Wed Mar 11, 2020 3:22 pm
by benjaminsmith
Hi Tom,
Since you are new you need a post count of 2 or higher to send a PM. Sorry about that, but I did get the profile. Unfortunately, a few logs were missing from the profile.
Which contacts are receiving duplicate messages?
Can you attach or PM the following:
1. Nagios Log
2. Phpmailer log. Turn on debugging in the system settings, Admin > System Config > Email Settings > Logging
Code: Select all
/usr/local/nagiosxi/tmp/phpmailer.log
3. Database log
I noticed some of your contacts (see PM) are using the xi notification command and others are using the Core notification commands. Since you are using SMTP, configure all the contacts to send via xi notification handlers by following the guide below:
Configuring Core Contacts to Use Nagios XI PHPMailer SMTP Settings
4. It looks like you are sending notifications to sns as well. I'm not that familiar with the service but could that be causing additional emails?