|
|
| Author |
Message |
Lemmy78
Joined: 04 Apr 2006 Posts: 25
|
Posted: Mon Oct 29, 2007 8:56 am Post subject: Cacti node link not avalaible in weathermap |
|
|
Hi,
I installed Cacti 0.87 and weathermap 0.93 on a test server to test weathermap.
Weathermap seems to be well installed with editor. I can create map and add nodes. But in the properties of node I got no link to cacti hosts database.
My editor-config.php has the following settings :
$cacti_base = "/var/www/cacti";
$cacti_url = "http://localhost/cacti/";
the directory cacti in /va/www is a symlink to /usr/local/cacti. I 've also tested with $cacti_base = " /usr/local/cacti" with success.
I browsed the forum check, found threads, check my settinhs withou finding the solution.
If someone can help ?
Thanks
Regards |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Oct 29, 2007 9:19 am Post subject: Re: Cacti node link not avalaible in weathermap |
|
|
| Lemmy78 wrote: | Hi,
I installed Cacti 0.87 and weathermap 0.93 on a test server to test weathermap.
Weathermap seems to be well installed with editor. I can create map and add nodes. But in the properties of node I got no link to cacti hosts database.
My editor-config.php has the following settings :
$cacti_base = "/var/www/cacti";
$cacti_url = "http://localhost/cacti/";
the directory cacti in /va/www is a symlink to /usr/local/cacti. I 've also tested with $cacti_base = " /usr/local/cacti" with success.
I browsed the forum check, found threads, check my settinhs withou finding the solution.
If someone can help ?
Thanks
Regards |
http://www.network-weathermap.com/node/102 |
|
| Back to top |
|
 |
Lemmy78
Joined: 04 Apr 2006 Posts: 25
|
Posted: Mon Oct 29, 2007 9:42 am Post subject: |
|
|
It doesn't seem to be my problem. I can create map and add node but I've no link to cacti host database.
The weathermap tab is present. But to be sure disable it an re-enable but still no link.
To be sure to have well unsderstood the cacti link function : this function should appear in the node config pane prperties when I click on node in the ditor no ? |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Oct 29, 2007 10:03 am Post subject: |
|
|
The problem described there is that the editor's 'pick from cacti' links don't work in 0.8.7. Isn't that what you have?  |
|
| Back to top |
|
 |
Lemmy78
Joined: 04 Apr 2006 Posts: 25
|
Posted: Mon Oct 29, 2007 10:15 am Post subject: |
|
|
Maybe my understanding of english language has to be improved
but I understand in the comments that the problem is about missing weathermap tab in cacti.
Reading your post at the top should effectively regarding as my problem.
You don"t know what is the filename change in 0.87 ?
Thanks
Regards |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Oct 29, 2007 10:22 am Post subject: |
|
|
| Sure. config.php is now called global.php in a number of places. |
|
| Back to top |
|
 |
Lemmy78
Joined: 04 Apr 2006 Posts: 25
|
Posted: Mon Oct 29, 2007 10:59 am Post subject: |
|
|
Do you mean that if I set global.php it should work ?
But I've to told to cacti use global.php instead of congifg.php ? if yes where
Thanks again |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Oct 29, 2007 12:20 pm Post subject: |
|
|
| Lemmy78 wrote: | Do you mean that if I set global.php it should work ?
But I've to told to cacti use global.php instead of congifg.php ? if yes where
Thanks again |
Please wait for the next Weathermap release. |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Mon Oct 29, 2007 2:54 pm Post subject: |
|
|
Howie, et al.
Quick and easy fix for this problem.
edit your editor-config.php file in the plugins/weathermap directory change the following line:
| Code: |
{
// 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']='/';
}
|
Change the config.php to global.php and you get your datasource selector back in the editor. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Oct 29, 2007 3:03 pm Post subject: |
|
|
| streaker69 wrote: | Howie, et al.
Quick and easy fix for this problem.
edit your editor-config.php file in the plugins/weathermap directory change the following line:
| Code: |
{
// 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']='/';
}
|
Change the config.php to global.php and you get your datasource selector back in the editor. |
You shouldn't have that include in your editor-config.php, in 0.92 and later... that's odd. It should be warning you every time you run the editor about that.
Same change, but in editor.php and cacti-pick.php
There will be a backwards-compatible fix in 0.94 |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Mon Oct 29, 2007 3:09 pm Post subject: |
|
|
| Howie wrote: | | streaker69 wrote: | Howie, et al.
Quick and easy fix for this problem.
edit your editor-config.php file in the plugins/weathermap directory change the following line:
| Code: |
{
// 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']='/';
}
|
Change the config.php to global.php and you get your datasource selector back in the editor. |
You shouldn't have that include in your editor-config.php, in 0.92 and later... that's odd. It should be warning you every time you run the editor about that.
Same change, but in editor.php and cacti-pick.php
There will be a backwards-compatible fix in 0.94 |
It looks like it works because you're including the editor-config.php in the cacti-pick.php. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Oct 29, 2007 3:33 pm Post subject: |
|
|
| streaker69 wrote: | | It looks like it works because you're including the editor-config.php in the cacti-pick.php. |
OK, but it shouldn't because editor-config.php doesn't contain the cacti include anymore (check editor-config.php-dist, and you'll see what I mean). |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Mon Oct 29, 2007 3:37 pm Post subject: |
|
|
| Howie wrote: | | streaker69 wrote: | | It looks like it works because you're including the editor-config.php in the cacti-pick.php. |
OK, but it shouldn't because editor-config.php doesn't contain the cacti include anymore (check editor-config.php-dist, and you'll see what I mean). |
Then chances are through all my upgrades of Weathermap since way back when I now have some morphed version running, and actually runs well.
But you know me, whenever I find something odd, I normally try to fix it myself before I come to you for a fix.  |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Oct 29, 2007 5:18 pm Post subject: |
|
|
I think there are probably quite a few mutant editor-config.php files around - I changed it a few versions ago to make it more obvious what to edit, but because it doesn't overwrite the old one on an upgrade, it hasn't really taken hold yet.
The only reason I made the point was that if there was going to be an answer you could find in the forum by searching, it would be best if it worked for anyone  |
|
| Back to top |
|
 |
|