No graphs on reports with nmidCreatePDF

Support for the Plugin Architecture

Moderators: Developers, Moderators

hmorandell
Cacti User
Posts: 73
Joined: Mon May 03, 2010 11:48 am

No graphs on reports with nmidCreatePDF

Post by hmorandell »

Hello,

I have setup the nmidCreatePDF plugin on my site. I have folleowed all suggestions (I think I did it right, but it is not working. Here the output of the debug file:
nmidCreatePDF Debug Page

Dir: /srv/www/htdocs/cacti/plugins/nmidCreatePDF
Main Dir: /srv/www/htdocs/cacti/
PHP_SELF: /cacti/plugins/nmidCreatePDF/debug.php
Cacti URL: /cacti/
Edition: FREEWARE
License Expiry: never
File/Directory Settings:
tmp directory /srv/www/htdocs/cacti/plugins/nmidCreatePDF/tmp
tmp directory exists exists
tmp directory writeable exists
Loaded PHP Modules:
mbstring enabled
gd enabled
SourceGuardian enabled
zip enabled
soap enabled
Installed nmidCreatePDF Extenstions:
File parallelGraphRetriever exists
File getSmokePingPath does not exists
When I look in the apache error logfile, I keep getting always the following error:
sh: .parallelGraphRetriever.exe: command not found
I have a linux server and I have downloaded the windows version of the parallelGraphRetriever file. I have no idea where the "parallelGraphRetriever.exe" come from....

I get the pdf file, but there is no image in it. The files have all the right permissions. In the "tmp" folder I get a workerfile, but no images.
The workerfile always contains something similar like:
graph@php create_image.php 32 5 1272819253 1272905653 120 600 > tmp/1272905655-61-1272819253-1272905653/32.png@DEHN_20000003338 - Traffic@@tmp/1272905655-61-1272819253-1272905653/32.png@32
graph@php create_image.php 33 5 1272819253 1272905653 120 600 > tmp/1272905655-61-1272819253-1272905653/33.png@DEHN_20000003338 - Traffic@@tmp/1272905655-61-1272819253-1272905653/33.png@33
graph@php create_image.php 602 5 1272819253 1272905653 120 500 > tmp/1272905655-61-1272819253-1272905653/602.png@DEHN_20000003338 - Smoke Ping@@tmp/1272905655-61-1272819253-1272905653/602.png@602
Anyone an idea what I'm doing wrong? I have a certain cacti and php knowledge, but this time I'm stuck and don't know what else to do...
hmorandell
Cacti User
Posts: 73
Joined: Mon May 03, 2010 11:48 am

Post by hmorandell »

I found now that when I click on an image and generate the pdf report from there (graph.php), the report works and I get the graphs correctly in the pdf.
But generating the report from graph_view.php I get always a blank report.

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

Post by phalek »

I will have a look into this. There seems to be a problem with the OS detection. It may be enough for now to just rename the parallelGraphRetriever file to the parallelGraphRetriever.exe name ...
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
hmorandell
Cacti User
Posts: 73
Joined: Mon May 03, 2010 11:48 am

Post by hmorandell »

Hi,
I have tried to create a symlink for parallelGraphRetriever.exe to parallelGraphRetriever but it does not work anyway.....
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

can you zip the nmidCreatePDF directory and send me the file to support @ urban-software.de
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
catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

Post by catcha8 »

Hello,

For information, I have exactly the same problem than hmorandell.
My cacti installation is running under Ubuntu server 10.4 64 bits.

Everything is fine on the nmidCreatePDF debug page but the "sh .parallelGraphRetriever.exe: command not found" is logged under apache error log everytime I try to generate a report from graph_view.php or from nmidCreatePDF_GenerateReport_now.php.

No problem with the graph.php

Here is my Host Info in case it could help:
Cacti Version - 0.8.7e
Plugin Architecture - 2.6
Poller Type - Cactid v
Server Info - Linux 2.6.32-21-server
Web Server - Apache/2.2.14 (Ubuntu)
PHP - 5.3.2-1ubuntu4
PHP Extensions - Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, session, iconv, json, mbstring, SPL, standard, posix, Reflection, Phar, shmop, SimpleXML, soap, sockets, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, apache2handler, SourceGuardian, gd, mysql, mysqli, PDO, pdo_mysql, snmp, mhash
MySQL - 5.1.41-3ubuntu12
RRDTool - 1.3.8
SNMP - 5.4.2.1
Plugins
  • SuperLinks (superlinks - v0.8)
    PHP Network Weathermap (weathermap - v0.97a)
    Host Info (hostinfo - v0.2)
    Network Management Inventory Database (nmid - v0.3.9a)
    NMID CreatePDF Plugin (nmidCreatePDF - v0.84)
    NMID WebService Plugin (nmidWebService - v0.7)
Regards
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

cool, 2 independant reports for the same problem.. I wonder if both systems are running ubuntu :-?
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
hmorandell
Cacti User
Posts: 73
Joined: Mon May 03, 2010 11:48 am

Post by hmorandell »

phalek wrote:cool, 2 independant reports for the same problem.. I wonder if both systems are running ubuntu :-?
Hi,
I'm using OpenSuse (unfortunatelly.....)
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

anyone able to provide me access to the systems ? I can offer using Teamviewer ...
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 »

Hi,

Can you (both) execute the following on the CLI and provide me the results ?

Code: Select all

php -r "echo PHP_OS;";
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 »

I have created an enhanced debug.php file. Please download it here and replace the exiting one with it. Then point your browser to it and provide the output of the file to me. It will help in finding the problem of this error.
Attachments
debug_enchanced.tgz
(1.19 KiB) Downloaded 308 times
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
catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

Post by catcha8 »

Hi Phalek,

Thanks for your help.
The result of the php command just give me: Linux

And here is the result of the new debug.php (I only mask my hostname computer)

Regards
Attachments
NmidCreatePDFNewDebug.jpg
NmidCreatePDFNewDebug.jpg (71.97 KiB) Viewed 12719 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

ok, is there anything special to the system i need to be aware of ? If there's nothing special to it, I can try to reproduce it in a virtual Ubuntu 64bit system ...
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
catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

Post by catcha8 »

Well I guess no... But I remember something for the SourceGuardian module installation. There's 2 php.ini files for my installation, one for the CLI and one for the web server:

Code: Select all

/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini
Don't know if it can help.

If you prefer, I can give you access to my system.
Just give me information by mail.

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

Post by phalek »

Would you be available in about 4 to 5 hours ?
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