Zabbix monitoring 2 ---- zabbix controlled end and monitoring metrics

Source: Internet
Author: User

4. Install zabbix on the controlled end of station32

4.1: download the required package: zabbix-sender must be installed only when the controlled end is in active mode.

[[Email protected] # Yum-y localinstall \

Zabbix-2.2.3-1.el6.x86_64.rpm \ # master program server/agent are required

Zabbix-agent-2.2.3-1.el6.x86_64.rpm \ # Agent installation on controlled end

Zabbix-sender-2.2.3-1.el6.x86_64.rpm \ # The controlled end actively sends data to the master end program

[[Email protected] ~] # Tree/etc/zabbix/

/Etc/zabbix/

| -- Zabbix_agentd.conf configuration file of the receiver

'-- Zabbix_agentd.d

'-- Userparameter_mysql.conf

[[Email protected] # Vim zabbix_agentd.conf

23 logfile =/var/log/zabbix/zabbix_agentd.log

86 Server = 192.168.1.31 IP address of the master server

128 serveractive = 192.168.1.31 master server IP address, retain the default 127.0.0.1, the following error will be reported

139 hostname = station32.example.com controlled end host name/IP

Note that the Set parameter "hostname = station32.example.com" on the proxy must be the same as the host name entered during configuration. Otherwise, the "host {Host name} Not Found" error will be reported in the log.

[[Email protected] # service zabbix-Agent start

[[Email protected] ~] # Netstat-nutlp | grep zabbix

TCP 0 0 0.0.0.0: 10050 0.0.0.0: * Listen 1690/zabbix_agentd

TCP 0 0: 10050: * Listen 1690/zabbix_agentd

[[Email protected] ~] # Chkconfig zabbix-agent on

[[Email protected] zabbix] # tail/var/log/zabbix/zabbix_agentd.log

Q5: 1695: 20140617: 001526.629 active Check Configuration update from [127.0.0.1: 10051] started to fail (cannot connect to [[127.0.0.1]: 10051]: [111] connection refused)

[[Email protected] zabbix] # vimzabbix_agentd.conf

Modify 128 serveractive = 192.168.1.31 master server IP Address

[[Email protected] # service zabbix-Agent restart

On the configuration-> hosts panel, click createhost to add the new controlled host station32,

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/3C/FE/wKioL1PDpROh9nGwAAGJyzcM5R4521.jpg "Title =" 7.jpg" alt = "wkiol1pdproh9ngwaagjyzcm5r4521.jpg"/>

There are station32 host entries, you also need to add a monitoring item, click Create item

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3D/01/wKiom1PDp6bA6RjIAAHwfVXf1c4014.jpg "Title =" 8.jpg" alt = "wkiom1pdp6ba6rjiaahwfvxf1c4014.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/3D/01/wKioL1PDp5iDwtUxAAG6B1YUYF8867.jpg "style =" float: none; "Title =" 9.jpg" alt = "wkiol1pdp5idwtuxaag6b1yuyf8867.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/3D/01/wKioL1PDp5jBPeoaAAFzYqKePVE338.jpg "style =" float: none; "Title =" 10.jpg" alt = "wkiol1pdp5jbpeoaaafzyqkepve338.jpg"/>

Click graphs to create the image creategraphs,

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/3D/02/wKiom1PDqAHAhnOdAAGCbWnb858221.jpg "style =" float: none; "Title =" 11.jpg" alt = "wkiom1pdqahahnodaagcbwnb858221.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3D/02/wKiom1PDqAGxEh4bAAGVjaz-gNs234.jpg "style =" float: none; "Title =" 12.jpg" alt = "wKiom1PDqAGxEh4bAAGVjaz-gNs234.jpg"/>

5. Trigger: used to evaluate whether the received data within a specific item of a monitoring object is within a reasonable range-a specific expression of the threshold;

Trigger expression format:

{<Server>: Key. <function> (<parameter>)} <operator> <constant>

Set inbound traffic> 400 to start the trigger

Click expressionconstructor expression generator, edit, select, network inbound rating

The URL specifies the link to be opened when the trigger condition is met.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3D/02/wKiom1PDqIigR58MAADO-VFverU849.jpg "Title =" 13.jpg" alt = "wKiom1PDqIigR58MAADO-VFverU849.jpg"/>

Insert-> Add

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/3D/02/wKioL1PDqH-zwm2gAAFHywnXSAc159.jpg "Title =" 14.jpg" alt = "wKioL1PDqH-zwm2gAAFHywnXSAc159.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3D/02/wKiom1PDqMKDTX2VAADUbkEPwBQ172.jpg "Title =" 15.jpg" alt = "wkiom1pdqmkdtx2vaadubkepwbq172.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/3D/03/wKiom1PDqN_wVVdjAAGqBG4cxHc763.jpg "Title =" 16.jpg" alt = "wkiom1pdqn_wvvdjaagqbg4cxhc763.jpg"/>

The maximum traffic for the last moment is 599> 400. The trigger must be started.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/3D/03/wKiom1PDqQfAIkcBAADTHNDdsDI736.jpg "Title =" 17.jpg" alt = "wkiom1pdqqfaikcbaadthnddsdi736.jpg"/>

A trigger triggers only events, but no further actions.

6. action: A processing method defined in advance for a specific event, including an action (send a notification) and a condition (when to execute an action). In the event of an exception, trigger a trigger, action is required, such as alarm or remote command execution. Not all trigger events require manual intervention, when the trigger status changes from "OK" to "problem", an alarm must be sent to the monitoring personnel. When the data returns to a reasonable range, no intervention is required if the trigger status changes from "problem" to "OK;

7. Implement zabbix notification function

1. Define the media required: the channel for sending information, such as email, jabber, and SMS;

2. configure action: send information to a media;

8. action is composed of condition and operation. When condition is met, action is performed ", basic operations: "sending notifications" and "executing remote commands ";

10. Create a media type administration --> media type

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/3D/03/wKiom1PDqaeCGAShAAGK9mk-jjo524.jpg "Title =" 18.jpg" alt = "wKiom1PDqaeCGAShAAGK9mk-jjo524.jpg"/>

11. Define action configuration-> action

Macro macros of zabbix is a predefined function,

Help document https://www.zabbix.com/documentation/2.2/manual/appendix/macros/supported_by_location

What is the action to do, such as the content of the sendmessage?

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3D/02/wKioL1PDqbrT5WAhAAF4STtc1Ww959.jpg "Title =" 19.jpg" alt = "wkiol1pdqbrt5wahaaf4sttc1ww959.jpg"/>

If the "conditions" are met, the next "operation" will be performed"

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3D/03/wKioL1PDqhzBJnzyAAF95F__Uco163.jpg "Title =" 20.jpg" alt = "wkiol1pdqhzbjnzyaaf95f__uco163.jpg"/>

How to perform operation:

1. If the monitoring haproxy service is interrupted and the remote command is restored after restart, no message is sent.

Otherwise, 2. Send the email again.

Defaultoperation step Duration: the default operation interval is 3600 seconds = 1 hour, and the minimum value is 60 seconds = 1 minute. Operations cannot be performed continuously. Generally, the length value is used.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3D/03/wKiom1PDqo3SV8p9AAG19gMWuJU484.jpg "Title =" 21.jpg" alt = "wkiom1pdqo3sv8p9aag19gmwuju484.jpg"/>

Create media

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3D/03/wKioL1PDqruRo5f_AADW2a5bslo554.jpg "Title =" 22.jpg" alt = "wkiol1pdqruro5f_aadw2a5bslo554.jpg"/>

Trigger is enabled in three states:

A. the instance is not in maintenance status.

B. Trigger from OK to Problem

C. Enable custom triggers

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/3D/03/wKiom1PDqzKhxe4_AAE5BWBgCMY911.jpg "Title =" 23.jpg" alt = "wkiom1pdqzkhxe4_aae5bwbgcmy911.jpg"/>

Pingstation32 on station31

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/3D/03/wKioL1PDq0HSWQ8OAAICP3BsYYw812.jpg "Title =" 24.jpg" alt = "wkiol1pdq0hswq8oaaicp3bsyyw812.jpg"/>

[[Email protected] ~] # Mail

Heirloommail version 12.4 7/29/08. type? Forhelp.

"/Var/spool/mail/root": 7 messages 3 new 5 unread

N [email protected] wed Jun 1823: 30 23/1076 "OK: Network inbound traffic toohigh"

& 9

Message 9:

[Email protected] wed Jun 1823: 30: 57 2014

Return-path: <[email protected]>

X-original-to: [email protected]

Delivered-to: [email protected]

From: <[email protected]>

To: <[email protected]>

Date: Wed, 18 Jun 2014 23:30:57 + 0800

Subject: OK: Network inbound traffic too high

Content-Type: text/plain; charset = "UTF-8"

Status: R

Trigger: Network inbound traffic too high

Triggerstatus: OK

Triggerseverity: high

Triggerurl:

Item values:

1. Network inbound rating (station32.example.com: net. If. In [eth0]): 370

2. * unknown * (* unknown *: * unknown *): * unknown *

3. * unknown * (* unknown *: * unknown *): * unknown *

Originalevent ID: 384 &

This article is from the "aha45" blog, please be sure to keep this source http://manfred12.blog.51cto.com/137312/1438074

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.