HTML Export Path

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

HTML Export Path

Post by TFC »

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,

Code: Select all

/www/htdocs/cacti_83/
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 »

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
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

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 »

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
User avatar
cdukes
Cacti User
Posts: 61
Joined: Tue Mar 26, 2002 1:25 pm
Location: Morrisville, NC
Contact:

Graph export from Cactid

Post by cdukes »

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

Re: Graph export from Cactid

Post by SeanLee »

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

This is the entire file

Post by moonman »

just call it somethin like export.php and run it with

Code: Select all

php export.php
bty
tnx for the question it remind me i forgot to recreate the file after upgrading to 0.85a :D
SeanLee
Posts: 44
Joined: Wed Oct 29, 2003 10:41 pm

Re: This is the entire file

Post by SeanLee »

moonman wrote:just call it somethin like export.php and run it with

Code: Select all

php export.php
bty
tnx for the question it remind me i forgot to recreate the file after upgrading to 0.85a :D
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

Re: This is the entire file

Post by julia »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests