[Solved] PB with nmidCreatePDF - No graph

Support for the Plugin Architecture

Moderators: Developers, Moderators

darkscarabaeus
Posts: 14
Joined: Wed Mar 24, 2010 2:33 pm

[Solved] PB with nmidCreatePDF - No graph

Post by darkscarabaeus »

Hello everybody,

I have installed Cacti in its last stable release with the plugin PIA.
I have also install the plugin nmidCreatePDF.
But when i want to generate reports the .pdf is blank, no charts appear.
When i click on a graph and i generate a .pdf its works.
Here the tuto used to install nmidCreatePDF.
Can you help me??

thanks
Le plugin NmidCreatePDF permet de générer des PDF depuis les graphiques de Cacti.
Vous avez normalement déjà procédé à l’installation de PIA sinon référez vous au chapitre Installation du plugin Architecture de ce document.
Pour commencez, téléchargez les fichiers suivant depuis ce lien :
http://redmine.nmid-plugins.de/projects ... dcreatepdf
• v05_html_tree_087e.tgz
• v03_tree_087e.tgz
• v03_graph_087e.tgz
• nmidCreatePDF_v0.84_full.tgz
Copier les fichiers suivant dans le répertoire de Cacti :
cp v03_tree_087e.tgz /var/www/html/cacti
cp v05_html_tree_087e.tgz /var/www/html/cacti
cp v03_graph_087e.tgz /var/www/html/cacti
Extraire les archives dans le repertoire :
# tar -xzvpf v03_tree_087e.tgz
# tar -xzvpf v05_html_tree_087e.tgz
# tar -xzvpf v03_graph_087e.tgz
Ensuite, entrez dans le répertoire plugins/, copiez y l’archive nmidCreatePDF_v0.84_full.tgz et décompressez là.
cp nmidCreatePDF_v0.84_full.tgz /var/www/html/cacti/plugins
# tar -xzvpf nmidCreatePDF_v0.84_full.tgz
Certains paramètres de l’installation de PHP sont à vérifier. Créez un fichier .php contenant le code suivant :
< ?php
phpinfo()
?>
Placez le fichier dans /var/www/html puis lancez le depuis votre navigateur :
http://votre-serveur/nom-du-fichier.php.
Une page s’affiche avec les différentes informations de PHP et de ses modules. Vérifiez l’information suivante : Thread Safety : disabled
Passez le paramètre enable_dl à On dans le fichier /etc/php.ini.
Maintenant, il vous faut mettre en place les fichiers ixed. Pour ce faire, rendez vous sur le site Source Guardian : http://www.sourceguardian.com/ixeds/ et téléchargez l’archive pour Linux_x86-32 (dans notre cas) en tar.gz.
Décompressez-y l’archive dans un répertoire temporaire :
cd /tmp
tar -xvzf ixed4.lin.x86-32.tar.gz
Copiez le fichier : ixed.5.1.lin dans /usr/lib/php/modules/. Le fichier à copier peut varier selon la version de php, dans notre cas :
[root@redhat-monitoring log]# php -v
PHP 5.1.6 (cli) (built: Dec 19 2006 11:18:44)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
Il s’agit d’une version 5.1 de php avec le mode ‘Thread Safe’ de désactiver donc le fichier à copier est ixed.5.1.lin:
cp /tmp/ixed.5.1.lin /usr/lib/php/modules/

Créer un fichier ‘cacti.ini’ dans le répertoire /etc/php.d/:
touch /etc/php.d/cacti.ini
Ajouter le contenu suivant au fichier:
;enable Sourceguardian extension module
extension=ixed.5.1.lin
Vérifiez que GD à bien été pris en compte par PHP en exécutant à nouveau la page phpinfo() précédemment créée. La section s’intitule ‘GD Support’
Redémarrez le daemon apache : /etc/init.d/httpd restart
Modifiez des droits d’accès aux répertoires suivant dans /var/www/cacti/plugins/nmidCreatePDF/ :
# chmod 777 tmp/
# chmod 777 images/*
Last edited by darkscarabaeus on Thu Mar 25, 2010 3:41 pm, edited 1 time in total.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hi,

FIrst of all, where did you get that tutorial ?

There's actually missing one step in there ...

You will need to also download the correct parallelGraphRetriever file for your system and place that into the nmidCreatePDF main dir. after that, do a "chmod +x" on the file.

That should do it.
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
darkscarabaeus
Posts: 14
Joined: Wed Mar 24, 2010 2:33 pm

Post by darkscarabaeus »

Hello

It's a friend who send me this tuto.
I ask him about the parallel graph and said me that on a redhat 5 he don't have to use parallel graph but on a ubuntu I have to use parallele graph.
Parallel graph is use for what ???

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

Post by phalek »

It's creating the graph images. WIthout that you will not be able to create graphs.

Only the "MRTG like Graph ( with the daily, weekly, monthly, yearly graph on it) does not use it.

SO, if it's not there, you will not be able to create a custom report.
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
darkscarabaeus
Posts: 14
Joined: Wed Mar 24, 2010 2:33 pm

Post by darkscarabaeus »

Ty I will test this day.

:)
darkscarabaeus
Posts: 14
Joined: Wed Mar 24, 2010 2:33 pm

Post by darkscarabaeus »

Re,

I have tried and no effect, graph are not include into the .pdf

Have you an other idea ??
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

check the debug page ( http://server/cacti/plugins/nmidCreatePDF/debug.php )

and enable the debug setting in the nmid settings.

Then look into the tmp dir for a workerfile and the images.

Also, make a screenshot of the report definition and sent it to me or post it here.

That'll make debuggin a bit easier.
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
darkscarabaeus
Posts: 14
Joined: Wed Mar 24, 2010 2:33 pm

Post by darkscarabaeus »

your URL is wrong (http://server ???)

I have enable debugging in cacti for nmidcreatePDF and when i generate a pdf of the localhost /tmp is empty but when I create a pdf with the last one hour graph cpu of localhost i have an image .png in /tmp directory.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Well, I do not know your server url, so please change the url to fit your environment ...
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
darkscarabaeus
Posts: 14
Joined: Wed Mar 24, 2010 2:33 pm

Post by darkscarabaeus »

The report:

Code: Select all

nmidCreatePDF Debug Page

Dir:	/var/www/html/cacti/plugins/nmidCreatePDF
Main Dir: 	/var/www/html/cacti/
PHP_SELF: 	/cacti/plugins/nmidCreatePDF/debug.php
Cacti URL: 	/cacti/
Edition: 	FREEWARE
License Expiry: 	never
File/Directory Settings:
tmp directory	/var/www/html/cacti/plugins/nmidCreatePDF/tmp
tmp directory exists	exists
tmp directory writeable	exists
Loaded PHP Modules:
mbstring	enabled
gd	enabled
SourceGuardian	enabled
zip	disabled
soap	disabled
Installed nmidCreatePDF Extenstions:
File parallelGraphRetriever	does not exists
File getSmokePingPath	does not exists
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

File parallelGraphRetriever does not exists

...

So, where did you put that file then ??
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
darkscarabaeus
Posts: 14
Joined: Wed Mar 24, 2010 2:33 pm

Post by darkscarabaeus »

I have tried with parallelGraphRetriever (see a post before) but it doesnt work
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Can we have a remote session using teamviewer, so you can show me the system ?

You can download the support client from here:

http://www.network-outsourcing.de/support-client.html

Run it and email me the ID and Password to: support at nmid-plugins.de ( replace the " at " with @ )
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
darkscarabaeus
Posts: 14
Joined: Wed Mar 24, 2010 2:33 pm

Post by darkscarabaeus »

I can't give access because it is enterprise server, i don't have rights.

I give screenshoot when the generation of pdf work and fail.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I don't want access to the server itself, but to your workstation. That way I can have a look while you use cacti/look into the system and I only ask silly questions ...
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 1 guest