[SOLVED] editor-config.php - cannot find graphs to use

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
runlikeanantelope
Cacti User
Posts: 63
Joined: Thu Feb 15, 2007 12:08 pm

[SOLVED] editor-config.php - cannot find graphs to use

Post by runlikeanantelope »

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.
elmer
Posts: 8
Joined: Sat Oct 21, 2006 8:07 pm
Contact:

Post by elmer »

Could you say something else about your problem?
runlikeanantelope
Cacti User
Posts: 63
Joined: Thu Feb 15, 2007 12:08 pm

Post by runlikeanantelope »

I fixed it, I had the ' instead of " in this line.

$cacti_base = "/var/www/html/cacti";
danwdoo
Cacti User
Posts: 50
Joined: Thu Oct 26, 2006 11:42 pm

I am seeing the same issue since upgrading to .92

Post by danwdoo »

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
User avatar
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

Post by Howie »

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

Who is online

Users browsing this forum: No registered users and 0 guests