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

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
widek611
Posts: 8
Joined: Fri May 15, 2009 1:52 am
Location: Poland

Post by widek611 »

Hello

When I want to create pdf i have only blank page with banner and footer (without graphs).
I have following errors in Apache error.log:

[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Notice: Undefined index: starttime in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 15
[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Notice: Undefined index: endtime in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 16
[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Notice: Undefined variable: leafid in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 79
[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 558
[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 560
[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Notice: Undefined variable: leafid in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 80
[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 558
[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 560
[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Notice: Undefined variable: leafid in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 93
[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 558
[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 560
[Fri May 15 10:58:46 2009] [error] [client 10.0.0.91] PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 354
Please help.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

did you replace the html_tree.php file with the one from the project page ?

Also, which versions 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
widek611
Posts: 8
Joined: Fri May 15, 2009 1:52 am
Location: Poland

Post by widek611 »

This is my config:
Cacti Version - 0.8.7d
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux 2.6.27.21-0.1-pae
Web Server - Apache/2.2.10 (Linux/SUSE)
PHP - 5.2.9
PHP Extensions - libxml, xml, session, pcre, SimpleXML, SPL, standard, Reflection, filter, date, apache2handler, SourceGuardian, bcmath, ctype, curl, dom, exif, ftp, gd, gettext, hash, iconv, imap, json, mbstring, mcrypt, mysql, mysqli, openssl, pcntl, PDO, pdo_mysql, pdo_sqlite, posix, snmp, soap, sockets, SQLite, tidy, tokenizer, xmlreader, xmlwriter, zip, zlib
MySQL - 5.0.67
RRDTool - 1.3.4
SNMP - 5.4.2.1
Plugins
  • Global Plugin Settings (settings - v0.5)
    Create Aggregate Graphs (aggregate - v0.70 Beta 1)
    bost
    Read-only Devices Tab (devices - v0.4)
    Documents (docs - v0.1)
    Host Info (hostinfo - v0.2)
    IP subnet Calculator IPv4 IPv6 (ipsubnet - v.4d)
    PHP Network Managing (PHP Network Managing - v0.6.1)
    Device Monitoring (monitor - v0.8.2)
    NMID CreatePDF Plugin (nmidCreatePDF - v0.3a2)
    NMID WebService Plugin (nmidWebService - v0.3.9a)
    Poller Performance Report (pollperf - v0.32)
    Realtime Graph Viewer (realtime - v0.36)
    Cacti-ReportIt (reportit - v0.6.1)
    RRD File Cleaner (RRD Cleaner - v0.38)
    SuperLinks (superlinks - v0.8)
    Thresholds (thold - v0.4.1)
    Network Tools (tools - v0.3)
    Update Checker (update - v0.4)
    PHP Network Weathermap (weathermap - v0.95b)
I replaced html_tree.php file with this one from tgz: v03_html_tree_087d.tgz.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

what happens if you check the "Include Sub-Leafs" checkbox next to the Adobe Acrobat icon ?
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
widek611
Posts: 8
Joined: Fri May 15, 2009 1:52 am
Location: Poland

Post by widek611 »

The same issue.
I attached this pdf.
Attachments
012_createPDFReport.pdf
(1.96 KiB) Downloaded 267 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

can you upload a screenshot of the page ?
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
widek611
Posts: 8
Joined: Fri May 15, 2009 1:52 am
Location: Poland

Post by widek611 »

OK
I found the solution.
I use Mozilla Firefox v3.0.10 and i think this problem is with some checkbox on the site (maybe when i choose graph they don't really be choosen), because when i try IE8 there is everything OK.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

hm, that's odd ...i am unable to re-produce that behaviour with firefox 3.0.10 ...
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 »

Update 4 has been released.

Together with Update 4 a time limited Professional Edition has been published. The Pro Edition will run until end of June but has no limitation in functionality. CoverPages and CoverLogos can be defined on a per Tree basis and the "Free Version" Text has been removed from the Pro Edition.

* Feature #29: Add ability to change header font size of graphs
* Bug #31: The PDF file does not have a valid filename (doc.pdf)


Please make sure to replace the tree.php file with the one from the files section of the project page to make the CoverPage/CoverLogo feature work with the Pro Edition. The file is not needed for the Free Version
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
Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

Post by Sjoerd »

Installed the plugin, but see (almost) nothing happening....
Only thing I can find is a checkbox next to the graphs.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Did you download the html_tree replacement file from the project page ? That file adds the functionality needed for the toolbar to appear
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
Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

Post by Sjoerd »

Thnx for you're quick respons!
I downloaded v03_html_tree_087d.tgz and placed it in my lib folder.

At this moment when I click on the tree icon I get an error:
Fatal error: Call to undefined function check_changed() in /var/www/html/lib/html_tree.php on line 839
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hm, that is odd.

What cacti version ( i guess 087d ) and Pia version do you use ?
is it windows or linux ?
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
Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

Post by Sjoerd »

Thnx! You're question awnserd mine ;)
I was running 087b.
Sorry for my stupidness....

Im gone play with it. Thnx!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Always a good feeling if i can help... :-)
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