Report scheduling and polling performance
Report generation requires some fine-tuning. Depending on the report type, size, and report generation settings, scheduled report generation can have a negative impact on polling time when being run by the poller.
Using the poller mode is fine for relatively small reports, but should be avoided when running large reports.
In order to reduce the performance impact of report generation, the CereusReporting plugin does provide the ability to run report generation as a cron job.
Let's look how you can enable such cron-based report generation.
Time for action - setting up cron-based report generation
Let's look into setting up a cron job for the report scheduler:
- Log on to your Cacti server.
- Create a new file in
/etc/cron.d
to run the report generation:
vi /etc/cron.d/reportScheduler
- Add the following one line to this file:
*/1 * * * * cactiuser /usr/bin/php /var/www/html/cacti/plugins/nmidCreatePDF/cron_pdf_scheduler.php > /dev/null 2>&1
- Save the file...