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 »

New version is now available. The version has only some minor changes:

Version number changed to 0.5
Fix for the path issue mentioned some posts earlier

You can download the latest Free version from:

http://redmine.nmid-plugins.de/projects ... dcreatepdf
or
http://www.network-outsourcing.de/free- ... nload.html

A new time limited Pro version is also availabe. The plugin will run until 31st October 2009:
http://www.network-outsourcing.de/profe ... nload.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
benoit
Posts: 23
Joined: Wed Dec 12, 2007 8:03 am
Location: Paris, France

Post by benoit »

Hi everybody !
1st, excuse me for my bad english
2nd, I would use nmidCREATEPdf plugin but no possible to do it work properly ... always the same error ...
Error opening the file : tmp/80181.png
See my configuration ...
Cacti Version - 0.8.7b
Plugin Architecture - 2.1
Poller Type - Cactid v
Server Info - Linux 2.6.18-6-686-bigmem
Web Server - Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13
PHP - 5.2.0-8+etch13
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, gd, mcrypt, mysql, mysqli, PDO, pdo_mysql, snmp
MySQL - 5.0.32-Debian_7etch8-log
RRDTool - 1.2.15
SNMP - 5.2.3
Plugins
  • Thresholds (thold - v0.3.9)
    Global Plugin Settings (settings - v0.5)
    NMID CreatePDF Plugin (nmidCreatePDF Free/Pro - v0.5)
    Create Aggregate Graphs (aggregate - v0.70 B2)
    PHP Network Weathermap (weathermap - v0.82)
    Host Info (hostinfo - v0.2)
    Device Monitoring (monitor - v0.7)
    Network Tools (tools - v0.3)
Be sure I've read all this post

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

Post by phalek »

Hi, can you look into the permission settings for the tmp dir ? it's located at /path/to/cact/plugins/nmidCreatePDF/tmp

It needs to be writeable by the web-server to store the images in there. Also, make sure you have php-gd installed
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
benoit
Posts: 23
Joined: Wed Dec 12, 2007 8:03 am
Location: Paris, France

Post by benoit »

oh yes, it's very writeable ... :wink:
drwxrwxrwx 2 www-data www-data 48 2009-10-06 11:06 tmp
phg-gd is installed ( Vous avez = you have )
srcacti:/var/www/cacti/plugins/nmidCreatePDF# php phpinfo.php
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
Vous avez PHP 5.2.0-8+etch13<br />Vous avez GD 2.0 or higher
Strange .. my phpinfo show that php-gd is installed but when i've done

Code: Select all

#cat /etc/php5/apache2/php.ini |grep gd
it show me the line as

Code: Select all

;extension = gd.so
I changed it to

Code: Select all

extension = gd.so
and now my pdf are empty ... :o :roll:
" no keyboard detected, press any key to continue ..."
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

ok, so what does your web server error log say ?
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
benoit
Posts: 23
Joined: Wed Dec 12, 2007 8:03 am
Location: Paris, France

Post by benoit »

:o curiously, my pdf are correctly created this morning ... but the same error is still there :

Code: Select all

Error opening the file : tmp/80181.png
my websever log , always the same line :

Code: Select all

PHP Warning:  Module 'gd' already loaded in Unknown on line 0
The tab nmidCreatePDF is not present in my cacti, even the "add" png ...
Did i miss sommething during install ?
" no keyboard detected, press any key to continue ..."
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Yes, the tab is only available in the Corporate Edition, you are using the Free Edition which only has limited 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
benoit
Posts: 23
Joined: Wed Dec 12, 2007 8:03 am
Location: Paris, France

Post by benoit »

Ok, at least, one thing is working properly :wink:
Any idea about the error still present ( no png in my pdf ) ?
Thanks
" no keyboard detected, press any key to continue ..."
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

what is your http error log telling ? anything in there that gives any clue ?
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
benoit
Posts: 23
Joined: Wed Dec 12, 2007 8:03 am
Location: Paris, France

Post by benoit »

Code: Select all

***********:/var/log/apache2# cat error.log
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
[Sun Oct 11 06:25:08 2009] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 configured -- resuming normal operations
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
Always the same ...
" no keyboard detected, press any key to continue ..."
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Can you do FAQ 2 from the following link :

http://redmine.nmid-plugins.de/wiki/nmidcreatepdf/FAQ

open the resulting file and look for any errors
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
benoit
Posts: 23
Joined: Wed Dec 12, 2007 8:03 am
Location: Paris, France

Post by benoit »

when i run the cli :

Code: Select all

********:/var/www/cacti/plugins/nmidCreatePDF# php create_image.php 3287 0 1255278064 1255332199  > myimage.png
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
and when i try to browse the png with I.E

Code: Select all

Invalid PHP_SELF Path
Firefox say that the png contains error and can't be show.
" no keyboard detected, press any key to continue ..."
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

can you send me the png file ? Please use the pm function to do so ..
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 »

Ok, seems like I need to change the calling of that command a bit.

See here for more details on that error:
http://cactiusers.org/forums/topic1405.html

So if you call that command from the FAQ from the cacti root dir using the following syntax, you should get a correct png file:

Code: Select all

php /var/www/cacti/plugins/nmidCreatePDF/create_image.php  ...
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
benoit
Posts: 23
Joined: Wed Dec 12, 2007 8:03 am
Location: Paris, France

Post by benoit »

my png seem to be correct ( size ) but she still contain errors ...
see your mp

So sorry ! I forgot to define the size of the png ( offset 4 & 5 ) ...
The png are created and i can see it in Firefox or IE but not in my pdf
" no keyboard detected, press any key to continue ..."
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest