Rhel6.3 i386
Zabbix 2.0.3
Zabbix is an enterprise-level open-source solution that provides distributed system monitoring and network monitoring functions based on the Web interface.
Zabbix can monitor various network parameters to ensure secure operation of server systems. It also provides a soft notification mechanism for system administrators to quickly locate and solve various problems.
Zabbix consists of two parts: zabbixserver and the optional component zabbix agent.
Zabbix server can provide remote server/network status monitoring, data collection and other functions through SNMP, zabbix agent, ping, port monitoring and other methods, it can run in Linux, Solaris, HP-UX, aix, Free BSD, open BSD, OS X, and other platforms.
The zabbix agent must be installed on the monitored target server. It collects hardware information, memory, CPU, and other information related to the operating system. Zabbix agent can run on Linux, Solaris, HP-UX, Aix, Free BSD, open BSD, OS X, Tru64/osf1, Windows NT4.0, Windows 2000/2003/XP/Vista) and other systems.
The zabbix server can independently monitor the service status of the remote server. It can also be used with the zabbix agent to poll the zabbix agent to actively receive monitoring data (trapping mode ), it can also passively receive data sent by zabbix agent (trapping mode ).
In addition, zabbix server also supports SNMP (V1, V2) and can be used with SNMP software (for example, net-snmp.
Main features of zabbix:
-Simple installation and configuration, low learning cost
-Supports multiple languages (including Chinese)
-Free Open Source
-Automatically discover servers and network devices
-Distributed monitoring and centralized web management
-Agent-free monitoring
-User security authentication and soft authorization Methods
-Set or view monitoring results on the web interface
-Email and other notification functions
And so on.
Zabbix main functions:
-CPU load
-Memory usage
-Disk usage
-Network condition
-Port Monitoring
-Log monitoring
Source Code address: http://sourceforge.net/projects/zabbix/zabbix
Http://www.zabbix.com/download.phpzabbix-agents
Zabbix Latest Version 2.0.3:
# Wget
Http://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.0.3/zabbix-2.0.3.tar.gz
Zabbix-agents 2.0.3:
# Wget
Http://www.zabbix.com/downloads/2.0.3/zabbix_agents_2.0.3.linux2_6.i386.tar.gz
Zabbix is web-based. For more information, see lamp installation.
Zabbixinstall
# Mysql-uroot-P
Mysql>Create Database zabbix;
Query OK, 1 row affected (0.17sec)
Mysql>Grant all on zabbix. * To zabbix @ 'localhost' identified by '123 ';
Query OK, 0 rows affected (0.14sec)
Mysql>Flush privileges;
Query OK, 0 rows affected (0.09sec)
Mysql>Quit
#Tar xf zabbix-2.0.3.tar.gz
#CD zabbix-2.0.3
#Mysql-uroot-P <database/MySQL/Schema. SQL zabbix
#Mysql-uroot-P <database/MySQL/images. SQL zabbix
#Mysql-uroot-P <database/MySQL/data. SQL zabbix
#. /Configure -- prefix =/usr/local/zabbix -- enable-server -- enable-agent -- enable-proxy -- With-mysql =/usr/local/MySQL/bin/mysql_config -- -net-snmp -- With-libcurl
// -- Prefix Specify Zabbix Installation directory, -- Enable-Server Supported Zabbix Server, -- Enable-agent Supported Zabbix Proxy, -- Enable-proxy Supported Zabbix Proxy server, -- With-MySQL Use MySQL You can select a path for the client library Mysql_config , -- With-net-snmp Use Net-snmp Software Package , Select a path Net-snmp Configuration , -- With-libcurl Use Curl Package
#Make install
#Cat>/etc/services <EOF
Zabbix-Agent 10050/tcp # zabbixagent
Zabbix-Agent 10050/udp # zabbix agent
Zabbix-Trapper 10051/tcp # zabbixtrapper
Zabbix-Trapper 10051/udp # zabbix trapper
EOF
#Mkdir/etc/zabbix/
#CP/usr/src/software/zabbix/zabbix-2.0.3/CONF/*/etc/zabbix/
#CP-r/usr/src/software/zabbix/zabbix-2.0.3/frontends/PHP // www/zabbix
# Chown daemon: Daemon-r/www/zabbix/
#CD/usr/local/zabbix/bin/
#For I in *; do ln-S/usr/local/zabbix/bin/$ {I}/usr/bin/$ {I}; done
#CD/usr/local/zabbix/sbin/
#For I in *; do ln-S/usr/local/zabbix/sbin/$ {I}/usr/sbin/$ {I}; done
#CP/usr/src/software/zabbix/zabbix-2.0.3/MISC/init. d/Fedora/CORE/*/etc/init. d/
#Chmod + x/etc/init. d/zabbix_agentd
#Chmod + x/etc/init. d/zabbix_server
#Vim/etc/init. d/zabbix_server
#Vim/etc/init. d/zabbix_agentd
Modify as follows:
#Grep 'basedir = '/etc/init. d/zabbix_agentd
Basedir =/usr/local/zabbix
#Grep 'basedir = '/etc/init. d/zabbix_server
Basedir =/usr/local/zabbix
#
#Chkconfig zabbix_server on
#Chkconfig zabbix_agentd on
#Chkconfig -- list | grep zabbix
Zabbix_agentd 0: Disable 1: Disable 2: Enable 3: Enable 4: Enable 5: Enable 6: Disable
Zabbix_server 0: Disable 1: Disable 2: Enable 3: Enable 4: Enable 5: Enable 6: Disable
#/Etc/init. d/zabbix_agentd start
#/Etc/init. d/zabbix_server start
#/Etc/init. d/Apache restart
#/Etc/init. d/mysql5 restart
#/Etc/init. d/snmpd restart
Enter http: // ip/zabbix in the browser
#PWD
/Usr/src/lamp/php-5.3.10/EXT
#CD bcmath/
#Phpize
Processing ing:
Php api version: 20090626
Zend module api no: 20090626
Zend extension api no: 220090626
#./Configure
#Make & make install
......
CP./. libs/bcmath. So/usr/src/lamp/php-5.3.10/EXT/bcmath/modules/Bcmath. So
......
Installing plugin dextensions:/usr/local/lib/PHP/extensions/no-debug-non-zts-20090626/
#PWD
/Usr/src/lamp/php-5.3.10/EXT/gettext
#Phpize
Processing ing:
Php api version: 20090626
Zend module api no: 20090626
Zend extension api no: 220090626
#./Configure & make install
......
CP./. libs/gettext. So/usr/src/lamp/php-5.3.10/EXT/gettext/modules/Gettext. So
......
Installing plugin dextensions:/usr/local/lib/PHP/extensions/no-debug-non-zts-20090626/
#Vim/usr/local/lib/PHP. ini
#Grep-V '^;'/usr/local/lib/PHP. ini | grep \
-E 'Post _ max | max_execution | max_input | bcmath. So | gettext. so'
Max_execution_time= 300
Max_input_time= 300
Post_max_size = 16 m
Extension = bcmath. So
Extension = gettext. So
#/Etc/init. d/Apache restart
Refresh the page.
Steps 4 and 5 are not supported here
Default User:Admin
Password:Zabbix
After logging in, you can see the main web interface of zabbix.
You can change the language to Chinese.
Save it! We strongly recommend that you use the English interface !!!
The basic installation steps are as follows!
Reference: http://www.oschina.net/p/zabbix