Cacti weathermap Add host online status diagram detection

Source: Internet
Author: User

Weathermap Chinese name translated into weather map

Weathermap version Support: 0.94 and the latest version



1, first add the weather map legend

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/12/wKiom1SQYe7hX5GqAAAkA7-UpHU082.jpg "title=" 1.png " alt= "Wkiom1sqye7hx5gqaaaka7-uphu082.jpg"/>

Like this.

Edit the Weather map profile that you want to add the legend to (the weather map profile is in the/var/www/html/plugins/weathermap/configs/directory by default)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/0F/wKioL1SQYz2QSkeDAAK7zl3yTXI608.jpg "title=" 2.png " alt= "Wkiol1sqyz2qskedaak7zl3ytxi608.jpg"/>

Where Keypos specifies the global legend name and the legend position and legend title (Cactiupdown is the global name, Host_status is the legend display name)

The Keystyle is used to set the display style for the legend. There are several types of legend styles available according to the official documentation:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/12/wKiom1SQY2KiVFQXAADvAexLZdc152.jpg "title=" 3.png " alt= "Wkiom1sqy2kivfqxaadvaexlzdc152.jpg"/>

The first three types can only display percentages and cannot define tags. So here we have the legend style set to tags

Default legend, do not change keypos default 16 512 traffic loadkeystyle  default  invertedkeytextcolor 0 0 0keyoutlinecolor 0 0 0keybgcolor 255 255  255bgcolor 255 255 255titlecolor 0 0 0timecolor 0 0 0scale  default 0    0    192 192 192scale default  0    1    255 255 255SCALE DEFAULT 1     10   140   0 255SCALE DEFAULT 10    25    32  32 255SCALE DEFAULT 25   40      0 192 255SCALE DEFAULT 40   55      0 240   0scale default 55   70   240  240   0scale&nbSp;default 70   85   255 192   0scale default  85   100  255   0   0//the newly added legend keypos  CACTIUPDOWN 744 66 HOST_STATUS   // 744  66 is the coordinate keystyle   cactiupdown tagsscale cactiupdown 0    0.5  192 192  192  disabledscale cactiupdown 0.5  1.5  255   0    0  downscale cactiupdown 1.5  2.5    0    0 255  RecoveringSCALE cactiupdown 2.5  3.5     0 255   0  up

Once added, the next weather map refresh cycle will have a new legend appearing in the weather map.


2. Add the properties of the node and the reference state

Add a test node to a Web page

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/12/wKiom1SQZPiAs7F4AAFey1rP7n0357.jpg "title=" 4.png " alt= "Wkiom1sqzpias7f4aafey1rp7n0357.jpg"/>

Label test test internal name can not move, icon can not be


Once added, edit the configuration file.

NODE node09529//Internal name label test test//tag, display name TARGET cactihost:37//fixed format Usescale cact Iupdown//Set reference global legend name infourl/graph.php?rra_id=all&local_graph_id=2007 overlibgraph/graph_image.php ? rr****id=0&graph_no******07 ICON images/delete_icon.gif POSITION 932 169//coordinates

TARGET cactihost:37

This field is interpreted according to the official file as the TARGET host: Host ID number

The host ID number is obtained as follows

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/12/wKiom1SQZjjh8xXgAAKuFtSRYn8307.jpg "title=" 6.png " alt= "Wkiom1sqzjjh8xxgaakuftsryn8307.jpg"/>


Finally, you can save the configuration file, wait for the next refresh cycle, and then look at the host node color changes.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/12/wKiom1SQZuugF3IPAABLk0V992w606.jpg "title=" 1.png " alt= "Wkiom1sqzuugf3ipaablk0v992w606.jpg"/>

Outage Status


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/0F/wKioL1SQZ6PibEPRAABrcXND2fg030.jpg "title=" 7.png " alt= "Wkiol1sqz6pibepraabrcxnd2fg030.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/0F/wKioL1SQZ8DBBNUtAAAsT2Xqwbc868.jpg "title=" 2.png " alt= "Wkiol1sqz8dbbnutaaast2xqwbc868.jpg"/>

The state is recovering.



WEATHERMAP Official Document Address http://network-weathermap.com/manual/0.97/pages/config-reference.html

Or view a local cacti document (in fact, the same content)



This article from "Professor elder brother" blog, reprint please contact the author!

Cacti weathermap Add host online status diagram detection

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.