Brief introduction:
Zabbix is an enterprise-class open source solution that provides distributed system monitoring and network monitoring capabilities based on a web interface.
Zabbix can monitor various network parameters, ensure the safe operation of the server system, and provide a flexible notification mechanism to enable system administrators to quickly locate/resolve various problems.
Zabbix consists of 2 parts, Zabbix server and optional Components Zabbix agent. Zabbix server can provide monitoring of remote server/network status, data collection and other functions through Snmp,zabbix agent,ping, port monitoring and other methods.
Marking:
(Zabbix must rely on lamp or LNMP platform to run, you can refer to the following tutorials to configure the LNMP platform, lnmp the installation sequence of points, generally according to LNMP name sequence to install the software. )
linux+apache+mysql+php = LAMP
linux+nginx+mysql+php = Lnmp
Configure Nginx Reference this tutorial:
Http://www.cnblogs.com/zoulongbin/p/6253568.html
To configure MySQL, refer to this tutorial:
Http://www.cnblogs.com/zoulongbin/p/6287167.html
To configure PHP, refer to this tutorial:
Http://www.cnblogs.com/zoulongbin/p/6379272.html
Configuring the network Yum Source reference this tutorial:
Http://www.cnblogs.com/zoulongbin/p/5773330.html
Zabbix installation Package Website:
Http://www.zabbix.com/download
Tips: Linux Software compilation installation requires two installation packages gcc gcc-c++ make can be installed online using yum-y install gcc gcc-c++ make.
Callout:Zabbix installation package storage path under/USR/LOCAL/SRC directory, please shut down the Linux server firewall/etc/init.d/iptables stop
1, MySQL create Zabbix database and user.
2. Import the database inside the Zabbix installation package into the Zabiix database created by Msqyl.
3. Add Zabbix to start loading MySQL shared library libmysqlclient.so.18. (This step is important, if not configured Zabbix boot will be an error)
4, create Zabbix user and user group, and add Zabbix user to Zabbix group, online yum installs Net-snmp-devel dependent package.
[Email protected] ~]# groupadd Zabbix #创建zabbix用户组
[[email protected] ~]# useradd zabbix-g zabbix-s/sbin/nologin #创建zabbix用户 and pull the Zabbix user into Zabbix User groups, prohibit Zabbix users from logging on to the system
[[email protected] ~]# yum-y install net-snmp-devel #在线yum安装net-snmp-devel Dependency Package
5. Compile and install Zabbix service.
./configure--prefix=/usr/local/zabbix--enable-server--enable-agent--with-net-snmp--with-libcurl--enable-proxy- -with-mysql=/usr/local/mysql/bin/mysql_config
6. Add the port corresponding to the Zabbix service.
7, modify the Zabbix configuration file.
dbhost=127.0.0.1 #服务器主机
Dbname=zabbix #数据库名称
Dbuser=zabbix #数据库用户名
dbpassword=123456 #数据库密码
#ListenIP =0.0.0.0 #监听地址, this option defaults to the comment, default 0.0.0.0 can listen to any IP address, do not set to 127.0.0.1, otherwise it will cause 10051 port exception
Alertscriptspath=/usr/local/zabbix/share/zabbix/alertscripts #zabbix #运行脚本存放目录
: wq! #保存退出
#ListenIP =0.0.0.0 #监听地址, this option defaults to the comment, default 0.0.0.0 can listen to any IP address, do not set to 127.0.0.1, otherwise it will cause 10051 port exception
hostname=vmredhat6.5 #填写zabbix服务器计算机名称
include=/usr/local/zabbix/etc/zabbix_agentd.conf.d/
Unsafeuserparameters=1 #启用自定义key
: wq! #保存退出
8. Add Zabbix boot script.
9. Configure the Zabbix Service Web site.
10, modify the PHP configuration file parameters.
Post_max_size =16m
Max_execution_time =300
Max_input_time =300
: wq! #保存退出
Request_terminate_timeout = 300
: wq! #保存退出
11. Open Browser input http://127.0.0.1/zabbix/setup.php install web in Zabbix server
12. If you perform the next step, the following error is indicated.
Workaround:
13. Show all OK in order to perform the next operation.
14, according to the configuration.
15. Always click Next until finished.
Marking:
Open Zabbix page Part of the place if it shows garbled, as shown in
Workaround:
Caused this problem mainly because the Zabbix Web side of the library is not complete, you need to add the Chinese font.
(1), Windows operating system----Control Panel----Font----Choose a font to copy it and upload it to the Zabbix server.
(2), copy it to the Zabbix Web side of the fonts directory/usr/local/nginx/html/zabbix/fonts/, and change the TTF suffix to TTF, modify the Zabbix web-side/include/ defines.inc.php.
Define (' Zbx_font_name ', ' Dejavusans ');
Change the original font name to upload the Chinese font name Simhei
Define (' Zbx_font_name ', ' Simhei ');
Define (' Zbx_graph_font_name ', ' Dejavusans ');
Change the original font name to upload the Chinese font name Simhei
Define (' Zbx_graph_font_name ', ' Simhei ');
Other functions: Zabbix Web page to modify the Chinese version and black theme.
1, click on personal information maintenance.
2, the language changes into Chinese, the theme changed into black theme.
3, effect.
Thank you for this blog for reference http://www.osyunwei.com/archives/7891.html
Linux system installation Configuration Zabbix service (source installation)