Duplicated Reports (one without attachments)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Duplicated Reports (one without attachments)

Post 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
clint.grimes
Posts: 9
Joined: Wed Nov 27, 2019 11:06 am

Re: Duplicated Reports (one without attachments)

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Duplicated Reports (one without attachments)

Post 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
clint.grimes
Posts: 9
Joined: Wed Nov 27, 2019 11:06 am

Re: Duplicated Reports (one without attachments)

Post 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
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Duplicated Reports (one without attachments)

Post by pbroste »

Excellent @clint.grimes that is good to here, and will go ahead and lock.

Thanks,
Perry
Locked