No graphs on reports with nmidCreatePDF

Support for the Plugin Architecture

Moderators: Moderators, Developers

Author
Message
hmorandell
Cacti User
Posts: 72
Joined: Mon May 03, 2010 11:48 am

No graphs on reports with nmidCreatePDF

#1 Post by hmorandell » Mon May 03, 2010 12:00 pm

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:
[email protected] create_image.php 32 5 1272819253 1272905653 120 600 > tmp/1272905655-61-1272819253-1272905653/[email protected]_20000003338 - [email protected]@tmp/1272905655-61-1272819253-1272905653/[email protected]
[email protected] create_image.php 33 5 1272819253 1272905653 120 600 > tmp/1272905655-61-1272819253-1272905653/[email protected]_20000003338 - [email protected]@tmp/1272905655-61-1272819253-1272905653/[email protected]
[email protected] create_image.php 602 5 1272819253 1272905653 120 500 > tmp/1272905655-61-1272819253-1272905653/[email protected]_20000003338 - Smoke [email protected]@tmp/1272905655-61-1272819253-1272905653/[email protected]
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: 72
Joined: Mon May 03, 2010 11:48 am

#2 Post by hmorandell » Mon May 03, 2010 12:20 pm

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

#3 Post by phalek » Thu May 13, 2010 12:05 pm

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 : 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
[/size]

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

#4 Post by hmorandell » Thu May 13, 2010 12:17 pm

Hi,
I have tried to create a symlink for parallelGraphRetriever.exe to parallelGraphRetriever but it does not work anyway.....

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

#5 Post by phalek » Thu May 13, 2010 4:10 pm

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 : 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
[/size]

catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

#6 Post by catcha8 » Thu May 20, 2010 9:36 am

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

#7 Post by phalek » Thu May 20, 2010 9:47 am

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 : 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
[/size]

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

#8 Post by hmorandell » Wed Jul 14, 2010 8:10 am

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

#9 Post by phalek » Wed Jul 14, 2010 8:19 am

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 : 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
[/size]

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

#10 Post by phalek » Mon Jul 19, 2010 7:50 am

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 : 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
[/size]

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

#11 Post by phalek » Mon Jul 19, 2010 8:09 am

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 217 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 : 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
[/size]

catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

#12 Post by catcha8 » Wed Jul 21, 2010 8:01 am

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 6887 times

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

#13 Post by phalek » Wed Jul 21, 2010 8:05 am

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 : 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
[/size]

catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

#14 Post by catcha8 » Wed Jul 21, 2010 8:30 am

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

#15 Post by phalek » Wed Jul 21, 2010 8:33 am

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 : 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
[/size]

Post Reply