Page 2 of 2

Re: Duplicated Reports (one without attachments)

Posted: Mon Nov 01, 2021 1:11 pm
by pbroste
Hello @clint.grimes

Thanks for following up with the System Profile, it appears that we will need the 'scheduledreporting' log found in: (I thought that it was included)

Code: Select all

cat /usr/local/nagiosxi/var/scheduledreporting.log > /tmp/scheduledreport.txt
Thanks,
Perry

Re: Duplicated Reports (one without attachments)

Posted: Tue Nov 02, 2021 3:38 pm
by clint.grimes
Here is that file. If you can't read gzip, let me know and I can recast it. That file doesn't rotate and is nearly 5mb uncompressed.

-Clint

Re: Duplicated Reports (one without attachments)

Posted: Tue Nov 02, 2021 4:28 pm
by pbroste
Hello @clint.grimes

Thanks for sending the 'scheduledreportinglog' over and after reviewing we do see that there are duplicates.

It appears that there are duplicate entries in the cron for scheduled reporting, please take a look to see by:

Code: Select all

cat  /var/spool/cron/apache
You will see for an example:
/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report='WYScFsYdvS4f' --username='nagiosadmin' > /dev/null 2>&1
Verify the report code for any duplicates and remove them.

Thanks,
Perry

Re: Duplicated Reports (one without attachments)

Posted: Wed Nov 03, 2021 8:49 am
by clint.grimes
That was the issue. This can be marked closed.

Some of the scheduled reports had the --report= argument enclosed in single quotes and some did not.

I sorted the crontab by time and then removed duplicates. The 'duplicates didn't have attachments' part was probably an automated behavior of the mail gateway server.

Thanks,
-Clint

Re: Duplicated Reports (one without attachments)

Posted: Wed Nov 03, 2021 12:18 pm
by pbroste
Excellent @clint.grimes that is good to here, and will go ahead and lock.

Thanks,
Perry