Mouseover Data source Issue

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
Syngress
Posts: 26
Joined: Tue Apr 24, 2007 9:17 am

Mouseover Data source Issue

Post by Syngress »

Hi,

Another query from me :)

I have a link that runs almost down the right hand side of my map, now when I mouse over this link to display the usage graph it is displyed with half the grpah of the page to the right, is there anyway Weathermap can be made to show the popup to the left of the mouse pointer when on the right hand side of the screen and visa versa for the left hand side?

Thanks.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Mouseover Data source Issue

Post by Howie »

Syngress wrote:Hi,

Another query from me :)

I have a link that runs almost down the right hand side of my map, now when I mouse over this link to display the usage graph it is displyed with half the grpah of the page to the right, is there anyway Weathermap can be made to show the popup to the left of the mouse pointer when on the right hand side of the screen and visa versa for the left hand side?

Thanks.
Yes. Set the OVERLIBWIDTH and OVERLIBHEIGHT, and then weathermap has enough information to figure out that it needs to do this.

If all your graphs come from the same source (e.g. Cacti), then you can do this for all graphs at once by adding those two lines to the LINK DEFAULT section at the top of the config file.
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!)
Syngress
Posts: 26
Joined: Tue Apr 24, 2007 9:17 am

Post by Syngress »

Hi,

Yep that worked a treat.

Thanks,
cavver
Posts: 11
Joined: Tue Apr 24, 2007 3:17 am

Post by cavver »

I have the same problem , unfortunately this happens when I am near the bottom of the weathermap :(. OVERLIBWIDTH and OVERLIBHEIGHT, are set in the default link section .
Do you have any suggestions please ??
Btw , I love your plugin Howie !
MagicOneXXX
Cacti User
Posts: 59
Joined: Tue Dec 19, 2006 4:35 pm

Post by MagicOneXXX »

Howie:

I had the same issue as well. I remember playing around with it a while back, and the real issue is that when you try to force the graph to be on the left, above the mouse, the overlib covers up the link your hovering over, causing a loop or a blink effect.. Fooling around with the OVERLIBWIDTH and OVERLIBHEIGHT didn't fix this issue, the only resolution was to force the graph to the right (which looked bad)

I just played around with it again, this time looking in the overlib.js file. I made some changes and it fixed my issue. Here is the section I modified:
if (typeof ol_offsetx=='undefined') var ol_offsetx=10;
if (typeof ol_offsety=='undefined') var ol_offsety=40;
As you can see, I changed the ol_offsety to 40 instead of 10. This forces the overlib to be offset a bit more, pushing it above the mouse (NOTE: this also pushes the graph further down when the graph is below the mouse!). Voila, no more issues!

Obviously this isn't the place to make the change, since it's global; it should really be done within weathermap, perhaps on a per-link basis. Looking ahead, to v1.0 (or whatever version your moving towards), you might want to add an option to set the relx/y positions of the overlib. This would make them look better on a lot of maps (well at least mine :lol:).

Hope this helps!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests