Popup with snmp device info in weathermap
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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.
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!)
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!)
The textbox disappearing is indeed a issue with the OVERLIBGRAPH sizes. The config we use for this is:
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
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 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
Hi
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).
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).
HI
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!!!!!
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!!!!!
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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.
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!)
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!)
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.colejv wrote:I was getting that by cutting and pasting the example above, On my setup I had to use
node:this:cacti_id not node:this:cactiidCode: Select all
NOTES <iframe width="400px" height="400px" src="/cacti/plugins/weathermap/info.php?node={node:this:cacti_id}"> </iframe>
My Apache Configuration also necessitated adding /cacti/ to the path
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.
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.
Has anyone tested this with weathermap 97test4 yet?
Thanks
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
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
-
- Posts: 37
- Joined: Thu Sep 17, 2009 5:36 am
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
-
- Posts: 37
- Joined: Thu Sep 17, 2009 5:36 am
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.......
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.......
try
NOTES <iframe width=\"400px\" height=\"350px\" src=\"/cacti/plugins/weathermap/info.php?node={node:this:cactiid}\"></iframe>
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
-
- Posts: 37
- Joined: Thu Sep 17, 2009 5:36 am
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Going back to basics, if you go to:achuta bodepu wrote:No success. Nothing being displayed.Even after making the changes that been provided by U.
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!)
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!)
-
- Posts: 37
- Joined: Thu Sep 17, 2009 5:36 am
Who is online
Users browsing this forum: No registered users and 5 guests