error opening the file: tmp/791.png

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
milleryuan
Posts: 5
Joined: Mon Mar 30, 2009 7:59 pm

error opening the file: tmp/791.png

Post by milleryuan »

I installed the new version(nmidCreatePDF_v0.3a2.tgz) today, my Cacti version is 0.87b, I have two question:
1.I got a PDF file but have no graph show there, it's "error opening the file: tmp/791.png", I try to use "create_image.php 791 0 1237298394 1237384794 100 800 > tmp/791.png " to create a graph by manual, it's succeed, and it can be show in IE, Could you please help me to check it?

2.I can used "submit" button in the first page(graph_view.php), but if I click my graph going to second page(graph.php), I can see that check box only, and the submit button missed. Is it by design?

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

Re: error opening the file: tmp/791.png

Post by phalek »

milleryuan wrote: 1.I got a PDF file but have no graph show there, it's "error opening the file: tmp/791.png", I try to use "create_image.php 791 0 1237298394 1237384794 100 800 > tmp/791.png " to create a graph by manual, it's succeed, and it can be show in IE, Could you please help me to check it?
is the tmp dir writeable by apache ? try

Code: Select all

cd /path/to/cacti/plugins/nmidCreatePDF
chown root.apache tmp/
chmod 665 tmp/
it may be that it is wwwrun in your case instead of apache ...

If you extract the plugin with

Code: Select all

tar -xzvpf nmidCreatePDF_v0.3a2.tgz
it should set the permissions correctly ( -p does that ...)
milleryuan wrote: 2.I can used "submit" button in the first page(graph_view.php), but if I click my graph going to second page(graph.php), I can see that check box only, and the submit button missed. Is it by design?
It is by design. If you look at the roadmap for v0.4 you will see that it will be included there ( Feature #26 )
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 0 guests