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

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
jhariti
Posts: 19
Joined: Fri Dec 04, 2009 1:10 pm
Location: Brussels; BELGIUM

nmid CreatePDF print issue

Post by jhariti »

Hi everybody, (Best Wishes)

I have an issue to print a specific graphic from CACTI.
At the top of the selected device I can print all graphics in one PDF document, but for a specific graphic for instance CPU utilisation of the selected device I can't print it (hourly, daily, monthly & yearly).
*** Error opening the file tmp/100.png ***
I have already check the tmp directory under the plugin directory nmidCreatePDF (chmod 777 & chown by web user) and did all necessary check & troubleshooting by reading all the information provided by the CACTI's Forum & FAQ's nmid but without succes.

Can I somebody provide me please the trick or tip. Thanks in advance.

!!!! One more question is it a way to disable the footer at the PDF document for the free edition ***- Created with nmidCreatePDF plugin. (c) 2009 by Urban-Software.de. Free Version*** ???
Attachments
nmidCreatePDF-PrintIssue.PNG
nmidCreatePDF-PrintIssue.PNG (32.85 KiB) Viewed 3052 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hm, can you provide some details on which version you are using ?

Is it possible to have a remote session ( e.g. using TeamViewer or gotomeeting ) ? it's way easier to have a look at the system itself ... :-)

For the footer, sure: invest 50€ and buy the Pro 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
User avatar
jhariti
Posts: 19
Joined: Fri Dec 04, 2009 1:10 pm
Location: Brussels; BELGIUM

nmidCreatePDF print issue

Post by jhariti »

Cacti Version - 0.8.7e
Plugin Architecture - 2.6
Poller Type - CMD.php
Server Info - Linux 2.6.18-164.el5
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, SourceGuardian, dbase, gd, ldap, mbstring, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, snmp
MySQL - 5.0.77
RRDTool - 1.4.2
SNMP - 5.3.2.2
Plugins
  • Global Plugin Settings (settings - v0.5)
    Cacti Log View (CLog - v1.3)
    Data Sources Statistics (DSStats - v1.1)
    FlowView (flowview - v0.6)
    RRD File Cleaner (RRD Cleaner - v0.38)
    Syslog Monitoring (syslog - v0.5.2)
    SuperLinks (superlinks - v0.8)
    Create Aggregate Graphs (aggregate - v0.71)
    Thresholds (thold - v0.4.1)
    Cacti-ReportIt (reportit - v0.7.1)
    Host Info (hostinfo - v0.2)
    NTop Viewer (ntop - v0.1)
    Cycle Graphs (Cycle Graphs - v0.7)
    SSL Redirector (ssl - v0.1)
    Send Graphs via EMail (nectar - v0.1)
    Realtime Graph Viewer (realtime - v0.4)
    Watermark (watermark - v0.1)
    Update Checker (update - v0.4)
    NMID CreatePDF Plugin (nmidCreatePDF Free/Pro - v0.5)
    NMID WebService Plugin (nmidWebService - v0.3.9a U2)
    QuickTree (quicktree - v0.1)
    Notices (Notices - v0.2c)
    Automate Cacti Tasks (autom8 - v0.31)
Sure I will buy the professional edition of nmid CreatePDF after I finalise all setup at all levels.
User avatar
jhariti
Posts: 19
Joined: Fri Dec 04, 2009 1:10 pm
Location: Brussels; BELGIUM

nmid CreatePDF print issue

Post by jhariti »

The cacti server is behind a firewall. Unfortunately I can't give you remote access to the server via other alternative due to confidentiality aspect...

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

Post by phalek »

I wouldn't mind to sign any NDA ... but that's ok. Do you have any other way of communicating e.g. skype, icq, msn, yahoo or such things ?
Last edited by phalek on Tue Dec 29, 2009 5:38 pm, edited 1 time in total.
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 »

Version 0.7 just got released:

Download it from here: http://redmine.nmid-plugins.de/projects ... dcreatepdf

New Features:
  • All Versions:
  • PDF Files now contain bookmarks to each graph ( mPDF Report Engine only ) (new!)
  • Differen Report Engines selectable (new!)
  • Unicode ( UTF-8 ) support (mPDF Report Engine only) (new!)
  • Special Graph Reports (new!)
    Additional Features for the Professional and Corporate Edition:
  • Archiving functionality (new!)
  • Different support options selectable (new!)
    Additional Features for the Corporate Edition:
  • DSStats Report generation support (new!)
Download links for the Reporting Engines are listed on the following page:
http://www.network-outsourcing.de/download.html

Extract the files into the ReportEngines directory.
Last edited by phalek on Tue Dec 29, 2009 5:37 pm, edited 1 time in total.
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 »

So, jhariti i would ask you to try the 0.7 version. Then try the following:

Code: Select all

php create_image.php 246 0 1262123000 1262126850 100 800 > image.png
download that png file and try to view it. If the image is a cacti graph, then there still may be some permission errors. If not, then something else is not working correctly and I have to guess arround ... or look into the png file as an error message might be in there ( cat image.png )
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
jhariti
Posts: 19
Joined: Fri Dec 04, 2009 1:10 pm
Location: Brussels; BELGIUM

Post by jhariti »

OK phalek,
I will try the new release and keep you informed ...

Thanks for your great support. If I still have the same issue with the new release I will try to communicate with you via messenger or other tools to clarify more the error. Thanks & Best wishes.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I have created a mailing list for the nmid-plugins:

nmid-plugins at mailman.network-outsourcing.de
http://mailman.network-outsourcing.de/m ... id-plugins

Feel free to join in.
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 »

A new „Quíck Installation Guide“ is availalbe for nmidCreatePDF Corporate Edition Version 0.7

It is also valid for the Free and Professional Edition and describes the installation steps necessary for setting up the plugin in a CactiEz ( Centos 4, cacti 0.8.7e ) environment.

The PDF document is available from the following URL:

http://www.network-outsourcing.de/corpo ... ation.html
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
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

erro in apache log

Post by zorrosam »

hi guy,
i have this incredible plugin on my production installation ... and it works well ... now i'm implementing a second server for another portion of network ... all the modules are installed correctly, the pdf in generated but is empty.

on my web server i have this error :

[error] [client x.x.x.x] PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 428, referer: https://patroclo/cacti/graph_view.php?a ... af_id=1976

any help is appreciate.

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

Post by phalek »

which version are you using, 0.7 ?
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
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

update info

Post by zorrosam »

... for resume.

the problem on the post is on an enivroment with :

cacti 0.87d
spine
plugin arch 2.4
nmidPDF 0.3a2

I have tested the last version, 0.7, on my test server ....

cacti 0.87e
spine
plugin arch 2.6
nmidPDF 0.7

with this release after the installation/activation cacti doesn't start ... the screen remain blank and the web server doesn't respond. I have no error in this case on my web server. If i delete the folder of the plugin nmidPDF ver 0.7 the test installation works again!

... so ... two problems at the attention of the community.

please HELP

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

Post by phalek »

Thats ok if the screen is blank, this just means that a constant has already been defined which should not have been. ( in that case it is "EDITION" ).

Try running e.g. "php createPDFReport.php" what kind of errors does that bring up with version 0.7 ?

If possible, can I have a look into your test system to check what's wrong ? I can priovide details for having a remote session ....
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
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

.... same issue with manually execution

Post by zorrosam »

sorry i can do that (remote access)

if i execute manually the php i obtain the same error of the web server

[root@patroclo nmidCreatePDF]# php createPDFReport.php
PHP Notice: Undefined index: starttime in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 15
PHP Notice: Undefined index: endtime in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 16
PHP Notice: Undefined variable: leafid in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 85
PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 634
PHP Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 636
PHP Notice: Undefined variable: leafid in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 86
PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 634
PHP Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 636
PHP Notice: Undefined variable: leafid in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 99
PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 634
PHP Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/cacti/plugins/nmidCreatePDF/createPDFReport.php on line 636

... this for the first problem... pdf generated without graphs.

let me know
phalek wrote:Thats ok if the screen is blank, this just means that a constant has already been defined which should not have been. ( in that case it is "EDITION" ).

Try running e.g. "php createPDFReport.php" what kind of errors does that bring up with version 0.7 ?

If possible, can I have a look into your test system to check what's wrong ? I can priovide details for having a remote session ....
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests