RHEL7.4 編譯安裝zabbix-3.0.24

RHEL7.4 X64 編譯安裝zabbix-3.0.24

官網下載源碼包:zabbix-3.0.24.tar.gz
地址:https://www.zabbix.com/downloadphp


1、系統環境準備
vi /etc/selinux/config --disabled
setenforce 0
systemctl stop firewalldhtml

2、編譯安裝
tar xf szabbix-3.0.24.tar.gz -C /usr/local/zabbix
cd /usr/local/zabbix_server
./configure --prefix=/usr/local/zabbix_server --enable-server --with-mysql --with-net-snmp --with-libcurl --with-libxml2 --enable-agent
提示unable to find net-snmp-config 或者提示缺乏其它相關文件,
yum install xxx-devel 相關包便可mysql

make&&make install

3、配置zabbix_server
vi /usr/local/zabbix_server/etc/zabbix_server.conflinux

LogFile=/tmp/zabbix_server.log
DBHost=192.168.10.100
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
JavaGateway=本機IP
StartJavaPollers=5web

4、啓動服務
/usr/local/zabbix_server/sbin/zabbix_server -c /usr/local/zabbix_server/etc/zabbix_server.conf //啓動服
netstat -anp | grep 10051 查看端口是否起來sql

5、安裝zabbix-web
yum -y install httpd php php-mysql libXpm php-bcmath php-gd php-mbstring php-xml t1lib瀏覽器

mkdir -p /var/www/html/zabbix
cp -a /usr/local/zabbix_server/frontends/* /var/www/html/zabbix/frontend

6、配置PHP 以及啓動httpd
vi /etc/php.ini
date.timezone = Asia/Shanghai
post_max_size = 16M
max_execution_time = 300
max_input_time = 300curl

service httpd startide

7、用瀏覽器訪問以及安裝指導步驟安裝

用瀏覽器訪問http://192.168.10.100/zabbix
並按照提示安裝:
RHEL7.4 編譯安裝zabbix-3.0.24
8、配置知足zabbix 的php條件生成zabbix.conf.php
而且若是保存失敗,手動下載下來,上傳至:/var/www/html/zabbix/conf/zabbix.conf.php
RHEL7.4 編譯安裝zabbix-3.0.24

9、登入zabbix
默認系統管理員帳戶是:Admin/zabbix
在登入後可修改系統默認語言--可改成簡體中文 ,以及添加另外的系統管理員帳戶
Language---Chinese(zh_CN)---update
Administation---Users---Create user
10、安裝zabbix-agent
因爲前面已經 ./configure --prefix=/usr/local/zabbix_server 已經包含 --enable-agent 因此這裏就直接修改代理配置再啓動就能夠了
vi /usr/local/zabbix_server/etc/zabbix_agentd.conf
LogFile=/tmp/zabbix_agentd.log
Server=192.168.10.100
ServerActive=192.168.10.100
Hostname=192.10.100
User=zabbix
zabbix_agentd -c /usr/local/zabbix_server/etc/zabbix_agentd.conf #啓動程序
查看 ps -ef | grep zabbix_agentd
RHEL7.4 編譯安裝zabbix-3.0.24

相關文章
相關標籤/搜索