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

Announcements concerning Plugins for Cacti

Moderators: Moderators, Developers

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

#166 Post by widek611 » Fri May 15, 2009 4:11 am

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
Cacti Guru User
Posts: 2735
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#167 Post by phalek » Fri May 15, 2009 4:21 am

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 : 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

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

#168 Post by widek611 » Fri May 15, 2009 4:44 am

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
Cacti Guru User
Posts: 2735
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#169 Post by phalek » Fri May 15, 2009 4:52 am

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 : 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

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

#170 Post by widek611 » Fri May 15, 2009 4:56 am

The same issue.
I attached this pdf.
Attachments
012_createPDFReport.pdf
(1.96 KiB) Downloaded 244 times

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

#171 Post by phalek » Fri May 15, 2009 4:59 am

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 : 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

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

#172 Post by widek611 » Fri May 15, 2009 5:07 am

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
Cacti Guru User
Posts: 2735
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#173 Post by phalek » Fri May 15, 2009 5:11 am

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 : 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

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

#174 Post by phalek » Wed May 20, 2009 12:05 am

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 : 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

Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

#175 Post by Sjoerd » Thu May 28, 2009 4:46 pm

Installed the plugin, but see (almost) nothing happening....
Only thing I can find is a checkbox next to the graphs.

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

#176 Post by phalek » Fri May 29, 2009 12:02 am

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 : 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

Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

#177 Post by Sjoerd » Fri May 29, 2009 2:52 am

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
Cacti Guru User
Posts: 2735
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#178 Post by phalek » Fri May 29, 2009 3:07 am

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 : 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

Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

#179 Post by Sjoerd » Fri May 29, 2009 3:21 am

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

Im gone play with it. Thnx!

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

#180 Post by phalek » Fri May 29, 2009 3:37 am

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 : 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

Post Reply