CereusReporting - PDF Reports - 4.00 for Cacti 1.x out soon!

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Alexs
Posts: 10
Joined: Thu Nov 29, 2018 4:34 am

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by Alexs »

I put license.txt in /CereusReporting/config/ and it worked.

Thanks for your help!!!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by phalek »

Oh .. i need to look into a way to fix this. Instead of a error 500 it should tell you that the license file is missing ...
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
yosephafebrian
Posts: 1
Joined: Fri Mar 15, 2019 4:35 am

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by yosephafebrian »

hi,

i installed CereusReporting 3.01 linux 64bit in cacti 1.1.20, when i click install in plugins cacti, i get error message CereusReporting/setup.php is corrupt.
i am following this instruction https://www.urban-software.com/wp-conte ... _6and7.pdf

what should i do ?

Thanks
Attachments
cacti.JPG
cacti.JPG (23.57 KiB) Viewed 7034 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by phalek »

Did you also download the license file from the dowload page and placed it into the config directory ?
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
Atreides
Cacti User
Posts: 174
Joined: Mon May 31, 2010 9:26 am

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by Atreides »

Hello,
I've installed latest version of CereusReporting, I can create PDF's but are empty with message : Error opening the file : /tmp/xxx/xx.png

I enabled debug, but I dont see any errors :

2019/11/02 19:50:06 - CereusReporting report - Creating database connection
2019/11/02 19:50:06 - CereusReporting report - Initializing Report Engine
2019/11/02 19:50:06 - CereusReporting ReportEngine - DEBUG: My Directory [/var/www/html/cacti/plugins/CereusReporting]
2019/11/02 19:50:06 - CereusReporting ReportEngine - DEBUG: Main Directory [/var/www/html/cacti/]
2019/11/02 19:50:06 - SYSTEM TOPX STATS: Time:1.6610 DT:4 DS:760 CYCLES: 376462
2019/11/02 19:50:06 - CereusReporting scheduler - Starting Scheduled Report Check
2019/11/02 19:50:06 - CereusReporting ReportEngine - DEBUG: We are in on-demand mode [tree]
2019/11/02 19:50:06 - CereusReporting ReportEngine - DEBUG: Setting some variables ...
2019/11/02 19:50:06 - CereusReporting ReportEngine - DEBUG: Setting some variables ... Finished
2019/11/02 19:50:06 - CereusReporting ReportEngine - Adding Stylesheet [/var/www/html/cacti/plugins/CereusReporting/templates/ColorCircle_Report_Template-P-A4.pdf.css] to Report
2019/11/02 19:50:06 - CereusReporting scheduler - Scheduled Report Check Finished
2019/11/02 19:50:06 - CereusReporting ReportEngine - DEBUG: Creating initial page
2019/11/02 19:50:06 - CereusReporting ReportEngine - DEBUG: My Directory [/var/www/html/cacti/plugins/CereusReporting/ReportEngines/../]
2019/11/02 19:50:06 - CereusReporting ReportEngine - Using Report Template [/var/www/html/cacti/plugins/CereusReporting/ReportEngines/../templates/ColorCircle_Report_Template-P-A4.pdf] for this Report
2019/11/02 19:50:06 - CereusReporting ReportEngine - DEBUG: Report Template has been added.
2019/11/02 19:50:06 - CereusReporting ReportEngine - DEBUG: Adding the stylesheet to the report.
2019/11/02 19:50:06 - CereusReporting PDFCreation - Print Footer: [on]
2019/11/02 19:50:06 - CereusReporting PDFCreation - Print Header : [on]
2019/11/02 19:50:06 - CereusReporting report - Initializing Report Header
2019/11/02 19:50:06 - CereusReporting report - Report Logo does not exist. Using default logo
2019/11/02 19:50:06 - CereusReporting report - Initializing Report Footer
2019/11/02 19:50:06 - CereusReporting system - Creating Report with Sub Trees ( Tree => [4] Branch_Id=> [47]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Printing Header
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Printing Footer
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Host found [gi05-astoria-cat2950 ( 172.25.232.41 )] at Tier [0]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Retrieving Graph [gi05-astoria-cat2950 - CPU Usage][239] from host [gi05-astoria-cat2950 ( 172.25.232.41 )] at Tier [1]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Retrieving Graph [gi05-astoria-cat2950 - Traffic - Management][240] from host [gi05-astoria-cat2950 ( 172.25.232.41 )] at Tier [1]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Retrieving Graph [gi05-astoria-cat2950 - Traffic - Test][296] from host [gi05-astoria-cat2950 ( 172.25.232.41 )] at Tier [1]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Retrieving Graph [gi05-astoria-cat2950 - Traffic - Link To Test][297] from host [gi05-astoria-cat2950 ( 172.25.232.41 )] at Tier [1]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Retrieving Graph [gi05-astoria-cat2950 - Traffic - SNMP UPS][298] from host [gi05-astoria-cat2950 ( 172.25.232.41 )] at Tier [1]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Retrieving Graph [gi05-astoria-cat2950 - Traffic - Gi0/4][299] from host [gi05-astoria-cat2950 ( 172.25.232.41 )] at Tier [1]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Retrieving Graph [gi05-astoria-cat2950 - Traffic - Gi0/5][300] from host [gi05-astoria-cat2950 ( 172.25.232.41 )] at Tier [1]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Retrieving Graph [gi05-astoria-cat2950 - Traffic - Backup via ][301] from host [gi05-astoria-cat2950 ( 172.25.232.41 )] at Tier [1]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Retrieving Graph [gi05-astoria-cat2950 - Traffic - Test][302] from host [gi05-astoria-cat2950.arad.astral.ro ( 172.25.232.41 )] at Tier [1]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Retrieving Graph [gi05-astoria-cat2950 - Traffic - Uplink from (172.25.232.33)-Gi][303] from host [gi05-astoria-cat2950 ( 172.25.232.41 )] at Tier [1]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - Retrieving Graph [gi05-astoria-cat2950 - Ping Latency][304] from host [gi05-astoria-cat2950 ( 172.25.232.41 )] at Tier [1]
2019/11/02 19:50:06 - CereusReporting DoLeafGraphs - DoLeafGraphs Creation time: [Time:0.1083 ]
2019/11/02 19:50:06 - CereusReporting system - Enabling Header
2019/11/02 19:50:06 - CereusReporting system - Enabling Footer
2019/11/02 19:50:06 - CereusReporting system - Adding ctrltext
2019/11/02 19:50:07 - CereusReporting PDFCreation - Adding image file [/tmp/1572717006-47-1572630600-1572717000/239.png] to report.
2019/11/02 19:50:07 - CereusReporting system - Adding image [/tmp/1572717006-47-1572630600-1572717000/239.png]
2019/11/02 19:50:07 - CereusReporting PDFCreation - Adding image file [/tmp/1572717006-47-1572630600-1572717000/240.png] to report.
2019/11/02 19:50:07 - CereusReporting system - Adding image [/tmp/1572717006-47-1572630600-1572717000/240.png]
2019/11/02 19:50:07 - CereusReporting PDFCreation - Adding image file [/tmp/1572717006-47-1572630600-1572717000/296.png] to report.
2019/11/02 19:50:07 - CereusReporting system - Adding image [/tmp/1572717006-47-1572630600-1572717000/296.png]
2019/11/02 19:50:07 - CereusReporting PDFCreation - Adding image file [/tmp/1572717006-47-1572630600-1572717000/297.png] to report.
2019/11/02 19:50:07 - CereusReporting system - Adding image [/tmp/1572717006-47-1572630600-1572717000/297.png]
2019/11/02 19:50:07 - CereusReporting PDFCreation - Adding image file [/tmp/1572717006-47-1572630600-1572717000/298.png] to report.
2019/11/02 19:50:07 - CereusReporting system - Adding image [/tmp/1572717006-47-1572630600-1572717000/298.png]
2019/11/02 19:50:07 - CereusReporting PDFCreation - Adding image file [/tmp/1572717006-47-1572630600-1572717000/299.png] to report.
2019/11/02 19:50:07 - CereusReporting ReportEngine - DEBUG: My Directory [/var/www/html/cacti/plugins/CereusReporting/ReportEngines/../]
2019/11/02 19:50:07 - CereusReporting ReportEngine - DEBUG: My Directory [/var/www/html/cacti/plugins/CereusReporting/ReportEngines/../]
2019/11/02 19:50:07 - CereusReporting system - Adding image [/tmp/1572717006-47-1572630600-1572717000/299.png]
2019/11/02 19:50:07 - CereusReporting PDFCreation - Adding image file [/tmp/1572717006-47-1572630600-1572717000/300.png] to report.
2019/11/02 19:50:07 - CereusReporting system - Adding image [/tmp/1572717006-47-1572630600-1572717000/300.png]
2019/11/02 19:50:07 - CereusReporting PDFCreation - Adding image file [/tmp/1572717006-47-1572630600-1572717000/301.png] to report.
2019/11/02 19:50:07 - CereusReporting system - Adding image [/tmp/1572717006-47-1572630600-1572717000/301.png]
2019/11/02 19:50:07 - CereusReporting PDFCreation - Adding image file [/tmp/1572717006-47-1572630600-1572717000/302.png] to report.
2019/11/02 19:50:07 - CereusReporting system - Adding image [/tmp/1572717006-47-1572630600-1572717000/302.png]
2019/11/02 19:50:07 - CereusReporting PDFCreation - Adding image file [/tmp/1572717006-47-1572630600-1572717000/303.png] to report.
2019/11/02 19:50:07 - CereusReporting system - Adding image [/tmp/1572717006-47-1572630600-1572717000/303.png]
2019/11/02 19:50:07 - CereusReporting PDFCreation - Adding image file [/tmp/1572717006-47-1572630600-1572717000/304.png] to report.
2019/11/02 19:50:07 - CereusReporting system - Adding image [/tmp/1572717006-47-1572630600-1572717000/304.png]
2019/11/02 19:50:07 - CereusReporting report - Finalizing Report.
2019/11/02 19:50:07 - CereusReporting cron - Starting Scheduled Report Check.
2019/11/02 19:50:07 - CereusReporting functions - Retrieving active report schedules.
2019/11/02 19:50:07 - CereusReporting cron - Scheduled Report Check Finished.
2019/11/02 19:50:07 - CereusReporting system - CEREUSREPORTING STATS: Time:0.2974

Permissions are 777 on /tmp /images /archive. It seems that files arent created on /tmp folder or ?.
Using TCPDF
Attachments
CactiReport1.pdf
(17.64 KiB) Downloaded 136 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by phalek »

Hi

In case you're using CentOS, the tmp directory moved to the /tmp/systemd...httpd.../tmp (or something the like )
It could also be selinux or a missing curl module (php-curl).

Nevertheless, there's going to be a new version out shortly solving some of the issues wiht Cacti 1.2.x and updating several modules.

What PHP and Cacti version do you currently have ?
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
Atreides
Cacti User
Posts: 174
Joined: Mon May 31, 2010 9:26 am

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by Atreides »

Hello,
Cacti version : 1.3.0
php -v
Cannot load the ionCube PHP Loader - it was already loaded
PHP 7.0.32 (cli) (built: Sep 13 2018 16:50:42) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.0, Copyright (c) 2002-2018, by ionCube Ltd.
with Zend OPcache v7.0.32, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans

Selinux is disabled and curl module is installed.
I've checked permissions on
[root@cacti systemd-private-e5b574ddae9546a683ac194745f4162f-httpd.service-vRQz4O]# ls -la
total 12
drwx------ 3 root root 4096 Oct 31 10:54 .
drwxrwxrwt 4 root root 4096 Nov 5 09:58 ..
drwxrwxrwt 2 apache apache 4096 Oct 31 10:54 tmp
[root@cacti systemd-private-e5b574ddae9546a683ac194745f4162f-httpd.service-vRQz4O]#
Last edited by Atreides on Tue Nov 05, 2019 6:49 am, edited 1 time in total.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by phalek »

Ok.

Please try this version:
http://www.urban-software.com/wp-conten ... P56-72.zip

Make sure to switch to the mPDF report engine.
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
Atreides
Cacti User
Posts: 174
Joined: Mon May 31, 2010 9:26 am

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by Atreides »

Hello,
If I use this(copied in /var/www/html/cacti/plugins/CereusReporting) it breaks apache server( I cant access login page anymore, it shows an empty page).

2019/11/05 16:15:55 - ERROR PHP CORE_ERROR: The encoded file /var/www/html/cacti/plugins/CereusReporting/setup.php is corrupt. in file: Unknown on line: 0
2019/11/05 16:15:55 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/11/05 16:15:55 - ERROR PHP CORE_ERROR: The encoded file /var/www/html/cacti/plugins/CereusReporting/setup.php is corrupt. in file: Unknown on line: 0
2019/11/05 16:15:55 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/11/05 16:15:55 - ERROR PHP CORE_ERROR: The encoded file /var/www/html/cacti/plugins/CereusReporting/setup.php is corrupt. in file: Unknown on line: 0
2019/11/05 16:15:55 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/11/05 16:15:55 - ERROR PHP CORE_ERROR: The encoded file /var/www/html/cacti/plugins/CereusReporting/setup.php is corrupt. in file: Unknown on line: 0
2019/11/05 16:15:55 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/11/05 16:15:55 - SYSTEM THOLD STATS: Time:0.5113 Tholds:155 TotalDevices:236 DownDevices:6 NewDownDevices:0
2019/11/05 16:15:55 - ERROR PHP CORE_ERROR: The encoded file /var/www/html/cacti/plugins/CereusReporting/setup.php is corrupt. in file: Unknown on line: 0
2019/11/05 16:15:55 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/11/05 16:15:55 - ERROR PHP CORE_ERROR: The encoded file /var/www/html/cacti/plugins/CereusReporting/setup.php is corrupt. in file: Unknown on line: 0
2019/11/05 16:15:55 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by phalek »

That means that the license file is not being picked up properly or is wrong.
What license file are you using ?
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
Atreides
Cacti User
Posts: 174
Joined: Mon May 31, 2010 9:26 am

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by Atreides »

I accidentaly deleted license file, got rid of errors now, but I'm back to square one. The pdf created is empty with message : Error opening the file : /tmp/xxx/xx.png using TCPDF.

2019/11/05 17:15:47 - CereusReporting report - Creating database connection
2019/11/05 17:15:47 - CereusReporting report - Initializing Report Engine
2019/11/05 17:15:47 - CereusReporting ReportEngine - DEBUG: My Directory [/var/www/html/cacti/plugins/CereusReporting]
2019/11/05 17:15:47 - CereusReporting ReportEngine - DEBUG: Main Directory [/var/www/html/cacti/]
2019/11/05 17:15:47 - CereusReporting ReportEngine - DEBUG: We are in on-demand mode [tree]
2019/11/05 17:15:47 - CereusReporting ReportEngine - DEBUG: Setting some variables ...
2019/11/05 17:15:47 - CereusReporting ReportEngine - DEBUG: Setting some variables ... Finished
2019/11/05 17:15:47 - CereusReporting ReportEngine - DEBUG: Creating initial page
2019/11/05 17:15:47 - CereusReporting ReportEngine - DEBUG: My Directory [/var/www/html/cacti/plugins/CereusReporting/ReportEngines/../]
2019/11/05 17:15:47 - CereusReporting ReportEngine - DEBUG: Adding the stylesheet to the report.
2019/11/05 17:15:47 - CereusReporting PDFCreation - Print Footer: [on]
2019/11/05 17:15:47 - CereusReporting PDFCreation - Print Header : [on]
2019/11/05 17:15:47 - CereusReporting report - Initializing Report Header
2019/11/05 17:15:47 - CereusReporting report - Initializing Report Footer
2019/11/05 17:15:47 - CereusReporting ReportEngine - DEBUG: My Directory [/var/www/html/cacti/plugins/CereusReporting/ReportEngines/../]
2019/11/05 17:15:47 - CereusReporting system - Creating Report with Sub Trees ( Tree => [1] Branch_Id=> [341]
2019/11/05 17:15:47 - CereusReporting DoLeafGraphs - Printing Header
2019/11/05 17:15:47 - CereusReporting DoLeafGraphs - Printing Footer
2019/11/05 17:15:47 - CereusReporting DoLeafGraphs - Host found [Temperatura VLADi ( 192.168.1.1 )] at Tier [0]
2019/11/05 17:15:47 - CereusReporting DoLeafGraphs - Retrieving Graph [Temperatura VLADi - Temperatura][4054] from host [Temperatura VLADi ( 192.168.1.1 )] at Tier [1]
2019/11/05 17:15:47 - CereusReporting DoLeafGraphs - DoLeafGraphs Creation time: [Time:0.0113 ]
2019/11/05 17:15:47 - CereusReporting ReportEngine - Downloading all report graphs
2019/11/05 17:15:47 - CereusReporting ReportEngine - Finished Downloading all report graphs
2019/11/05 17:15:47 - CereusReporting system - Enabling Header
2019/11/05 17:15:47 - CereusReporting system - Enabling Footer
2019/11/05 17:15:47 - CereusReporting system - Adding ctrltext
2019/11/05 17:15:47 - CereusReporting PDFCreation - Adding image file [/tmp/1572966947-341-1572880533-1572966933/4054.png] to report.
2019/11/05 17:15:48 - CereusReporting system - Adding image [/tmp/1572966947-341-1572880533-1572966933/4054.png]
2019/11/05 17:15:48 - CereusReporting PDFCreation - Skipping Cleanup for debug mode.
2019/11/05 17:15:48 - CereusReporting PDFCreation - Worker file still exists : [/tmp/1572966947-341-1572880533-1572966933/workerfile]
2019/11/05 17:15:48 - CereusReporting report - Finalizing Report.
2019/11/05 17:15:55 - SYSTEM STATS: Time:53.6937 Method:spine Processes:1 Threads:10 Hosts:237 HostsPerProcess:237 DataSources:4572 RRDsProcessed:0



I changed to mpdf and plugin gets disabled :


019/11/05 17:13:14 - CereusReporting report - Creating database connection
2019/11/05 17:13:14 - CereusReporting report - Initializing Report Engine
2019/11/05 17:13:14 - CereusReporting ReportEngine - DEBUG: My Directory [/var/www/html/cacti/plugins/CereusReporting]
2019/11/05 17:13:14 - CereusReporting ReportEngine - DEBUG: Main Directory [/var/www/html/cacti/]
2019/11/05 17:13:14 - ERROR PHP PARSE in Plugin 'CereusReporting': syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in file: /var/www/html/cacti/plugins/CereusReporting/vendor/monolog/monolog/src/Monolog/Logger.php on line: 33
2019/11/05 17:13:14 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/11/05 17:13:14 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'CereusReporting'
2019/11/05 17:13:14 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
2019/11/05 17:13:52 - ERROR PHP NOTICE: Undefined index: cereusreporting in file: /var/www/html/cacti/settings.php on line: 40
2019/11/05 17:13:52 - CMDPHP PHP ERROR NOTICE Backtrace: (/settings.php[40]:CactiErrorHandler())
2019/11/05 17:13:52 - ERROR PHP WARNING: Invalid argument supplied for foreach() in file: /var/www/html/cacti/settings.php on line: 40
2019/11/05 17:13:52 - CMDPHP PHP ERROR WARNING Backtrace: (/settings.php[40]:CactiErrorHandler())
2019/11/05 17:14:22 - CereusReporting report - Creating database connection
2019/11/05 17:14:22 - CereusReporting report - Initializing Report Engine
2019/11/05 17:14:22 - CereusReporting ReportEngine - DEBUG: My Directory [/var/www/html/cacti/plugins/CereusReporting]
2019/11/05 17:14:22 - CereusReporting ReportEngine - DEBUG: Main Directory [/var/www/html/cacti/]
2019/11/05 17:14:22 - ERROR PHP PARSE in Plugin 'CereusReporting': syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in file: /var/www/html/cacti/plugins/CereusReporting/vendor/monolog/monolog/src/Monolog/Logger.php on line: 33
2019/11/05 17:14:22 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/11/05 17:14:22 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'CereusReporting'
Last edited by Atreides on Tue Nov 05, 2019 10:20 am, edited 2 times in total.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by phalek »

Ok,

Can you provide:

Code: Select all

php -m
and also do this:

Code: Select all

cd /var/www/html/cacti/plugins/CereusReporting
chmod 775 -R server/php/files/
chmod 775 -R tmp images archive backup vendor/mpdf/mpdf/tmp/
And check what you have entered as the "Cacti Host/Server URL" in the settings. Try putting localhost in there as a test ( "http://127.0.0.1" )
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
Atreides
Cacti User
Posts: 174
Joined: Mon May 31, 2010 9:26 am

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by Atreides »

atreides@cacti CereusReporting]# php -m
Cannot load the ionCube PHP Loader - it was already loaded
[PHP Modules]
amqp
apcu
bcmath
bz2
calendar
ChartDirector PHP API
Core
ctype
curl
date
dba
dom
enchant
exif
fileinfo
filter
ftp
gd
geoip
gettext
gmp
hash
iconv
igbinary
imagick
imap
interbase
intl
ionCube Loader
json
ldap
libsmbclient
libxml
lzf
mbstring
mcrypt
memcached
mongodb
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_dblib
PDO_Firebird
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
pspell
readline
recode
redis
Reflection
session
shmop
SimpleXML
smbclient
snmp
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Xdebug
Zend OPcache
the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)

[atreides@cacti CereusReporting]#
[root@cacti CereusReporting]# cd /var/www/html/cacti/plugins/CereusReporting
[root@cacti CereusReporting]# chmod 775 -R server/php/files/
[root@cacti CereusReporting]# chmod 775 -R tmp/ images/ archive/ backup/ vendor/m
monolog/ mpdf/ myclabs/
[root@cacti CereusReporting]# chmod 775 -R tmp/ images/ archive/ backup/ vendor/mpdf/mpdf/t
tmp/ ttfonts/
[root@cacti CereusReporting]# chmod 775 -R tmp/ images/ archive/ backup/ vendor/mpdf/mpdf/t
tmp/ ttfonts/
[root@cacti CereusReporting]# chmod 775 -R tmp/ images/ archive/ backup/ vendor/mpdf/mpdf/tmp/
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by phalek »

You should get rid of this message:

Code: Select all

 Cannot load the ionCube PHP Loader - it was already loaded
check your php ini files, there's some statement trying to load the ioncube loader twice.
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
Atreides
Cacti User
Posts: 174
Joined: Mon May 31, 2010 9:26 am

Re: CereusReporting - PDF Reports - 3.01 for Cacti 1.x out!

Post by Atreides »

Progress :
It works now, the culprit was the host/URL in CereusReporting settings. I had only cacti.host.com without the https:// in front.
Works with http://127.0.0.1 also, thank you.

PS : It works only with TCPDF, if I switch to mPDF plugin gets disabled.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests