Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Mar 25, 2017 12:42 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 46 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: No graphs on reports with nmidCreatePDF
PostPosted: Mon May 03, 2010 12:00 pm 
Offline
Cacti User

Joined: Mon May 03, 2010 11:48 am
Posts: 71
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:

Quote:
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:
Quote:
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:

Quote:
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...


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 03, 2010 12:20 pm 
Offline
Cacti User

Joined: Mon May 03, 2010 11:48 am
Posts: 71
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?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2010 12:05 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2564
Location: Kressbronn, Germany
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 Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2010 12:17 pm 
Offline
Cacti User

Joined: Mon May 03, 2010 11:48 am
Posts: 71
Hi,
I have tried to create a symlink for parallelGraphRetriever.exe to parallelGraphRetriever but it does not work anyway.....


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2010 4:10 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2564
Location: Kressbronn, Germany
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 Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 20, 2010 9:36 am 
Offline

Joined: Thu May 20, 2010 8:58 am
Posts: 16
Location: Switzerland
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:

Quote:
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 20, 2010 9:47 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2564
Location: Kressbronn, Germany
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 Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2010 8:10 am 
Offline
Cacti User

Joined: Mon May 03, 2010 11:48 am
Posts: 71
phalek wrote:
cool, 2 independant reports for the same problem.. I wonder if both systems are running ubuntu :-?


Hi,
I'm using OpenSuse (unfortunatelly.....)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2010 8:19 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2564
Location: Kressbronn, Germany
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 Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 7:50 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2564
Location: Kressbronn, Germany
Hi,

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

Code:
php -r "echo PHP_OS;";

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 8:09 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2564
Location: Kressbronn, Germany
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 122 times

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
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
Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 21, 2010 8:01 am 
Offline

Joined: Thu May 20, 2010 8:58 am
Posts: 16
Location: Switzerland
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 5748 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 21, 2010 8:05 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2564
Location: Kressbronn, Germany
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 Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 21, 2010 8:30 am 
Offline

Joined: Thu May 20, 2010 8:58 am
Posts: 16
Location: Switzerland
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:
/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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 21, 2010 8:33 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2564
Location: Kressbronn, Germany
Would you be available in about 4 to 5 hours ?

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 46 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group