Exporting Map
Moderators: Developers, Moderators
Exporting Map
Hey guys, i'm hoping someone has a link or some instructions on how to export a map from weathermap. I'm wanting to take my final map, export it to either a .jpg or .html, then be able to pull up that URL via other computers (so we can see them full screen) and so no one has to log-in to see these maps. I've searched the forums, but can't seem to find anything that is step-by-step. Can anyone direct me to the right place? Thanks!!
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Exporting Map
The map image and html files are in the weathermap/output directory. The HTML file needs to have its IMG tag changed for viewing outside the plugin.
OR... use the command-line weathermap tool to generate a map outside of Cacti completely.
OR... in the next release, within Cacti, it will still honour the IMAGEFILE and HTMLFILE commands and save a copy to a second location for exactly this.
OR... guest access from Cacti should work too, although I couldn't get Cacti to do it for me (even with graphs) when I tried yesterday.
OR... use the command-line weathermap tool to generate a map outside of Cacti completely.
OR... in the next release, within Cacti, it will still honour the IMAGEFILE and HTMLFILE commands and save a copy to a second location for exactly this.
OR... guest access from Cacti should work too, although I couldn't get Cacti to do it for me (even with graphs) when I tried yesterday.
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!)
Re: Exporting Map
Thanks for the reply! I was able to get to the output directory like you stated and i can see the .png or jpgs fine. The only issue i see is the map is not updating on it's own every minute. It will change the map every minute if i hit F5, but it's not automatically updating every minute.. Is there a setting that tells it to update the output file every minute even if it's a jpg? The other issue i see is my file name is weird. For instance, my map is named "WAN" on cacti/weathermap. When i browse to this directory via SSH all of my files look like "3dc4a11d3c99a237e50b.jpg". I am having to put that at the end of my URL in order to see the maps.
Do you have any recommendations on what to do here? I'm perfectly happy using this "output" method, I just need it to refresh on it's own and i'd like the name to match the actual map name within cacti/wm.
Thanks again Howie!!
Do you have any recommendations on what to do here? I'm perfectly happy using this "output" method, I just need it to refresh on it's own and i'd like the name to match the actual map name within cacti/wm.
Thanks again Howie!!
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Exporting Map
I don't understand what you mean about updates. The files are updated whenever the Cacti poller is run. Just because your file browser doesn't update, doesn't mean the files aren't written... (if I understand correctly). Windows Explorer is especially bad for this in recent versions of Windows. It will regularly show me files that IT DELETED ITSELF a few minutes earlier, then get all fussy when I click on them.
For the filenames - this is intended to stop your lovely users guessing the URLs for each other's maps (think other customers). The URL is long and complicated, but it doesn't change once it is assigned, so it's safe to use that filename in a script.
In the next version, you will be able to have Weathermap put a second copy of the files, with any names you like, into another location. This is probably the nicer way to do it.
For the filenames - this is intended to stop your lovely users guessing the URLs for each other's maps (think other customers). The URL is long and complicated, but it doesn't change once it is assigned, so it's safe to use that filename in a script.
In the next version, you will be able to have Weathermap put a second copy of the files, with any names you like, into another location. This is probably the nicer way to do it.
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!)
Re: Exporting Map
Yeah the file is updating fine, it's just i'm not sure how to force my browser to refresh every minute to show the changes on that .JPG The only way this works is if I hit F5 to update to image.
Re: Exporting Map
Alright, I think i've got a working solution. I got the images to update every 60 seconds within Cacti. If i use google chrome, i am able to browse to the .jpg and set it to fullscreen (F11). I then installed an app called "auto refresh" for chome, and set that to refresh my tab every 60 seconds. It now will update the .jpg and works flawless. Again, thank you for the help Howie!
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Exporting Map
Ah! Refresh the browser... now I understand
No use to you now, but again, the next version has a nice full-screen slide show built in, which sounds like what you are aiming for.
No use to you now, but again, the next version has a nice full-screen slide show built in, which sounds like what you are aiming for.
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!)
Re: Exporting Map
That sounds awesome!! FYI, do you take donations? Your WM program is saving us quite a bit of money, my boss mentioned that if you take donations he will see if we can get something sent your way! Let me know and i'll pass the info along.
Again, thanks for all the help!
Again, thanks for all the help!
-
- Posts: 37
- Joined: Wed Jul 09, 2014 5:15 am
Re: Exporting Map
Howie wrote:Ah! Refresh the browser... now I understand
No use to you now, but again, the next version has a nice full-screen slide show built in, which sounds like what you are aiming for.
In the new update, is there a way to make the full map adapt to the screen size ?
My maps don't have the same size and it looks very weird during the rotation.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Exporting Map
Not easily with working popup graphs - it could be an option ("scale to fit window" or something) that would also disable the popup graphs. For a NOC display you might not care about popup graphs.extragornax wrote:Howie wrote:Ah! Refresh the browser... now I understand
No use to you now, but again, the next version has a nice full-screen slide show built in, which sounds like what you are aiming for.
In the new update, is there a way to make the full map adapt to the screen size ?
My maps don't have the same size and it looks very weird during the rotation.
It's a lot easier to just make all your maps the same size I use a 1920x1080 template these days for new maps.
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: Wed Jul 09, 2014 5:15 am
Re: Exporting Map
Howie wrote:Not easily with working popup graphs - it could be an option ("scale to fit window" or something) that would also disable the popup graphs. For a NOC display you might not care about popup graphs.extragornax wrote:Howie wrote:Ah! Refresh the browser... now I understand
No use to you now, but again, the next version has a nice full-screen slide show built in, which sounds like what you are aiming for.
In the new update, is there a way to make the full map adapt to the screen size ?
My maps don't have the same size and it looks very weird during the rotation.
It's a lot easier to just make all your maps the same size I use a 1920x1080 template these days for new maps.
Yes, but I have a map with 5 devices and another one with 250 so I can't fit them all in the same map one is too big for the screen and the other one is too small.
What do you mean by pop-up graphs ?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Exporting Map
When you hold the mouse pointer over a link, and the traffic graph appears. That relies on HTML imagemaps, which assume the image is a certain size. If we ignore that for a minute, resizing the image to fill the screen isn't so hard.
I still don't really understand why having a large image with only a few nodes on it is a bad thing.
I still don't really understand why having a large image with only a few nodes on it is a bad thing.
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: Wed Jul 09, 2014 5:15 am
Re: Exporting Map
graphs appear when you hover a link in rotation mode :s , that is where I want to resize them and then when clicking on one of them, bring me to the corresponding graph where hover link graphs workHowie wrote:When you hold the mouse pointer over a link, and the traffic graph appears. That relies on HTML imagemaps, which assume the image is a certain size. If we ignore that for a minute, resizing the image to fill the screen isn't so hard.
I still don't really understand why having a large image with only a few nodes on it is a bad thing.
basicly remove the hover in rotation mode, resize to screen size and let the use click the image to go to the page of the map where hover would work normaly
a big image isn't a bad idea, but when you have map with a size of 3800 by 2000 it does not fit the screen, even when unzooming
Who is online
Users browsing this forum: No registered users and 1 guest