I have seen some maps that have headings and titles on the webpage but I'm unsure on how to add these to my configs as the php url is always the same one independent of the map you are viewing. (https://localhost/plugins/weathermap/we ... plugin.php)
Any help on accomplishing this greatly appreciated.
Headings in weathermaps
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Headings in weathermaps
On the webpage or in the image? In the image, it's just a node with the label you want, font etc, and no links.
In the page - were they within Cacti? That's not really possible. Outside of Cacti you can mess with the HTML page and then be careful not to overwrite your changes.
In the page - were they within Cacti? That's not really possible. Outside of Cacti you can mess with the HTML page and then be careful not to overwrite your changes.
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: Headings in weathermaps
Hi Howie,
It was part of the webpage.
You mention mess with the html page but the url for the map is always the same isn't it, so which webpage would I edit?
It was part of the webpage.
You mention mess with the html page but the url for the map is always the same isn't it, so which webpage would I edit?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Headings in weathermaps
If you use the command-line weathermap instead of the Cacti plugin, then you can specify where the image and HTML files are generated to. You can then edit that HTML file, and change your command line to only update the image. However, you need to regenerate the HTML if you add anything to the map, so that the imagemap (mouseover) stuff works, because that's in the HTML file. This is what most people who do what you saw are doing. Quite often those maps don't have mouseover graphs, and this is why.
When it is integrated into Cacti, it always generates a partial HTML page in the output/ directory, and includes that when you go to the weathermap-cacti-plugin.php page, depending on the stuff after the question mark in the URL. It regenerates it every poller cycle though, so you can't really edit it.
Things like the fullscreen view mode assume that the image is the only thing on the page too, so whatever it is would not show there. Generally, adding text in the image is less hassle (unless it's a lot of text).
When it is integrated into Cacti, it always generates a partial HTML page in the output/ directory, and includes that when you go to the weathermap-cacti-plugin.php page, depending on the stuff after the question mark in the URL. It regenerates it every poller cycle though, so you can't really edit it.
Things like the fullscreen view mode assume that the image is the only thing on the page too, so whatever it is would not show there. Generally, adding text in the image is less hassle (unless it's a lot of text).
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!)
Who is online
Users browsing this forum: No registered users and 6 guests