Link not rendering color (grey) -- solved

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
marcosramos
Posts: 21
Joined: Tue Nov 14, 2006 5:04 am

Link not rendering color (grey) -- solved

Post by marcosramos »

After a few Links created I started to create links before others because of ones beeing over the others (layer like).

Anyways, some of them are shown in grey like they have no traffic. Like the picture 1 shows.
Other times only half the link is *rendered* (like picture 2)

Anyways, when I hover the mouse at it, it shows the correct graph and there's traffic.

Any ideas about it ?

memory_limit on both php.ini (cli and apache's) is set to 64mb ram. As the box got 2gb ram (quite enough)

The map picture is 1100x800 +-

Great work on this great tool!
Attachments
Picture 2
Picture 2
link_not_rendering_2.JPG (101.63 KiB) Viewed 8926 times
Picture 1
Picture 1
link_not_rendering.JPG (11.79 KiB) Viewed 8926 times
Last edited by marcosramos on Thu Aug 23, 2007 9:03 am, edited 1 time in total.
cacti v0.8.7b
cactid v0.8.6i/pa v2.1/php weathermap v0.95b/monitor v0.8.2/(...)
SLES 10
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

If your SCALE lines don't cover the full 0-100% range, you can get white links. If you are getting exactly 0, then you can get grey ones.

Be aware that 0->1 and 2->3 doesn't cover 1.3, for example :-)

Check your cacti.log though - I think you'll see some warning in this situation.

If you are getting 0 and you don't expect to, it might be that the DS names are different for those RRDs. That sounds unlikely in your situation, but again, there would be a warning in the cacti.log
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!)
marcosramos
Posts: 21
Joined: Tue Nov 14, 2006 5:04 am

Post by marcosramos »

Hey Howie,

Thanks for that quick help. Yes indeed I had some issues in the config that needed correction.
Anyways, why, in some cases, the link is only half rendered and some other times full rendered ?
cacti v0.8.7b
cactid v0.8.6i/pa v2.1/php weathermap v0.95b/monitor v0.8.2/(...)
SLES 10
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

marcosramos wrote: Anyways, why, in some cases, the link is only half rendered and some other times full rendered ?
I don't really understand what you mean here. Apart from being white, those links look normal 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!)
marcosramos
Posts: 21
Joined: Tue Nov 14, 2006 5:04 am

Post by marcosramos »

Howie,

Nevermind, the error just confused me and I've got a load of work.

I'm greatful for your help! Thank you very much and keep up the good work ;)
cacti v0.8.7b
cactid v0.8.6i/pa v2.1/php weathermap v0.95b/monitor v0.8.2/(...)
SLES 10
marcosramos
Posts: 21
Joined: Tue Nov 14, 2006 5:04 am

once again

Post by marcosramos »

Howie:

Afterall I was not work-drunk :)

There's a picture of what I meant.
There is traffic, there are no errors on the log but half the link is displayed in white color. Seems it is *random*...

memory_limit is now set with 128mb ram (apache was restarted after).

EDIT: The next weathermap appeared like pic 2

EDIT2: There is always traffic on those links. Noticeable links.
Attachments
Pic 2
Pic 2
link_not_rendering_4.JPG (102.38 KiB) Viewed 8895 times
Pic 1
Pic 1
link_not_rendering_3.JPG (83.62 KiB) Viewed 8895 times
cacti v0.8.7b
cactid v0.8.6i/pa v2.1/php weathermap v0.95b/monitor v0.8.2/(...)
SLES 10
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

What do your SCALE lines look like?
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!)
marcosramos
Posts: 21
Joined: Tue Nov 14, 2006 5:04 am

Post by marcosramos »

Code: Select all

SCALE DEFAULT 1 24   0 240 0   240 240 0
SCALE DEFAULT 25 74   240 240 0   240 0 0
SCALE DEFAULT 75 100   240 0 0   15 15 15
EDIT: Do i need to set 1 24 to 0 24 ?

DUH .. that might do it...
Attachments
scale
scale
scale.JPG (5.84 KiB) Viewed 8879 times
Last edited by marcosramos on Thu Aug 23, 2007 7:57 am, edited 1 time in total.
cacti v0.8.7b
cactid v0.8.6i/pa v2.1/php weathermap v0.95b/monitor v0.8.2/(...)
SLES 10
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Right. So if your value was 0.5% or 25.5% or 74.5%, then there would not be a matching line in the scale, and you would get white.

Try:

Code: Select all

SCALE DEFAULT 0 25  0 240 0   240 240 0
SCALE DEFAULT 25 75   240 240 0   240 0 0
SCALE DEFAULT 75 100   240 0 0   15 15 15 
instead.
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!)
marcosramos
Posts: 21
Joined: Tue Nov 14, 2006 5:04 am

Post by marcosramos »

Ok mate that should do it.

Thanks for the support! :)

Anyways for a 0% traffic usage could i set

SCALE 0 0 some color
SCALE 0 25 other color ?

So that real 0% is in <some color> and >0% is in <other color> ?
cacti v0.8.7b
cactid v0.8.6i/pa v2.1/php weathermap v0.95b/monitor v0.8.2/(...)
SLES 10
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

marcosramos wrote:Ok mate that should do it.

Thanks for the support! :)

Anyways for a 0% traffic usage could i set

SCALE 0 0 some color
SCALE 0 25 other color ?

So that real 0% is in <some color> and >0% is in <other color> ?
Yes. That's correct.
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!)
marcosramos
Posts: 21
Joined: Tue Nov 14, 2006 5:04 am

Post by marcosramos »

Code: Select all

SCALE DEFAULT 0 255 255 255 [b]< real 0%[/b]
SCALE DEFAULT 0 1 165 249 165 0 240 0 [b]< greater than 0% until 1%[/b]
SCALE DEFAULT 1 25 0 240 0 240 240 0 [b]< and so on...[/b]
SCALE DEFAULT 25 75 240 240 0 240 0 0
SCALE DEFAULT 75 100 240 0 0 15 15 15
The problem is: when a link is reall 0% (down for example) it takes the 2nd value and not the 1st...
If you want i can send another screenshot.
cacti v0.8.7b
cactid v0.8.6i/pa v2.1/php weathermap v0.95b/monitor v0.8.2/(...)
SLES 10
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

marcosramos wrote:

Code: Select all

SCALE DEFAULT 0 255 255 255 [b]< real 0%[/b]
[/quote]

that should be
[code]
SCALE DEFAULT 0 0 255 255 255
(TWO zeros). You should see in the cacti.log that the first line is currently being ignored, because it's invalid.
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!)
marcosramos
Posts: 21
Joined: Tue Nov 14, 2006 5:04 am

Post by marcosramos »

great great great! ;)

Perfect now mate!

All perfect!

Thank you very much once again!
cacti v0.8.7b
cactid v0.8.6i/pa v2.1/php weathermap v0.95b/monitor v0.8.2/(...)
SLES 10
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests