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

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

oh, and please try the mpdf engine to see if the error exists there, too.
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
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Please also use the mailing list for the nmid plugins:

http://mailman.network-outsourcing.de/m ... id-plugins
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
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

This is the last message posted here. As per you suggestion any new messages will go to the mailing list

Thanks


Phalek:

The warning and errors are gone, the graphs are being added to the reports, but the generated PDF still contains the same error.. Also when I install the plug-in I get this warnings

Warning: Invalid argument supplied for foreach() in G:\cacti\lib\plugins.php on line 128

Warning: Invalid argument supplied for foreach() in G:\cacti\lib\plugins.php on line 128

Warning: Invalid argument supplied for foreach() in G:\cacti\lib\plugins.php on line 128

Warning: Invalid argument supplied for foreach() in G:\cacti\lib\plugins.php on line 128

Warning: Invalid argument supplied for foreach() in G:\cacti\lib\plugins.php on line 128

Warning: Invalid argument supplied for foreach() in G:\cacti\lib\plugins.php on line 128

Warning: Invalid argument supplied for foreach() in G:\cacti\lib\plugins.php on line 128

Warning: Invalid argument supplied for foreach() in G:\cacti\lib\plugins.php on line 128

Then It goes away when I enable
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hi

There seems to be an issue with the paper orientation using both report engines under windows. I was able to reproduce this error and will work towards a solution the next few days.

This error does not happen on *NIX based installations.
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
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

v0.82 is out fixing several of the windows issues. It also now supports parallel graph rertieval in order to speed up the report generation.

Cron scheduling will be released shortly in order to remove dependancies on the polling cycle and to reduce possible impacts on the polling.
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
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

0.83 will be released shortly. It has the possibility to use cron ( *nix ) or Windows Scheduler for scheduling the Report Generation.

Also graph retrieval is now multi-threaded in order to reduce report generation time.
Attachments
28.01.png
28.01.png (9.27 KiB) Viewed 2893 times
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
hahnn
Posts: 34
Joined: Tue Feb 03, 2009 5:46 am
Location: Luxembourg
Contact:

Post by hahnn »

Hi Phalek,

End of january, our cacti installation stop to work (30th january at midnight), even cacti spine poller.

Looking at httpd error log at first, I've seen tthis error message:

PHP Fatal error: SourceGuardian Loader - This script has expired. Please contact the script author about this problem. Error code [09] in ......./functions.php on line 2

But we had nmidCreatePDF_v0.71_Free_full.tgz.

The question: why this error message (like a licence problem) knowing we use the free version which is supposed to not cause any problem like that ? Is it normal that a potential licence problem of the free version completely blocks cacti, even the poller (no data since 30th january midnight) ?

Then I've installed nmidCreatePDF_0.82_Corporate_full.tgz.

This one seems to work without any licence problem for now.

Any help to address those issues, please ?

Regards.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

the free version of 0.71 should have included an unlimited license, so there must have been an error on my side.

Unfortunately, PIA is always reading in all setup.php files from the plugins. As the license key expired on the nmidCreatePDF plugin this means, that PIA stops at exactly that point. This results in the whole of cacti installation to stop working ...
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
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I have removed the 0.7 versions now. Please use 0.82. It comes with an unlimited license key which enables the free version functionality.
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
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

0.83 will have a "License about to expire" warning message appear when the license key is about to expire within the next 5 days. Also the expiry date is now displayed in the settings page.
Attachments
License_expires.png
License_expires.png (27.08 KiB) Viewed 2778 times
LicenseExpiry_Settings.png
LicenseExpiry_Settings.png (3.75 KiB) Viewed 2778 times
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
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

phalek wrote:0.83 will be released shortly. It has the possibility to use cron ( *nix ) or Windows Scheduler for scheduling the Report Generation.

Also graph retrieval is now multi-threaded in order to reduce report generation time.
Hi ...... After testing NmidPDFReport for about a week, I have to say that is working great.... my next step was to start including Smokeping graphs into my the reports.... , but When I try to placed the modify NmidSmokeping from you site into plugins directory i get an error as soon as I start running cacti.....
Warning: require_once(./lib/tree.php) [function.require-once.html]: failed to open stream: No such file or directory in G:\cacti\plugins\nmidSmokeping\setup.php on line 25

Fatal error: require_once() [function.require.html]: Failed opening required './lib/tree.php' (include_path='.;C:\PHP\pear;c:\php\includes;.') in G:\cacti\plugins\nmidSmokeping\setup.php on line 25
PHP Warning: require_once(./lib/tree.php) [function.require-once.html]: failed to open stream: No such file or directory in G:\cacti\plugins\nmidSmokeping\setup.php on line 25 PHP Fatal error: require_once() [function.require.html]: Failed opening required './lib/tree.php' (include_path='.;C:\PHP\pear;c:\php\includes;.') in G:\cacti\plugins\nmidSmokeping\setup.php on line 25
and this are the affected lines

Code: Select all

$dir = dirname(__FILE__);
if ( stristr( PHP_OS, 'WIN' ) ) {
     Windows
    $mainDir = preg_replace("/plugins\\nmidSmokeping/","",$dir);
} else {
     Other Os
    $mainDir = preg_replace("/plugins\/nmidSmokeping/","",$dir);
}
chdir ($mainDir);
require_once('./lib/tree.php');
chdir($dir);
Thanks[
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

ha, one file I obviously did forget to change .. sorry

Those lines should read:

Code: Select all

if ( preg_match("/WIN/", PHP_OS ) > 0 ) {
    // Windows
    $mainDir = preg_replace("/plugins.nmidSmokeping/","",$dir);
} else {
    // Other Os
    $mainDir = preg_replace("/plugins\/nmidSmokeping/","",$dir);
}
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
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

obviously with a "nmidSmokeping" instead of the nmidCreatePDF ... ( hence the edit to my previous post )
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
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

When I added This Lines

Code: Select all


$dir = dirname(__FILE__); 
if ( preg_match("/WIN/", PHP_OS ) > 0 ) { 
    // Windows 
    $mainDir = preg_replace("/plugins.nmidSmokeping/","",$dir); 
} else { 
    // Other Os 
    $mainDir = preg_replace("/plugins\/nmidSmokeping/","",$dir); 
} 
chdir ($mainDir); 
require_once('./lib/tree.php'); 

chdir($dir); 

...now I get this and cacti does not run

Code: Select all

Warning: include(./auth_login.php) [function.include.html]: failed to open stream: No such file or directory in G:\cacti\include\auth.php on line 61

Warning: include() [function.include.html]: Failed opening './auth_login.php' for inclusion (include_path='.;C:\PHP\pear;c:\php\includes;.') in G:\cacti\include\auth.php on line 61
PHP Warning: include(./auth_login.php) [function.include.html]: failed to open stream: No such file or directory in G:\cacti\include\auth.php on line 61 PHP Warning: include() [function.include.html]: Failed opening './auth_login.php' for inclusion (include_path='.;C:\PHP\pear;c:\php\includes;.') in G:\cacti\include\auth.php on line 61 

I do not want to sound melodramatic, but I just realized that the lines crashed cacti...I've got sql errors everywhere.....Now that I have removed them cacti is running fine

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

Post by phalek »

here's how it should look like:

Code: Select all

$dir = dirname(__FILE__);
if ( preg_match("/WIN/", PHP_OS ) > 0 ) {
    // Windows
    $mainDir = preg_replace("/plugins.nmidSmokeping/","",$dir);
} else {
    // Other Os
    $mainDir = preg_replace("/plugins\/nmidSmokeping/","",$dir);
}

chdir ($mainDir);
require_once('./lib/tree.php');
//chdir($dir);
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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests