Cacti Weather map adjustment (batch position adjustment, change build chart size, etc.)

Source: Internet
Author: User

Cacti weather maps can be very intuitive to see the flow of each node. Here is the CactiEZ Chinese version V10

1, adjust the weather map size

The default has a 1024-pixel background image to choose from,

Here we need to add a 1600-megapixel background image.

When the background map is ready, put it in the location of the Cactiserver weather map.

/var/www/html/plugins/weathermap/images/
This in background graphics fileCan select the 1600 pixel background image you just uploaded.


2, Batch adjustment node location

Since the background map was previously adjusted, the position of all nodes sometimes appears uncoordinated. Such as: The overall left, the right empty a large area.

Now move all the nodes overall to a relative right position.

Weather Map configuration file location

[Email protected] configs]# pwd  /var/www/html/plugins/weathermap/configs
This folder has simple.conf and the weather map file on your server (here if the weather map name is: server weather map. conf, depending on the detailed name on the server),
[email protected] configs]# ls simple.conf  server weather map. conf
Make a copy of the backup to prevent recovery in case of error
CP-A  Server weather map. conf   Server Weather map bak.conf

Edit a weather map file
VI Server weather map. conf
Locate the file in a similar way such as the following
# regular Nodes:node Juniper        label Juniper        ICON images/firewall.png        POSITION 578 183NODE h3c        LABEL h3c< C7/>icon images/firewall.png        POSITION 871 189NODE ct_net        LABEL Telecom        ICON images/cloud-filled.png        POSITION 749 36NODE chinaunicom        LABEL unicom        ICON images/cloud-filled.png        POSITION 956 31

Of POSITION 578 183, which is the position x y format, which represents the position of the coordinates (transverse x, Portrait y). Assuming that all nodes are shifted to the right by 200 pixels, the X value in all position x y is added to 200. Such as:

POSITION 778 183

Remember to add 200 to the position of all position x y in the edit file, which means moving the position to the right.


3, change the node background color, the default feel white

Locate the configuration file similar to the following for example

Save, exit the edit file, after a few minutes the weather map self-update will be able to find that the changes were successful.

NODE netgeargs724t        LABEL netgeargs724t        ICON images/workgroupswitch2.png        POSITION 1303 259NODE h3c_sw        LABEL h3c001 (VLAN2)        Labelbgcolor 225        POSITION 1006 336
The Labelbgcolor is lable background settings, "65 105 225" is the RGB color value, you need to change the color value.

4. Change the traffic text size
Format: Bwfont fontnumber

Built-in GD library, there is a built-in 1-5 font, you can choose to find the configuration file like the following, the use of 2nd font,bwfont 2

# template-only Links:link DEFAULT        WIDTH 3        bwfont 2        commentfont        bwlabel bits        BANDWIDTH 1M


Many other references

Http://www.network-weathermap.com/manual/latest/pages/config-reference.html

Attach an official website map


Cacti Weather map adjustment (batch position adjustment, change build chart size, etc.)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.