|
|
| Author |
Message |
runlikeanantelope
Joined: 15 Feb 2007 Posts: 42
|
Posted: Wed Mar 14, 2007 2:17 pm Post subject: [SOLVED] editor-config.php - cannot find graphs to use |
|
|
I should have saved the original file before altering it, but I'm not sure if what I added is corrected. Can someone paste what the original file looks like so I can see what I did wrong?
[root@localhost weathermap]# more editor-config.php
<?php
// CHANGE: Uncomment one of the lines below and change it to point to th
e base directory
// of your cacti install to enable cacti support in the editor
// $cacti_base = 'C:/XAMPP/xampp/htdocs/cacti';
$cacti_base = '/var/www/html/cacti';
if(is_dir($cacti_base))
{
// include the cacti-config, so we know about the database
include_once($cacti_base."/include/config.php");
// CHANGE: this to be the URL of the base of your Cacti install
// it MUST end with a / character!
$config['base_url']='http://172.30.208.33/cacti/';
}
// where to look for config files. The directory must be readable
// AND writable by whatever user your webserver runs as.
// this name is correct if you are using the Cacti plugin
//
// NOTE: You MIGHT need to use the full path to the configs folder here,
// (it seems to depend on the PHP or OS version)
// $mapdir= $cacti_base.'/plugins/weathermap/configs';
$mapdir='configs';
Last edited by runlikeanantelope on Fri Mar 23, 2007 3:26 pm; edited 1 time in total |
|
| Back to top |
|
 |
elmer
Joined: 21 Oct 2006 Posts: 8
|
Posted: Thu Mar 15, 2007 2:01 pm Post subject: |
|
|
| Could you say something else about your problem? |
|
| Back to top |
|
 |
runlikeanantelope
Joined: 15 Feb 2007 Posts: 42
|
Posted: Fri Mar 23, 2007 3:26 pm Post subject: |
|
|
I fixed it, I had the ' instead of " in this line.
$cacti_base = "/var/www/html/cacti"; |
|
| Back to top |
|
 |
danwdoo
Joined: 26 Oct 2006 Posts: 37
|
Posted: Tue Jul 03, 2007 4:36 am Post subject: I am seeing the same issue since upgrading to .92 |
|
|
I tired changing the lines:
$cacti_base = "C:/inetpub/wwwroot/cacti";
$config['base_url']="http://servername/cacti/";
I changed the ' to " but it does not help. All my weathermap links to graphs end up with the URL:
http://servername/...
instead of:
http://servername/cacti/...
So my links are always broken. It seems to ignore the base_url setting. Any ideas what I may have missed?
Thanks!
Danny |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1969 Location: United Kingdom
|
Posted: Tue Jul 03, 2007 5:30 am Post subject: Re: I am seeing the same issue since upgrading to .92 |
|
|
| danwdoo wrote: | I tired changing the lines:
$cacti_base = "C:/inetpub/wwwroot/cacti";
$config['base_url']="http://servername/cacti/";
I changed the ' to " but it does not help. All my weathermap links to graphs end up with the URL:
http://servername/...
instead of:
http://servername/cacti/...
So my links are always broken. It seems to ignore the base_url setting. Any ideas what I may have missed?
Thanks!
Danny |
If this is 0.92, and you are changing editor-config.php, then you missed that the format of editor-config.php changed. Check editor-config.php-dist to see how it should look. |
|
| Back to top |
|
 |
|