Zabbix basic functions User Manual

Source: Internet
Author: User

Zabbix basic functions User Manual

In the previous article, I installed zabbix server and zabbix agent on the same host (see). Now, how can I configure zabbix server to monitor myself.

Run vim/etc/zabbix/zabbix_agentd.conf to edit the agent configuration file.

Specify the servers that can obtain data. You can use commas to separate multiple servers.

This parameter indicates the servers on which the agent sends data. There are two types of data retrieval: active and passive. The first is that the agent actively sends the monitored data to the server, and the second is that the server obtains the data from the client. When there are too many hosts, the active mode can reduce the pressure on the server.

The host name is the host name of the server (preferably the host name after dns resolution) and must be globally unique.

Start agent: service zabbix-agent start ss-tnl

Port 10050 is enabled and the agent is started.

Return to the web interface, find the host option in configuration, and click disable to activate the current host.

The yum-y install zabbix-2.4.7-1.el6.x86_64.rpm zabbix-agent-2.4.7-1.el6.x86_64.rpm is now starting a new virtual machine as a client.

Vim/etc/zabbix/zabbix_agentd.conf

Specify the server address.

Specify that the client sends data to the server in active mode.

The Host Name of the host.

Click Create host.

Fill in these items and click add. A monitored host is added, but the item to be monitored is not defined yet, therefore, the host to be monitored is not actually activated at this time, and the final Z is not green, which is also caused by this reason.

If the last icon appears like this, no route to host may be caused by a firewall. Add iptables rules. In this experiment, disable the Firewall service iptables stop directly.

Next, simply add an item (Monitoring Project) for this agent and click Items and Create item.

In the figure, the item is named, the monitoring mode is active, and the data type is decimal. The eth0 Nic inbound bytes of the agent are monitored, and the historical data is stored for 90 days, trend data is stored for 365 days, historical data is real-time data, and trend data is the average value per hour. To facilitate the test, I set the data sending interval to 3 seconds and put the item in the traffic stats application.

Create a graph for this item: Click Graphs under the Hosts directory, and then click Create graphs to add the created item.

Click preview to see that data has been collected.

Next, define a trigger for this item and click triggers.

Defines the trigger for the item client1: Inbound Traffic. The second function indicates that the event is triggered when the last value is greater than 50. Then define a level and click Add.

It is displayed that the trigger you just defined has been triggered. You can also see it in Events.

Next, define the action triggered by the trigger, and click Actions and create action in Configuration.

Click conditions

It is defined to perform this operation every 60 seconds. The alarm upgrade is not defined in step. The operation type is sending information, and the object is zabbix administrator user, which is sent by email. Now define the mail Media option, which is defined in Media types in Administration.

Click Email,

SMTP email specifies the sender and click update. Then define a user. Here I create a new user.

Define its media

Define permissions in the user group.

Here I have defined a new user and changed the user of the original action to the user defined here.

Because the mail is sent only when the status is from OK to problem, because my trigger has been triggered at the beginning, you need to disable the item before enable, so that the mail can be sent.

Supplement: You can directly use the zabbix_get-s Client ip address-k "specified item" on the server ".

Some Zabbix Tutorials:

Compile and install Zabbix2.4.5 source code in Ubuntu 14.04

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy Zabbix in CentOS 6.3

Zabbix distributed monitoring system practice

Under CentOS 6.3, Zabbix monitors apache server-status

Monitoring MySQL database Parameters Using Zabbix in CentOS 6.3

Install Zabbix 2.0.6 in 64-bit CentOS 6.2

ZABBIX details: click here
ZABBIX: click here

This article permanently updates the link address:

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.