Links are not calculated and colored

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
FredV
Posts: 6
Joined: Wed Jan 15, 2014 5:44 am

Links are not calculated and colored

Post by FredV »

Hi everyone,

I have some problems relative to the links display.
My map contains only two nodes and a link.

The two nodes represents HP Switches with 1 gigabits port and the link is a fiber optic connection between them with in average 400 Mb/s.
Graph for the ports are available through Cacti and the nodes are up.
The bandwidth is set to "1G" (also tried 1000M, no difference).
I use cacti 08.8a / weathermap 0.97a.

The problems :
The link stay gray, no calculation of the data transferred.

In the log, I've got several "weathermap warnings" :
RRDTool can't be found. >>> Path in cacti settings is correct and rrdtool correctly use by cacti. (RRDTool version 1.3.8)
LINK sw1-sw2, target: ... was recognised as a valid TARGET by a plugin that is unable to run (WeatherMapDataSource_rrd) [WMWARN07] >> I guess this second warning is produce by the first one.

I'm stuck really...
If anyone can point me to the right direction, I'll be glad.
FredV // -Native Language: french (so excuse my poor english...), -Location: Belgium, Daily activity: System Administrator Junior
----------
Devices:~200, Graphs:~600
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Links are not calculated and colored

Post by Howie »

Windows or Unix/Linux? (which distribution?)

This smells like Debian or Ubuntu to me.
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!)
FredV
Posts: 6
Joined: Wed Jan 15, 2014 5:44 am

Re: Links are not calculated and colored

Post by FredV »

Yes. Ubuntu server 12.04.
You have an idéal to solve this?
FredV // -Native Language: french (so excuse my poor english...), -Location: Belgium, Daily activity: System Administrator Junior
----------
Devices:~200, Graphs:~600
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Links are not calculated and colored

Post by Howie »

No quick answer, but I think I know where to look.

Did you install Cacti from source or from packages?
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!)
FredV
Posts: 6
Joined: Wed Jan 15, 2014 5:44 am

Re: Links are not calculated and colored

Post by FredV »

Install from source... but it was a long time ago, I can't really remember the details.
FredV // -Native Language: french (so excuse my poor english...), -Location: Belgium, Daily activity: System Administrator Junior
----------
Devices:~200, Graphs:~600
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Links are not calculated and colored

Post by Howie »

OK - I asked because the Ubuntu packages have some changes to paths.

I'll take a look at this tonight.
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!)
FredV
Posts: 6
Joined: Wed Jan 15, 2014 5:44 am

Re: Links are not calculated and colored

Post by FredV »

Ok, I have search the server which is used to test things & monitoring actually and there is two rrdtool installed. First one (which is specified in Cacti settings) in /usr/bin/rrdtool and an another one in /opt/rrdtool-1.4.7/bin/rrdtool.

Do you think that this is the problem?
FredV // -Native Language: french (so excuse my poor english...), -Location: Belgium, Daily activity: System Administrator Junior
----------
Devices:~200, Graphs:~600
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Links are not calculated and colored

Post by Howie »

FredV wrote:Ok, I have search the server which is used to test things & monitoring actually and there is two rrdtool installed. First one (which is specified in Cacti settings) in /usr/bin/rrdtool and an another one in /opt/rrdtool-1.4.7/bin/rrdtool.

Do you think that this is the problem?
I don't think so. Weathermap uses the Cacti settings, so they should match.

You can try to "fix" this by changing lib/poller-common.php though:

Code: Select all

                                        $rrdtool_path =  read_config_option("path_rrdtool");
CHANGE TO:
                                        $rrdtool_path =  "/usr/bin/rrdtool";
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!)
FredV
Posts: 6
Joined: Wed Jan 15, 2014 5:44 am

Re: Links are not calculated and colored

Post by FredV »

I tried the "fix". Nothing has change...
FredV // -Native Language: french (so excuse my poor english...), -Location: Belgium, Daily activity: System Administrator Junior
----------
Devices:~200, Graphs:~600
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Links are not calculated and colored

Post by Howie »

Interesting. Are you running weathermap manually, or from the Cacti poller?
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!)
FredV
Posts: 6
Joined: Wed Jan 15, 2014 5:44 am

Re: Links are not calculated and colored

Post by FredV »

Cacti poller...



I don't get it... It should work right of the box, normally...
I first used Cacti/weathermap to keep track of the devices (~200 routers) status (available or not) on a map (green dot:up, red dot:down, blue dot:recovery, grey:unknown)... And it work perfectly. :)

Then later, we thought that I will be great to keep an eye on our core switches connections (those between our facilities and the datacenter)... Three nodes & two links between them... Unable to set this up... I am frustrated. :o
FredV // -Native Language: french (so excuse my poor english...), -Location: Belgium, Daily activity: System Administrator Junior
----------
Devices:~200, Graphs:~600
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Links are not calculated and colored

Post by Howie »

The host status is pulled from the Cacti database, not from rrd files. That is one difference...

I have been in Paris this weekend, but back now, so I'll try to construct a test for this issue tonight.
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 1 guest