What is Zabbix?
Zabbix is an open source enterprise-class distributed solution.
Zabbix is a software that monitors multiple resources, including the network, the health of integrated services, and so on. Zabbix uses a flexible notification mechanism that allows users to configure e-mail-based event alerting mechanisms that allow for fast feedback of server problems, Zabbix provides a storage-based historical data that shows the characteristics of an outstanding report and data presentation, which makes Zabbix the most ideal planning.
There are already many different sizes of organizations in the world using Zabbix as their main monitoring platform.
Zabbix Overview
structure
Zabbix has several major software components, and their role is as follows:
Service:
Zabbix server is a central component that agents reports availability and integrated information and statistics to it, which is the central repository for the entire monitoring and stores all statistical and monitoring information.
Data Storage
All configuration information and information collected by Zabbix are stored in the database.
Web Interface
To make it easier to access Zabbix,zabbix official provides a web-based interface that is part of the zabbix-server, usually (but not necessarily) run on the same physical machine as Zabbix-server
Agent
Zabbix proxy can be used to collect performance and availability data on behalf of Zabbix-server, which is an optional part of Zabbix deployment, however, it is very good for distributing a single zabbix-server load
Agent Client
Zabbix-agent is deployed on target servers that need to be monitored, it can monitor local application and resource information, and reports the information collected to Zabbix-server.
Related terms
Host: The network device to monitor, which can be specified by IP or DNS name
Host group: The logical container for hosts, which can contain hosts and templates, but hosts and templates within the same group cannot be linked to each other; Host groups are typically used when assigning monitoring permissions to users or groups of users
Item (monitor): A specific monitoring indicator of the relevant data, which is from the monitored object; item is the core of Zabbix data collection, there is no item, there will be no data, relative to a monitoring object, each item has "key" to identify
Trigger (Trigger): An expression that evaluates whether the data received within a particular item of a monitor object is within a reasonable range, that is, the threshold value, the received data is greater than the threshold, and the trigger state is converted from OK to problem, and when the amount of data is returned to a reasonable range again, Its status will be converted from problem back to OK
Event: A noteworthy event that occurs, such as a change in the state of a trigger, the automatic registration of a new agent or a re-online agent, and so on
Action: Refers to a pre-defined processing method for a specific event, by including an action (such as sending a notification) and a condition (when the action is taken)
Escalation (Alarm upgrade): Send an alert or execute a custom scheme of remote command, such as sending an alert every 5min, send 5 times, etc.
Media (media): means and channels for sending notifications, such as email, jabber, or SMS
Notification (Notification): Information about an event sent to the user through the selected media
Remote command: A predefined command that can be executed automatically when the monitored host is under a certain condition
Template: A set of preset entries that are used to quickly define a monitored host, usually containing item, trigger, graph, screen, application, and low-level discovery rule ; templates can be linked directly to a single host
Application (Application): A set of item
Web Scennaro (Web Scene): One or more HTTP requests to detect Web site availability
Frontend (front end): Zabbix Web Interface
Installation Requirements:
Hardware
Memory: Zabbix requires physical memory and disk space, 128M of physical memory and 256 of disk space, but more memory can make the database run faster and Zabbix work faster.
CPU: This depends on the database engine you choose, and the parameters of the monitoring
Sample configuration:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/A0/wKiom1W6Q7qRH0ypAAFpLntocUE526.jpg "title=" Zabbix.jpg "alt=" Wkiom1w6q7qrh0ypaafplntocue526.jpg "/>
Supported Platforms
Linux
IBM AIX
Freebsd
NetBSD
Openbsd
HP-UX
MacOSX
Solaris
windows:2000, Server 2003, XP, Vista, server 7, 8, Server (Zabbix agent only)
Software
Database requirements
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/A0/wKiom1W6RDmA1w3_AAICUFQOOok857.jpg "title=" db.jpg "alt=" Wkiom1w6rdma1w3_aaicufqoook857.jpg "/>
Zabbix Front-end requirements
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/9D/wKioL1W6Rn-ClBOVAAPd7DeYlCE301.jpg "title=" front end. jpg "alt=" Wkiol1w6rn-clbovaapd7deylce301.jpg "/>
Time synchronization
For Zabbix, you can use NTP to ensure that your server time is correct, and that time synchronization is required.
Installation
There are 3 ways of installing
Install based on the release package, compile and install the source code, download the virtual application
Latest Package: http://www.zabbix.com/download.php
Below is a description of the package-based installation
This machine uses the CentOS 6.4 version
Configuring the Zabbix Software Warehouse
# RPM-IVH http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
Installing the Zabbix Package
Install on Zabbix-server, if need to monitor the machine also need to install agent
# yum Install Zabbix-server-mysql Zabbix-web-mysql
Install on machines that need to be monitored
# yum Install Zabbix-agent
Note:
installing the above two packages on the zabbix-server will install the apache,php
But MySQL is not installed, so MySQL needs to be installed separately
#yum Install Mysql-server mysql-y
Initialize the database and replace your user name and password
shell> mysql-uroot-p<password>mysql> CREATE database Zabbix character Set UTF8 collate utf8_bin;mysql> GR Ant all privileges on zabbix.* to [e-mail protected] identified by ' <password> ';mysql> quit;shell> mysql-uzabb Ix-p<password> Zabbix < database/mysql/schema.sql# stop here if is creating database for Zabbix proxyshell& Gt Mysql-uzabbix-p<password> Zabbix < database/mysql/images.sqlshell> mysql-uzabbix-p<password> Zabbix < Database/mysql/data.sql
The default three script path may be incorrect, my three MySQL script address is as follows:
/usr/share/doc/zabbix-server-mysql-2.4.5/create
Modify the PHP configuration for the Zabbix front end
/etc/httpd/conf.d/zabbix.conf
The default does not need to modify, only need to modify the time zone, change to Aisa/shanghai
Php_value max_execution_time 300php_value memory_limit 128mphp_value post_max_size 16Mphp_value upload_max_filesize 2mphp_value max_input_time 300# php_value date.timezone Europe/riga
After the modification, restart Apache, because PHP is a module that exists as Apache
# Service httpd Restart
Now you have access to the front page.
HTTP//Your IP address/zabbix
The default account/password is: Admin/zabbix.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/70/9D/wKioL1W6UvOgvaCUAAikBYuJvzI165.jpg "title=" Yibiao.jpg "alt=" Wkiol1w6uvogvacuaaikbyujvzi165.jpg "/>
At this point, the simple installation of this, followed by the addition of servers and services, please do please look forward to!
This article is from the "Linux is belong to You" blog, make sure to keep this source http://jwh5566.blog.51cto.com/7394620/1680367
Step-by-step follow official documents to install the latest Zabbix (2.4.5) A