Zabbix------Simple Configuration Monitor CentOS

Source: Internet
Author: User

1 We recommend that you use the English interface

2 Adding a host Host,centos host

SP1. Installing the agent on the client side

./configure--prefix=/usr/local/zabbix--enable-agent or RPM installation

SP2. modifying/etc/zabbix/zabbix_agentd.conf

server=60.60.60.11# the address of your Zabbix server

serveractive=60.60.60.11:10051# if open, then is the client actively send information, or the service side actively come to extract information

SP3. Starting the ZABBIX_AGENTD service

SP4. In the Zabbix page configuration interface, select Configuration-hosts-create Host, note that hostname must be consistent with the original system

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/DA/wKioL1XuwJ_Qg9p5AASjnoBSGGM753.jpg "title=" 1.png " alt= "Wkiol1xuwj_qg9p5aasjnobsggm753.jpg"/>

Then select the template, note that you must add

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/DD/wKiom1XuvvzgfMxoAAHEqhbIdXg189.jpg "title=" 2.png " alt= "Wkiom1xuvvzgfmxoaaheqhbidxg189.jpg"/>

How do I see how much content I've just added?

Enter Configuration-host to see the host you just added, click on the row of graph

Priview can see the basic information.

Because the template is predefined for one minute, if you don't see the information please be patient

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/DA/wKioL1XuxNnA_ou4AAUkP_w3Yqw612.jpg "title=" 3.png " alt= "Wkiol1xuxnna_ou4aaukp_w3yqw612.jpg"/>

Find a graph not comprehensive enough, we can also add screen,configuration-screen-create screen

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/DA/wKioL1XuxcqRcGIyAAU4_DrMu1Q298.jpg "title=" 4.png " alt= "Wkiol1xuxcqrcgiyaau4_drmu1q298.jpg"/>

3 Simple Custom templates

SP1. Adding no Parameter key

1.1 In the client's/etc/zabbix/zabbix_agentd.conf.d/add a count.line.passwd key, the file name is key_name.conf, of course convenient can go in/etc/zabbix/ Zabbix_agentd.conf directly add the following line

Userparameter=<key_name>,scripts

The example here is

Userparameter=count.line.passwd,wc-l/etc/passwd|awk ' {print $} '

1.2 On the server side to check whether the data can be obtained from the key, there is data to return the line

# zabbix_get-s 127.0.0.1-k ' count.line.passwd '

32

1.3 Adding Template,configration-templates-create Templates in the Web UI

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/DA/wKioL1XuyLPTok5ZAAHklpCRrFk664.jpg "title=" 5.png " alt= "Wkiol1xuylptok5zaahklpcrrfk664.jpg"/>

1.4 Find just the template, configuration-templates, stand-alone template in the back row of items, which is the smallest unit, and then create item

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/DD/wKiom1Xux7XzGdQkAAMUZubCxKo094.jpg "title=" 6.png " alt= "Wkiom1xux7xzgdqkaamuzubcxko094.jpg"/>

New application to fill in a

1.5 Add graph

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/DA/wKioL1Xuyp-R_-ebAAQpongR-Lc595.jpg "title=" 7.png " alt= "Wkiol1xuyp-r_-ebaaqpongr-lc595.jpg"/>

At this time Priview is no data, because there is no binding host, you point into the host Add template bar

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/DD/wKiom1XuybDgYHGEAAUKU3Dsc2c400.jpg "title=" 8.png " alt= "Wkiom1xuybdgyhgeaauku3dsc2c400.jpg"/>

Put it on the screen just now.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/DD/wKiom1XuyffQpCjAAAeXGMcHmx0107.jpg "title=" 9.png " alt= "Wkiom1xuyffqpcjaaaexgmchmx0107.jpg"/>

So the basic one custom template is ok


SP2. Key with parameters

Userparameter=key_name[*],scripts

You can use the parameters given by the Web UI in scripts, which is the first parameter, and if the script uses $ $, use $$1 instead of avoiding confusion

Here is an example of getting network card traffic, you can see

Userparameter=nic.flow[*],/sbin/ifconfig $1|























Zabbix------Simple Configuration Monitor CentOS

Related Article

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.