Popup with snmp device info in weathermap

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

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

Post by Howie »

The disappearing quickly thing sounds like what happens if you have overlibwidth and overlibheight set incorrectly, with just a graph.

I don't know what you'd set them to for the info page unless mgb has used a lot of css to make the page a definite size. You could just remove the settings for width and height, but then the info window would go off the side of the screen.
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!)
Leathon
Posts: 9
Joined: Wed Nov 11, 2009 7:31 am
Location: The Netherlands

Post by Leathon »

The textbox disappearing is indeed a issue with the OVERLIBGRAPH sizes. The config we use for this is:

Code: Select all

NOTES	<iframe width=\"400px\" height=\"350px\" src=\"/plugins/weathermap/info.php?node={node:this:cactiid}\"> </iframe>
OVERLIBGRAPH images/cisco-6509.PNG
OVERLIBHEIGHT 146
OVERLIBWIDTH 400
The issue we had was that the image we used to be displayed above the text field. The image wasent as wide as the text field. And as we used OVERLIBGRAPH for defining the sizes of the image, the textfield overlapped and ended up under your cursor. At that moment u dont have your cursor on the node and the textfield (including image) disappears. When its gone and u havent moved your cursor, u are on the node again and it starts loading everything again.

The fix for this is to make the image as wide as the text field (iframe width= and OVERLIBWIDTH). If these are the same (400 in our case) weathermap wil place the image and text field to either the right or the left of your cursor.

Heigth still is an issue tho, and I dont know if that can be fixed (the textfield can still fall below the screen, u can use the arrow keys to get there though).


Hope it helps,

Tom
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

Hi

Post by joseme »

I made some tests:

NOTES <h3><b>a commentary</b></h3> ---> it works

then I put

NOTES <iframe name="test" src="test_page.html"></iframe> -->it doesn't work (the pop up appears and disappears quickly...)


Seems like in WM 0.95b, the "iframe" tag doesn't work. is there another solution to fix this? ( because of I have several maps I dont want to update to 0.96 yet).
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

HI

Post by joseme »

Hi:

My trouble is solved!!, I explained.

In my default NODE settings I have (because I have small images):
OVERLIBWIDTH 200
OVERLIBHEIGHT 50

So,I put in my particular node a new OVERLIB..
OVERLIBWIDTH 400
OVERLIBHEIGHT 350

That's all and worked!!

Thanks a Lot Howie and Leathon!!!!!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

If you had 0.96a, you would be able to have a TEMPLATE so that some nodes have this and some don't. ;-)

But then again, 0.97 will be out any day.
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!)
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

colejv wrote:I was getting that by cutting and pasting the example above, On my setup I had to use

Code: Select all

NOTES <iframe width="400px" height="400px" src="/cacti/plugins/weathermap/info.php?node={node:this:cacti_id}"> </iframe>
node:this:cacti_id not node:this:cactiid

My Apache Configuration also necessitated adding /cacti/ to the path
The same for me. Unfortunately, the only way I can make it work is to manually set cacti_id. Does anyone have any idea, how to make this dynamic, so that I do not need to manually enter device ID? node:this:cacti_id does not work for me.
mgb
Cacti User
Posts: 124
Joined: Mon Jun 21, 2004 4:06 am
Location: North of the Netherlands

Post by mgb »

Wat version of weathermap are you using?
remember, cactiid or cacti_id is just a variable where you can add a value to. I made a template with the note command and use the set command to add a value to cacti_id. My example is based on using templates which only works in the latest releases of weathermap.
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

Has anyone tested this with weathermap 97test4 yet?

Thanks
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
achuta bodepu
Posts: 37
Joined: Thu Sep 17, 2009 5:36 am

Post by achuta bodepu »

Hi, I am using weathermap 0.96a and cacti version 0.8.7e
-I get an error snmp not in use while compiling a info.php
-Nothing is displayed on mouse move. The changes are made according to the post. Can tell me what are the correct steps to follow. Please Help Me....
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Post by uhtred »

write down your config, pls.
Last edited by uhtred on Wed Feb 10, 2010 8:34 am, edited 1 time in total.
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
achuta bodepu
Posts: 37
Joined: Thu Sep 17, 2009 5:36 am

Post by achuta bodepu »

My configruations in the NODE is as follows:-
NODE node02113
LABEL Test Switch
ICON images/WorkgroupSwitch.png
POSITION 184 191
SET cactiid 12
NOTES <iframe width=\"400px\" height=\"350px\" src=\"/plugins/weathermap/info.php?node={node:this:cactiid}\"></iframe>

In cacti Device list it is as follows:-
1)Description - test switch
2)ID - 12
Please help me.......
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Post by uhtred »

try
NOTES <iframe width=\"400px\" height=\"350px\" src=\"/cacti/plugins/weathermap/info.php?node={node:this:cactiid}\"></iframe>
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
achuta bodepu
Posts: 37
Joined: Thu Sep 17, 2009 5:36 am

Post by achuta bodepu »

No success. Nothing being displayed.Even after making the changes that been provided by U.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

achuta bodepu wrote:No success. Nothing being displayed.Even after making the changes that been provided by U.
Going back to basics, if you go to:
http://yourcactiserver/cacti/plugins/we ... hp?node=12
in a web browser does *that* work? because if it doesn't the weathermap config is not your problem.

Also check that you have 'HTMLSTYLE overlib' in the top section of your map config file, or no popup code is generated.
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!)
achuta bodepu
Posts: 37
Joined: Thu Sep 17, 2009 5:36 am

Post by achuta bodepu »

THANK YOU HOWIE

I get the information of the link provided in the web browser.

I didn't have a HTMLSTYLE overlib in the config file.
I have added this in the conf file. It's running fine
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests