Monitoring system:
To be able to monitor hardware, software or other business metrics
Also to be able to collect data, alarms, storage, display, etc.
Monitoring channels:
Ssh,snmp,telnet,agent,ipmi
Monitoring tool: Zabbix(tone with Zbix)
The following is Wikipedia content:
Zabbix is a network monitoring and management system developed by Alexei Vladishev, based on the server-client architecture. can be used to monitor the status of various network services, servers, and network machines.
Use a variety of database-end such as MySQL, PostgreSQL, SQLite, Oracle or IBM DB2 to store data. The Server side is based on the C language, WEB management side frontend is based on PHP. Zabbix can be monitored in a variety of ways. You can only use simple Check to not install Client side, or SMTP or HTTP based ... A variety of agreements to be monitored. After installing the Zabbix agent in Windows on clients such as UNIX, you can monitor various states such as CPU Load, network usage, hard disk capacity, and so on. And even if the Agent is not installed in the monitoring object, Zabbix can also monitor the target via SNMP, TCP, ICMP, IPMI, SSH, Telnet. In addition, Zabbix contains various Item alert functions such as XMPP.
Zabbix Implementation Scenarios
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/80/77/wKiom1dCoNTiAtnUAAAkm4jJEBI256.png "title=" Zabbix.png "alt=" Wkiom1dcontiatnuaaakm4jjebi256.png "/>
The composition of the Zabbix program:
zabbix_server: Server daemon process;
zabbix_agentd:agent-end daemon process;
zabbix_proxy: Proxy server, optional components;
zabbix_get: Command line tool, manual test to initiate data acquisition request to agent;
zabbix_sender: Command line tool, run on the agent side, manually send data to the server side;
Zabbix_java_gateway:java Gateway;
Basic implementation
It is convenient to use Zabbix to monitor this machine. also provides database, Zabbix-server, zabbix-web,zabbix-agent
Yum Source for Zabbix official source
http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/
#]~ Yum install mariadb-server systemctl start Mariadb.service vim/etc/my.cnf[mysqld_safe]log-error=/var/log/mariad b/mariadb.logpid-file=/var/run/mariadb/mariadb.pidskip_name_resolve=on#]~ mysqlcreate database Zabbix charset ' UTF8 '; Grant all on zabbix.* to [e-mail protected] Identifien by ' Zabbix '; flush privileges;exit#]~ yum Install Zabbix-server-mys QL zabbix-web zabbix-agent zabbix-web-mysql zabbix-sender zabbix-get omitting the installation process
Add the default database for Zabbix
#]~ Mysql-uzabbix-p Zabbix </usr/share/doc/zabbix-server-mysql-3.0.2/create.sql
Modifying the Zabbix-server configuration file
#]~ vim/etc/zabbix/zabbix_server.conf Modify the following items: Listenport=10051sourceip=logtype=filelogfile=/var/log/zabbix/zabbix _server.loglogfilesize=0pidfile=/var/run/zabbix/zabbix_server.piddbhost=localhostdbname=zabbixdbuser= Zbxuserdbpassword=zbxpassdbsocket=/var/lib/mysql/mysql.sock
Start the service:
#]~ systemctl Start Zabbix-server.service
Note: CentOS 7.0 and 7.1 need to upgrade the trousers package version;
Configure Zabbix-web
Configure the time zone specification for PHP:
(1) php.ini (valid for PHP globally)
(2)/etc/httpd/conf.d/zabbix.conf (effective only for Zabbix)
The second way is used here
<ifmodule mod_php5.c> php_value max_execution_time php_value memory_limit 128M php_value post_max_siz E 16M php_value upload_max_filesize 2M php_value max_input_time php_value always_populate_raw_post_data-1 Php_value Date.timezone Asia/shanghai #默认注释, modified for Asia Shanghai </IfModule>
Install and start httpd
#]~ systemctl Start Httpd.service
Visit Url:http://server/zabbix
Post-installation profile:/etc/zabbix/web/zabbix.conf.php
Default account and password used when logging in:
Admin/zabbix
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/80/76/wKioL1dCov2DSQWNAABvoloLOX8264.png "title=" Zabbix1.png "alt=" Wkiol1dcov2dsqwnaabvololox8264.png "/>
Change to Chinese display
vim/usr/share/zabbix/include/locales.inc.php
' ZH_CN ' = [' name ' = ' = ' (' Chinese (zh_cn) '), ' display ' = ' true ', #将false改为true, then select Chinese in the Web interface
Start Zabbix-agent
#]~ systemctl Start Zabbix-agent.service
Add a monitored host:
Host group----appliction-----customed---triggers
Add Monitoring Host
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/78/wKiom1dCqiaS74uJAAWfHn0Wzn8580.gif "title=" Create a host. gif "alt=" Wkiom1dcqias74ujaawfhn0wzn8580.gif "/>
Adding monitoring items
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/76/wKioL1dCqzvww75tAAGJKbSlOZc646.gif "title=" Item.gif "alt=" Wkiol1dcqzvww75taagjkbslozc646.gif "/>
Wait a minute, you'll have the data.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/80/78/wKiom1dCrCmD28ddAABYgy1AqbA909.png "style=" float: none; "title=" Shuju.png "alt=" Wkiom1dcrcmd28ddaabygy1aqba909.png "/>
To view the graph, you have drawn a diagram
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/80/78/wKiom1dCrCqxlhgiAACLb4w9_Wg318.png "style=" float: none; "title=" Tuxing.png "alt=" Wkiom1dcrcqxlhgiaaclb4w9_wg318.png "/>
This article from the "mood refined, quiet Zhiyuan" blog, please be sure to keep this source http://zhaoyongtao.blog.51cto.com/10955972/1782127
Zabbix Monitoring Introduction, Basic installation Configuration