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

Announcements concerning Plugins for Cacti

Moderators: Moderators, Developers

Post Reply
Author
Message
User avatar
phalek
Cacti Guru User
Posts: 2725
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

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

#1006 Post by phalek » Tue Nov 05, 2019 10:39 am

Can you post why it gets disabled with mPDF ?
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

Atreides
Cacti User
Posts: 151
Joined: Mon May 31, 2010 9:26 am

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

#1007 Post by Atreides » Tue Nov 05, 2019 10:43 am

Sure, here is a debug with mPDF.

2019/11/05 17:29:17 - CereusReporting ReportEngine - DEBUG: My Directory [/var/www/html/cacti/plugins/CereusReporting]
2019/11/05 17:29:17 - CereusReporting ReportEngine - DEBUG: Main Directory [/var/www/html/cacti/]
2019/11/05 17:29:17 - 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:29:17 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/11/05 17:29:17 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'CereusReporting'
2019/11/05 17:29:17 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
2019/11/05 17:29:34 - ERROR PHP NOTICE: Undefined index: cereusreporting in file: /var/www/html/cacti/settings.php on line: 40
2019/11/05 17:29:34 - CMDPHP PHP ERROR NOTICE Backtrace: (/settings.php[40]:CactiErrorHandler())
2019/11/05 17:29:34 - ERROR PHP WARNING: Invalid argument supplied for foreach() in file: /var/www/html/cacti/settings.php on line: 40
2019/11/05 17:29:34 - CMDPHP PHP ERROR WARNING Backtrace: (/settings.php[40]:CactiErrorHandler())
2019/11/05 17:30:03 - CereusReporting report - Creating database connection
2019/11/05 17:30:03 - CereusReporting report - Initializing Report Engine
2019/11/05 17:30:03 - CereusReporting ReportEngine - DEBUG: My Directory [/var/www/html/cacti/plugins/CereusReporting]
2019/11/05 17:30:03 - CereusReporting ReportEngine - DEBUG: Main Directory [/var/www/html/cacti/]
2019/11/05 17:30:03 - 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:30:03 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/11/05 17:30:03 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'CereusReporting'
2019/11/05 17:30:03 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
2019/11/05 17:30:18 - ERROR PHP NOTICE: Undefined index: cereusreporting in file: /var/www/html/cacti/settings.php on line: 40
2019/11/05 17:30:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/settings.php[40]:CactiErrorHandler())
2019/11/05 17:30:18 - ERROR PHP WARNING: Invalid argument supplied for foreach() in file: /var/www/html/cacti/settings.php on line: 40
2019/11/05 17:30:18 - CMDPHP PHP ERROR WARNING Backtrace: (/settings.php[40]:CactiErrorHandler())

User avatar
phalek
Cacti Guru User
Posts: 2725
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

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

#1008 Post by phalek » Wed Nov 06, 2019 4:41 am

Looks like the Logger module isn't supported on PHP 7.0. If you switch off DEBUG logging, the mPDF engine should work.

I will make a PHP version check to exclude the mPDF extra logging when not running PHP >7.0
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

Atreides
Cacti User
Posts: 151
Joined: Mon May 31, 2010 9:26 am

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

#1009 Post by Atreides » Wed Nov 06, 2019 3:20 pm

Hello,
I can confirm its working with logging set to NONE.

User avatar
phalek
Cacti Guru User
Posts: 2725
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

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

#1010 Post by phalek » Wed Nov 06, 2019 3:48 pm

Ok,

Use this version which disabled the Logger module when not using PHP >7.1

http://www.urban-software.com/wp-conten ... P56-72.zip
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

Post Reply