In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This blog post is your own record.
The Zabbix3.0 installation process is similar to 2.x
Zabbix3.0.4 source code installation
Server installation:
1. Basic environment:
Centos6.7
Nginx:1.9
Mysql:5.5
PHP:5.5.30 (zabbix_3.0 requires php above 5.4)
Curl:2.0 (zabbix3.0 requires curl2.0 or above)
Environmental installation strategy
Second, install zabbix (version zabbix-3.0.4)
Add zabbix users and disable login:
[root@monitoring-45~] # useradd-r-s / sbin/nologin zabbix
Add soft connection
[root@monitoring-45~] # ln-s / usr/local/lib/libiconv.so.2 / usr/lib/libiconv.so.2
Make the configuration effective immediately
[root@monitoring-45~] # / sbin/ldconfig
Download zabbix
(download link: http://down.51cto.com/data/2237153)
[root@monitoring-45~] # wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.0.4/zabbix-3.0.4.tar.gz
Install dependency packages
[root@monitoring-45~] # yum install gcc make unixODBC unixODBC-devel net-snmp net-snmp-devel net-snmp-utilscurl curl-devel libssh3-y
Compile and install zabbix-server
[root@monitoring-45zabbix-3.0.4] # which mysql_config
/ data/server/mysql/bin/mysql_config
[root@monitoring-45~] # tar xf zabbix-3.0.4.tar.gz
[root@monitoring-45install] # cd zabbix-3.0.4
[root@monitoring-45zabbix-3.0.4] # / configure-- prefix=/usr/local/zabbix-- enable-server--enable-agent-- with-mysql=/data/server/mysql/bin/mysql_config--enable-java-- with-net-snmp--with-libcurl-- with-libxml2-- enable-ipv6-- with-ssh3
Parameter description:
-prefix=/usr/local/zabbix is the specified installation directory as / usr/local/zabbix
-enable-server for installing zabbix server programs
-enable-agent to install the agent program
-with-mysql for using mysql database
-enable-ipv6 enables ipv6 support
-with-net-snmp enables snmp support
-with-libcurl enables curl
-with-libxml2 compiles xml module, which is mainly used to monitor vm virtual machine
-- enable-java supports jvm monitoring
[root@monitoring-45zabbix-3.0.4] # make & & make install
Add zabbix users to the database and authorize
[root@monitoring-45zabbix-3.0.4] # mysql-uroot-p
Mysql > create database zabbix character set utf8 collate utf8_bin
Mysql > grant all privileges on zabbix.* to zabbix@localhost identified by''
Mysql > flush privileges
Import zabbix data:
[root@monitoring-45zabbix-3.0.4] # mysql-uzabbix-p zabbix
< database/mysql/schema.sql [root@monitoring-45zabbix-3.0.4]# mysql -uzabbix -p zabbix < database/mysql/p_w_picpaths.sql [root@monitoring-45zabbix-3.0.4]# mysql -uzabbix -p zabbix < database/mysql/data.sql 修改配置文件zabbix.conf: [root@monitoring-45zabbix-3.0.4]# vim /usr/local/etc/zabbix_server.conf DBPassword=zabbix DBName=zabbix#数据库名称 DBUser=zabbix#数据库用户名 DBPassword=#数据库密码 ListenIP=localhost#数据库ip地址 AlertScriptsPath= #zabbix运行脚本存放目录 配置启动方式: [root@monitoring-45zabbix-3.0.4]# cp misc/init.d/fedora/core/zabbix_* /etc/init.d/ [root@monitoring-45zabbix-3.0.4]# chmod 755 /etc/init.d/zabbix_* [root@monitoring-45zabbix-3.0.4]# vim /etc/init.d/zabbix_server [root@monitoring-45zabbix-3.0.4]# vim /etc/init.d/zabbix_agentd 将两个配置文件中的zabbix安装目录修改为/usr/local/zabbix 启动: /usr/local/zabbix/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf 添加到启动项: echo '/usr/local/zabbix/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf' >> / etc/rc.local
3. Zabbix manages the website configuration. The default login password is Admin/zabbix.
[root@monitoring-45zabbix-3.0.4] # pwd
[root@monitoring-45zabbix-3.0.4] # cp-pr frontends/php/* / data/html/
Open the website and enter the page configuration: slightly (note that the final php configuration page needs to be manually)
Fourth, modify to the Chinese interface
Click the humanoid icon in the upper right corner of the page to modify it or:
[root@monitoring-45 zabbix] # vim include/locales.inc.php
# change line 55 to
'zh_CN'= > [' name' = > _ ('Chinese (zh_CN)'), 'display' = > true], # change false to true
After modifying here, the interface will be in Chinese, but the graphic monitoring will be garbled, and do the following:
[root@monitoring-45 zabbix] # vim include/defines.inc.php
# modify behavior 93
Define ('ZBX_FONT_NAME','ziti')
# modify behavior 45
Define ('ZBX_GRAPH_FONT_NAME','ziti')
Then download the Microsoft font and rename it to ziti.ttf, put it in the fonts in the root directory of the site, and refresh the page.
Client agent installation:
1. Configure and install zabbix-agent
Add a user:
[root@jkbin] # useradd-r-s / sbin/nologin zabbix & > / dev/null
Download the zabbix installation package:
[root@monitoring-45~] # wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.0.4/zabbix-3.0.4.tar.gz
Compile and install:
[root@jktmp] # tar xf zabbix-3.0.4.tar.gz
[root@jktmp] # cd zabbix-3.0.4
[root@jkzabbix-3.0.4] # / configure-- prefix=/usr/local/zabbix_agent-- enable-agent
Parameter description:
-prefix=/usr/local/zabbix_agen is the specified installation directory as / usr/local/zabbix
-enable-server for installing zabbix server programs
-enable-agent to install the agent program
[root@jkzabbix-3.0.4] # make & & make install
Copy the startup script:
[root@jk zabbix-3.0.4] # cp / misc/init.d/fedora/core/zabbix_agentd/etc/init.d/
Modify the configuration file:
[root@jkzabbix-3.0.4] # vim / usr/local/zabbix_agent/etc/zabbix_agentd.conf
LogFile=/tmp/zabbix_agentd.log
Server= # Zabbix Server IP (passive mode, client passive)
ServerActive= # Zabbix Server IP (active mode, if you fill in serverip, you can comment out if you don't use it)
Hostname= # has its own host name, which corresponds to the host name when the host was added to the zabiix web page.
Include=/usr/local/zabbix_agent/etc/zabbix_agentd.conf.d/*.conf # loads a custom monitoring profile
UnsafeUserParameters=1 # allows custom Key
Add a firewall:
Iptables-I INPUT-s "serverip"-m state--state NEW-m tcp-p tcp-- dport 10050-j ACCEPT
[root@jk zabbix-3.0.4] # / etc/init.d/iptables save
[root@jk zabbix-3.0.4] # / etc/init.d/iptables reload
Start:
[root@jk~] # / usr/local/zabbix_agent/sbin/zabbix_agentd-c / usr/local/zabbix_agent/etc/zabbix_agentd.conf
Add to startup item:
Echo'/ usr/local/zabbix_agent/sbin/zabbix_agentd-c / usr/local/zabbix_agent/etc/zabbix_agentd.conf'> > / etc/rc.local
II. Web page configuration
Reference: https://github.com/monitoringartist/zabbix-xxl/blob/c58067f958254f981dd73d950124a1a956d3fa19/Dockerfile/zabbix-3.0/Dockerfile#L183-189
Http://www.tuicool.com/articles/JRVVniM
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.