A study on map labels of Zabbix

Source: Internet
Author: User

The map labels(Topology map tab) supports the following Macros(macros):

MACRO DESCRIPTION
{HOST.} CONN} IP or host DNS name, depending on host settings
{HOST.} DNS} Host DNS Name
{HOST.} HOST} Host Name
{HOST.} IP} Host IP Address
{Host.name} Visible Host Name
{Host:key.func (param)}

Simple macros, as used in trigger expressions.

Only the avg, last, Max and min functions, with seconds as parameter is supported in This macro in map labels.

Also support some trigger (trigger) macros are not listed here, please see the official information: https://www.zabbix.com/documentation/2.2/manual/appendix/macros/supported_by_location

This article implements the following:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/57/15/wKioL1SRIfzjmQiAAAGyVMV32ZQ179.jpg "title=" Zabbix topology map. png "alt=" wkiol1srifzjmqiaaagyvmv32zq179.jpg "/>

The Topology Map tab lists the details of the device, including the device name, IP, operating system, CPU, memory, disk, network traffic, and so on. Here are the specific implementations:

One

To enter configuration→maps, click Create Map to build a new topology map.

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

Two

According to map labels supported macros, modify the label labels of the picture, such as:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/16/wKioL1SRLafB77xeAAY7P3Hp_VY610.jpg "title=" 2.png " alt= "Wkiol1srlafb77xeaay7p3hp_vy610.jpg"/>

After modifying the Label , click Apply to see the effect.

Linux Server Label Example:

Host:{host.name}ip:{host. Ip}os:{{host. Host}:system.uname.last (0)}cpu load:{{host. Host}:system.cpu.load[percpu,avg1].last (0)}free memory:{{host. Host}:vm.memory.size[pavailable].last (0)}free disk/data:{{host. Host}:vfs.fs.size[/data,free].last (0)}incoming network:{{host. Host}:net.if.in[eth0].last (0)}outgoing network:{{host. Host}:net.if.out[eth0].last (0)}

Windows Server Label Example:

Host:{host.name}ip:{host. Ip}os:{{host. Host}:system.uname.last (0)}cpu load:{{host. Host}:system.cpu.load[percpu,avg1].last (0)}free memory:{{host. Host}:vm.memory.size[pavailable].last (0)}free Disk c:{{host. Host}:vfs.fs.size[c:,free].last (0)}free Disk d:{{host. Host}:vfs.fs.size[d:,free].last (0)}incoming network:{{host. Host}:net.if.in[intel (R) 82574L Gigabit Network connection].last (0)}outgoing network:{{host. Host}:net.if.out[intel (R) 82574L Gigabit Network connection].last (0)}

For a macro of this type {host:key.func (param)}, the corresponding monitoring item must exist on the host to be able to fetch the data, otherwise the *unknown*will be displayed.

Three

We can also modify the Labelof the connector to show network traffic on the upper and lower lines.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/57/17/wKioL1SRMcmBzEAfAAdni5NV0is848.jpg "title=" Qq20141217152547.png "alt=" Wkiol1srmcmbzeafaadni5nv0is848.jpg "/>

Click Editat the bottom of the Image property to open the properties interface for the connector. We modify the Labeland click Apply to see the effect.

Example of a Label for a connection line:

Network↑{zabbix server:net.if.in[eth0].last (0)}↓{zabbix server:net.if.out[eth0].last (0)}

This shows the Zabbix server's eth0 network card traffic.


This article is from the "Start Linux blog" blog, make sure to keep this source http://qicheng0211.blog.51cto.com/3958621/1591073

A study on map labels of Zabbix

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.