CereusReporting 2.10.66: unable to send a scheduled report

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

ArcThemaster
Posts: 34
Joined: Wed Dec 11, 2013 12:00 pm
Location: France

Re: CereusReporting 2.10.66: unable to send a scheduled repo

Post by ArcThemaster »

By default, logging mode is set to "none". I have changed to "debug".
CereusReporting_messages.log doesn't give useful information:

Code: Select all

Mar 10 17:12:56 [Notice] [CereusReporting] [PDFCreation] Creating Report [CereusReporting]
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] PDF Cover Page: [/opt/application/cacti/G1R0C0/apache223/www/html/cacti/plugins/CereusReporting/templates/coverpages/Reporting_CoverPage.pdf]
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] PDF Append Page: []
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] Print Header : []
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] Print Footer: [1]
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] Skipping Cover Page: [1]
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 48 -> /usr/local/zend/bin/php create_image.php 48 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/48-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 28 -> /usr/local/zend/bin/php create_image.php 28 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/28-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 45 -> /usr/local/zend/bin/php create_image.php 45 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/45-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 20 -> /usr/local/zend/bin/php create_image.php 20 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/20-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 46 -> /usr/local/zend/bin/php create_image.php 46 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/46-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 23 -> /usr/local/zend/bin/php create_image.php 23 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/23-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] Starting System Command
Mar 10 17:12:58 [Debug] [CereusReporting] [PDFCreation] System Command: ./parallelGraphRetriever tmp/1394467976-1-1391209200-1393628400/workerfile 2
Mar 10 17:12:58 [Debug] [CereusReporting] [PDFCreation] Return:
Mar 10 17:13:01 [Notice] [CereusReporting] [cron] Starting Scheduled Report Check.
Mar 10 17:13:01 [Debug] [CereusReporting] [functions] Retrieving active report schedules.
Mar 10 17:13:01 [Debug] [CereusReporting] [functions] Checking schedule [CereusReporting]
Mar 10 17:13:01 [Debug] [CereusReporting] [functions] Report [CereusReporting] is recurring
Mar 10 17:13:01 [Notice] [CereusReporting] [cron] Scheduled Report Check Finished.
Mar 10 17:13:01 [Notice] [CereusReporting] [system] CEREUSREPORTING STATS: Time:0.0814
Mar 10 17:14:02 [Notice] [CereusReporting] [cron] Starting Scheduled Report Check.
Mar 10 17:14:02 [Debug] [CereusReporting] [functions] Retrieving active report schedules.
Mar 10 17:14:02 [Debug] [CereusReporting] [functions] Checking schedule [CereusReporting]
Mar 10 17:14:02 [Debug] [CereusReporting] [functions] Report [CereusReporting] is recurring
Mar 10 17:14:02 [Notice] [CereusReporting] [cron] Scheduled Report Check Finished.
Mar 10 17:14:02 [Notice] [CereusReporting] [system] CEREUSREPORTING STATS: Time:0.0783
Mar 10 17:15:01 [Notice] [CereusReporting] [cron] Starting Scheduled Report Check.
Mar 10 17:15:01 [Debug] [CereusReporting] [functions] Retrieving active report schedules.
Mar 10 17:15:01 [Debug] [CereusReporting] [functions] Checking schedule [CereusReporting]
Mar 10 17:15:01 [Debug] [CereusReporting] [functions] Report [CereusReporting] is recurring
Mar 10 17:15:01 [Notice] [CereusReporting] [cron] Scheduled Report Check Finished.
Mar 10 17:15:01 [Notice] [CereusReporting] [system] CEREUSREPORTING STATS: Time:0.0771
Mar 10 17:16:02 [Notice] [CereusReporting] [cron] Starting Scheduled Report Check.
Mar 10 17:16:02 [Debug] [CereusReporting] [functions] Retrieving active report schedules.
Mar 10 17:16:02 [Debug] [CereusReporting] [functions] Checking schedule [CereusReporting]
Mar 10 17:16:02 [Debug] [CereusReporting] [functions] Report [CereusReporting] is recurring
Mar 10 17:16:02 [Notice] [CereusReporting] [cron] Scheduled Report Check Finished.
Mar 10 17:16:02 [Notice] [CereusReporting] [system] CEREUSREPORTING STATS: Time:0.0782
ArcThemaster
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting 2.10.66: unable to send a scheduled repo

Post by phalek »

Not for you, but for me it does. The following lines tell me that it's creating a report named "CereusREporting", adding the graphs you selected to it and generating the required images:

Code: Select all

Mar 10 17:12:56 [Notice] [CereusReporting] [PDFCreation] Creating Report [CereusReporting]
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] PDF Cover Page: [/opt/application/cacti/G1R0C0/apache223/www/html/cacti/plugins/CereusReporting/templates/coverpages/Reporting_CoverPage.pdf]
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] PDF Append Page: []
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] Print Header : []
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] Print Footer: [1]
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] Skipping Cover Page: [1]
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 48 -> /usr/local/zend/bin/php create_image.php 48 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/48-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 28 -> /usr/local/zend/bin/php create_image.php 28 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/28-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 45 -> /usr/local/zend/bin/php create_image.php 45 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/45-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 20 -> /usr/local/zend/bin/php create_image.php 20 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/20-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 46 -> /usr/local/zend/bin/php create_image.php 46 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/46-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [system] Adding Graph 23 -> /usr/local/zend/bin/php create_image.php 23 0 1391209200 1393628400 120 500 > tmp/1394467976-1-1391209200-1393628400/23-1391209200-1393628400.png
Mar 10 17:12:56 [Debug] [CereusReporting] [PDFCreation] Starting System Command
Mar 10 17:12:58 [Debug] [CereusReporting] [PDFCreation] System Command: ./parallelGraphRetriever tmp/1394467976-1-1391209200-1393628400/workerfile 2
Mar 10 17:12:58 [Debug] [CereusReporting] [PDFCreation] Return:
Though it doesn't seem like it's being sent via mail. What kind of report is this ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
ArcThemaster
Posts: 34
Joined: Wed Dec 11, 2013 12:00 pm
Location: France

Re: CereusReporting 2.10.66: unable to send a scheduled repo

Post by ArcThemaster »

Oh yes I saw that part. This report was produced with the "generation report" which is available here:
Console -> CereusReporting Generate Report -> CereusReporting Generate Report Now.

This report was created before with the use of NMID->Manage reports

The pdf creation aborted due to the lack of rights for archive directory I think. It also failed with write access given to the group "others". If I disable the option "Archive this report after creation", I can generate the report.
ArcThemaster
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting 2.10.66: unable to send a scheduled repo

Post by phalek »

then chmod 777 that archive dir again ... :-(
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
ArcThemaster
Posts: 34
Joined: Wed Dec 11, 2013 12:00 pm
Location: France

Re: CereusReporting 2.10.66: unable to send a scheduled repo

Post by ArcThemaster »

This is what I did. It's not the best solution, but it's the only way I found to make it functional...

The initial issue, about inability to send a scheduled report, is solved. I think we can close this topic.

In all cases, I would like to thank you phalek for your help and your expert assessment.
ArcThemaster
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests