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';
[SOLVED] editor-config.php - cannot find graphs to use
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 63
- Joined: Thu Feb 15, 2007 12:08 pm
[SOLVED] editor-config.php - cannot find graphs to use
Last edited by runlikeanantelope on Fri Mar 23, 2007 3:26 pm, edited 1 time in total.
-
- Cacti User
- Posts: 63
- Joined: Thu Feb 15, 2007 12:08 pm
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
$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
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: I am seeing the same issue since upgrading to .92
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.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
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Who is online
Users browsing this forum: No registered users and 0 guests