Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post general support questions here that do not specifically fall into the Linux or Windows categories.
Moderators: Developers , Moderators
TFC
Cacti Pro User
Posts: 739 Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey
Post
by TFC » Mon Sep 29, 2003 3:28 am
Hi,
I try to use "HTML Export Path" settings.
I fill the blanks as
Code: Select all
/www/htdocs/cacti_83/export_images
Then I point my browser the same directory. But it is empty.
What must I do as additional action to see graph in this directory?
What should I expect then?
Thanks...
Note that,
my cacti directory.
And I use RH 7.3 , cacti 8.3a
raX
Lead Developer
Posts: 2243 Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:
Post
by raX » Thu Oct 02, 2003 12:55 am
Graphs are exported every five minutes when cmd.php runs, so you will not instantly see files here. You also must make sure the permissions on your 'export_images' directory allows cmd.php to create new files here. I would be willing to bet that this a permissions issue.
-Ian
TFC
Cacti Pro User
Posts: 739 Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey
Post
by TFC » Thu Oct 02, 2003 1:45 pm
raX wrote: Graphs are exported every five minutes when cmd.php runs, so you will not instantly see files here. You also must make sure the permissions on your 'export_images' directory allows cmd.php to create new files here. I would be willing to bet that this a permissions issue.
-Ian
I use cactid. Have you same idea for cactid?
moonman
Cacti User
Posts: 101 Joined: Sat Sep 06, 2003 10:25 am
Post
by moonman » Wed Nov 19, 2003 4:19 pm
I have the same problem with cactid on 0.84
what I do is to add a file with these comands from cmd.php in it
Code: Select all
include(dirname(__FILE__) . "/include/config.php");
include_once($config["base_path"] . "/lib/rrd.php");
include_once($config["base_path"] . "/lib/functions.php");
include_once($config["base_path"] . "/lib/graph_export.php");
/* dump static images/html file if user wants it */
graph_export();
and run it from cron
cdukes
Cacti User
Posts: 61 Joined: Tue Mar 26, 2002 1:25 pm
Location: Morrisville, NC
Contact:
Post
by cdukes » Thu Dec 04, 2003 2:45 pm
Thanks for your post!
Exactly what I was looking for...
Wonder why this function isn't part of cactid?
moonman wrote: I have the same problem with cactid on 0.84
what I do is to add a file with these comands from cmd.php in it
Code: Select all
include(dirname(__FILE__) . "/include/config.php");
include_once($config["base_path"] . "/lib/rrd.php");
include_once($config["base_path"] . "/lib/functions.php");
include_once($config["base_path"] . "/lib/graph_export.php");
/* dump static images/html file if user wants it */
graph_export();
and run it from cron
SeanLee
Posts: 44 Joined: Wed Oct 29, 2003 10:41 pm
Post
by SeanLee » Wed May 19, 2004 5:39 pm
cdukes wrote: Thanks for your post!
Exactly what I was looking for...
Wonder why this function isn't part of cactid?
moonman wrote: I have the same problem with cactid on 0.84
what I do is to add a file with these comands from cmd.php in it
Code: Select all
include(dirname(__FILE__) . "/include/config.php");
include_once($config["base_path"] . "/lib/rrd.php");
include_once($config["base_path"] . "/lib/functions.php");
include_once($config["base_path"] . "/lib/graph_export.php");
/* dump static images/html file if user wants it */
graph_export();
and run it from cron
Can you post the contents of the entire file? What type of file is it? Is it php? How do you invoke it?
moonman
Cacti User
Posts: 101 Joined: Sat Sep 06, 2003 10:25 am
Post
by moonman » Thu May 20, 2004 1:25 pm
just call it somethin like export.php and run it with
bty
tnx for the question it remind me i forgot to recreate the file after upgrading to 0.85a
SeanLee
Posts: 44 Joined: Wed Oct 29, 2003 10:41 pm
Post
by SeanLee » Thu May 20, 2004 2:56 pm
moonman wrote: just call it somethin like export.php and run it with
bty
tnx for the question it remind me i forgot to recreate the file after upgrading to 0.85a
OK, I put <b>exactly</b> what you have above into a file called export.php and issued <i>php export.php</i> and it spits back the following:
Code: Select all
Content-type: text/html
X-Powered-By: PHP/4.3.2
include(dirname(__FILE__) . "/include/config.php");
include_once($config["base_path"] . "/lib/rrd.php");
include_once($config["base_path"] . "/lib/functions.php");
include_once($config["base_path"] . "/lib/graph_export.php");
/* dump static images/html file if user wants it */
graph_export();
Here is the entire contents of my export.php file (a total of 7 lines):
Code: Select all
include(dirname(__FILE__) . "/include/config.php");
include_once($config["base_path"] . "/lib/rrd.php");
include_once($config["base_path"] . "/lib/functions.php");
include_once($config["base_path"] . "/lib/graph_export.php");
/* dump static images/html file if user wants it */
graph_export();
Still no graphs get exported. Basically, it just echo's the contents of export.php.
-Sean
julia
Posts: 2 Joined: Thu Aug 19, 2004 9:13 am
Post
by julia » Thu Aug 19, 2004 9:17 am
SeanLee wrote:
Still no graphs get exported. Basically, it just echo's the contents of export.php.
Did you find out how it works?
It would be really important for me!
Thanks,
Julia.
Users browsing this forum: No registered users and 2 guests