Page 1 of 2
Duplicated Reports (one without attachments)
Posted: Wed Oct 20, 2021 8:52 am
by clint.grimes
Hello XI Support
We are seeing some reports sending out two copies, one with an attachment and one without. Not every report.
On 9/27, we added an additional email address to the "Recipients" list for 18 reports. Some (at least 7) are sending out two copies visible in the "Scheduled Reports History" page. There are no duplicates in the "Scheduled Reports" page.
We have since patched Nagios from 5.8.5 -> 5.8.6 on 10/4 and removed the additional email from the "Recipients" list, but the duplicates continue.
We are running the VMware Image Nagios XI server with a 64 bit CentOS kernel:
Code: Select all
CentOS Linux release 7.9.2009
Linux dhrprodnagios01.ad.dhr.state.md.us 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Thanks for your help,
-Clint
Re: Duplicated Reports (one without attachments)
Posted: Wed Oct 20, 2021 2:37 pm
by pbroste
Hello
@clint.grimes
Thanks for reaching out, sounds like there is a stale or duplicate config that needs to be cleaned up.
There may be an issue writing to the database. However, to start, let's go to the Core Configuration Manager - CCM to make sure that things are good.
To start let's manually delete the tmp's we see sitting in the import directory:
Code: Select all
rm -rf /usr/local/nagios/etc/import/*
Listed:
- 1: command list all running /bin/nagios -> ps -aux | grep -E '/bin/nagios'
- 2: command -> killall -9 nagios (or pkill nagios)
- 3: command verify to see if /bin/nagios processes are stopped see #1
- 4: Head over to the Nagios XI web console ==> Core Configuration Manager (CCM) ==> Config File Management ==> [Delete Files] ==> [Write Files] ==> [Verify Files]
- 5: Core Configuration Manager (CCM) ==> Under Quick Tools ==> "Apply Configuration"
- 6: Restart nagios.service by terminal command: systemctl restart nagios
- 7: Verify
Restart the nagios.service:
Then head over to CCM and verify that the pre-flight host and services look good and verify that there are no errors in core by:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Let us know how things look.
Thanks,
Perry
Re: Duplicated Reports (one without attachments)
Posted: Thu Oct 28, 2021 1:12 pm
by clint.grimes
Thanks Perry-
I followed the steps provided.
When I forced one of the duplicate reports to run, it only sent out one. I'll check again in the morning to ensure there aren't duplicated in the scheduler I can't see. The stop/start/verify gives me a count for hosts/services/groups but not reports, so I'm cautiously optimistic.
-Clint
Re: Duplicated Reports (one without attachments)
Posted: Fri Oct 29, 2021 8:47 am
by clint.grimes
The duplicate reports are still occurring. I know where the CCM base config files are for hosts, services and groups, but not where to find how the reports are being handled 'behind the scenes'. Any suggestions?
Thanks,
-Clint
Re: Duplicated Reports (one without attachments)
Posted: Fri Oct 29, 2021 10:49 am
by pbroste
Hello
@clint.grimes
Thanks for following up, want to suggest looking through the 'event logs' to assist in narrowing the issue found in:
Code: Select all
cat /usr/local/nagiosxi/var/eventman.log /usr/local/nagiosxi/var/cmdsubsys.log | less -sr
If you want us to take a look as well please send us a System Profile:
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 send via Private Message
Thanks,
Perry
Thanks,
Perry
Re: Duplicated Reports (one without attachments)
Posted: Mon Nov 01, 2021 8:48 am
by clint.grimes
Thanks Perry-
I've sending that profile zip file in a PM. Btw, the path to get there is "Admin" -> "System Config" -> "System Profile"
I did look at those files. Neither seemed to have any report info. Hopefully there will be something for you in the zip file.
Thanks,
-Clint
Re: Duplicated Reports (one without attachments)
Posted: Mon Nov 01, 2021 8:48 am
by clint.grimes
Thanks Perry-
I've sending that profile zip file in a PM. Btw, the path to get there is "Admin" -> "System Config" -> "System Profile"
I did look at those files. Neither seemed to have any report info. Hopefully there will be something for you in the zip file.
Thanks,
-Clint
Re: Duplicated Reports (one without attachments)
Posted: Mon Nov 01, 2021 8:48 am
by clint.grimes
Thanks Perry-
I've sending that profile zip file in a PM. Btw, the path to get there is "Admin" -> "System Config" -> "System Profile"
I did look at those files. Neither seemed to have any report info. Hopefully there will be something for you in the zip file.
Thanks,
-Clint
Re: Duplicated Reports (one without attachments)
Posted: Mon Nov 01, 2021 10:13 am
by pbroste
Hello Clint,
Thanks for following up, appears that the System Profile attachment did not make the trip.
Here is the command to get the System Profile if you need to create a new one.
Code: Select all
rm -rf /usr/local/nagiosxi/var/components/profile.zip
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send the resulting /usr/local/nagiosxi/var/components/profile.zip​ file.
-Thanks,
Perry
Subject: Duplicated Reports (one without attachments)
clint.grimes wrote:Thanks Perry-
I've sending that profile zip file in a PM. Btw, the path to get there is "Admin" -> "System Config" -> "System Profile"
I did look at those files. Neither seemed to have any report info. Hopefully there will be something for you in the zip file.
Thanks,
-Clint
Re: Duplicated Reports (one without attachments)
Posted: Mon Nov 01, 2021 10:23 am
by clint.grimes
Hi Perry, I think we got out of sync. The forum page wasn't responding (hence the repeated posts) and I just got back to this and sent you the PM a few minutes ago. (But before your reply post was released) You should have the PM and attachment now. I was able to open the zip file before sending it and it looked valid. Attaching it to the public forum chain isn't possible for security reasons.
Thanks,
-Clint