Monitoring Server Zabbix Two custom key values and templates

Source: Internet
Author: User
Tags snmp

First, add the host

Open Zabbix of the Web Interface

Http://192.168.212.2/zabbix

1 , Configuration---Hosts---createhost

650) this.width=650; "title=" 1.png "style=" Float:none; "alt=" wkiom1wa_pjr1prraax4eitbfj8275.jpg "src=" http:/ S3.51cto.com/wyfs02/m01/6e/9d/wkiom1wa_pjr1prraax4eitbfj8275.jpg "/>

Host name: This should be the agent configuration file definition of Hostname, we are 192.168.3.3.

Visible Name: This is the display name, custom can be.

Group: The group to which the host is categorized.

The following parameters are defined according to the monitoring method you choose.

Agent Interfaces: is the agent installed on the host , the default can not be modified.

SNMP Interfaces: Monitored by snmp .

JMX Interfaces: Monitoring the interface of the JAVA program.

IPMI Interfaces: through IPMI interface to monitor hardware

desctiption: Description

monitored by proxy: Monitor by proxy .

Enabled: Indicates whether the host is monitored immediately.

2 , add templates

Templates-select--- corresponding Modules ---Add---add

650) this.width=650; "title=" 2.png "style=" Float:none; "alt=" wkiol1wa_qngcpw4aaysiedau3y104.jpg "src=" http:/ S3.51cto.com/wyfs02/m02/6e/99/wkiol1wa_qngcpw4aaysiedau3y104.jpg "/>

3 , view graphics

Configuration---Hosts you can see the added host

650) this.width=650; "title=" 3.png "style=" Float:none; "alt=" wkiom1wa_pqd6oahaawnvxiglfe138.jpg "src=" http:/ S3.51cto.com/wyfs02/m02/6e/9d/wkiom1wa_pqd6oahaawnvxiglfe138.jpg "/>

only when Availability in Z Is only available when the logo is green.

monitioring---Graphs--- Select the appropriate Group , Host , Graph ( for CPU jumps)

650) this.width=650; "title=" 4.png "style=" Float:none; "alt=" wkiol1wa_qrzpe_taaftyp1shra159.jpg "src=" http:/ S3.51cto.com/wyfs02/m00/6e/99/wkiol1wa_qrzpe_taaftyp1shra159.jpg "/>

ii.. Custom Key value

1. modifying client configuration Files

#vim/usr/local/zabbix/conf/zabbix_agentd.conf Set Unsafeuserparameters=1 and add the following Userparameter=memuse,free-m|sed-n ' /mem/p ' |awk ' {print $} ' userparameter=memfree,free-m|sed-n '/cache:/p ' |awk ' {print $4} ' Userparameter=memtotal,free- M|sed-n '/mem:/p ' |awk ' {print $} '

format: userparameter= Custom Key Value name , scripts or commands to collect data

the above definition 3 used content, free memory, total memory

650) this.width=650; "title=" 5.png "style=" Float:none; "alt=" wkiom1wa_pubtycoaajma3mz9hu009.jpg "src=" http:/ S3.51cto.com/wyfs02/m00/6e/9d/wkiom1wa_pubtycoaajma3mz9hu009.jpg "/>

Client Restart Service

#/etc/init.d/zabbix_agentd Restart

2, the service side test defines whether the key value can be called

650) this.width=650; "title=" 6.png "style=" Float:none; "alt=" wkiol1wa_qviecmaaakm0rlyyx0519.jpg "src=" http:/ S3.51cto.com/wyfs02/m01/6e/99/wkiol1wa_qviecmaaakm0rlyyx0519.jpg "/>

Iii. Custom Templates

Configuration---Templates---createtemplates---Add

650) this.width=650; "title=" 7.png "style=" Float:none; "alt=" wkiom1wa_pvijalgaamv-njmzcq239.jpg "src=" http:/ S3.51cto.com/wyfs02/m01/6e/9d/wkiom1wa_pvijalgaamv-njmzcq239.jpg "/>

650) this.width=650; "title=" 8.png "style=" Float:none; "alt=" wkiol1wa_qvxwnafaan-yytogxq390.jpg "src=" http:/ S3.51cto.com/wyfs02/m02/6e/99/wkiol1wa_qvxwnafaan-yytogxq390.jpg "/>

Applications is that you want to do a few pieces of monitoring (such as memory Cpuio network, etc.)

Items The project is for an application set (if I want to capture the usage of the memory in the application set , i can define multiple items , such as total memory available memory free memory, etc.)

Triggers triggers are made for a project (if you have a project that collects available memory , add a trigger to do so when you can have less memory)

Graphs The data source that creates the graph is based on the data collected by the project , and one or more projects can be generated graphically

Screens is how to put and arrange the generated pictures, etc.

Discovery Auto Discovery Client ( conditions Filtered by configuration )

1 , New Applications

Configuration---Templates--- in the Moban01 on ---applications---createapplication

Create a two here Application , one is IO , a Memory

650) this.width=650; "title=" 9.png "style=" Float:none; "alt=" wkiom1wa_pzdry41aastazrtf5q376.jpg "src=" http:/ S3.51cto.com/wyfs02/m02/6e/9d/wkiom1wa_pzdry41aastazrtf5q376.jpg "/>

2. New Items

650) this.width=650; "title=" 10.png "style=" Float:none; "alt=" wkiol1wa_qztgrilaamojovz0dg354.jpg "src=" http:/ S3.51cto.com/wyfs02/m00/6e/99/wkiol1wa_qztgrilaamojovz0dg354.jpg "/>

co-establish 3 use memory for a monitoring item (Memuse) , free memory (Memfree) , Total Memory (memtotal) , all belong to Memory this Applications

650) this.width=650; "title=" 11.png "style=" Float:none; "alt=" wkiom1wa_p3zz2ugaat3s92wg9s642.jpg "src=" http:/ S3.51cto.com/wyfs02/m00/6e/9d/wkiom1wa_p3zz2ugaat3s92wg9s642.jpg "/>

3 , define Triggers

650) this.width=650; "title=" 12.png "style=" Float:none; "alt=" wkiol1wa_q2t9bp1aaqfjlmhngk116.jpg "src=" http:/ S3.51cto.com/wyfs02/m01/6e/99/wkiol1wa_q2t9bp1aaqfjlmhngk116.jpg "/>

4 , add Graphs ( here the 3 memory-related Items defined in the front are placed in a diagram )

650) this.width=650; "title=" 13.png "style=" Float:none; "alt=" wkiom1wa_p7gb-mvaaw7lhexcde833.jpg "src=" http:/ S3.51cto.com/wyfs02/m01/6e/9d/wkiom1wa_p7gb-mvaaw7lhexcde833.jpg "/>

5 , delete the previous host, and create a new one to apply the template.

650) this.width=650; "title=" 14.png "style=" Float:none; "alt=" wkiol1wa_q7av9olaaqtwo9md0u497.jpg "src=" http:/ S3.51cto.com/wyfs02/m02/6e/99/wkiol1wa_q7av9olaaqtwo9md0u497.jpg "/>

6 , view

650) this.width=650; "title=" 15.png "style=" Float:none; "alt=" wkiom1wa_qchldssaavl_bzejq4857.jpg "src=" http:/ S3.51cto.com/wyfs02/m02/6e/9d/wkiom1wa_qchldssaavl_bzejq4857.jpg "/>

7 , view graphics -monitoring---Graphs Select the appropriate criteria to view the defined graphs ( client can consume memory test effect based on DD or cat/dev/zero >/dev/null )

650) this.width=650; "title=" 16.png "style=" Float:none; "alt=" wkiol1wa_rcsuqihaafw6cw5nl4347.jpg "src=" http:/ S3.51cto.com/wyfs02/m00/6e/99/wkiol1wa_rcsuqihaafw6cw5nl4347.jpg "/>

This article is from the "Step Into the Linux World" blog, please be sure to keep this source http://linuxnote.blog.51cto.com/9876511/1662659

Monitoring Server Zabbix Two custom key values and templates

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.