zabbix由2部分構(gòu)成,zabbix server與可選組件zabbix agent。
創(chuàng)新互聯(lián)建站成立十余年來,這條路我們正越走越好,積累了技術(shù)與客戶資源,形成了良好的口碑。為客戶提供網(wǎng)站制作、成都做網(wǎng)站、網(wǎng)站策劃、網(wǎng)頁設(shè)計(jì)、域名注冊(cè)、網(wǎng)絡(luò)營(yíng)銷、VI設(shè)計(jì)、網(wǎng)站改版、漏洞修補(bǔ)等服務(wù)。網(wǎng)站是否美觀、功能強(qiáng)大、用戶體驗(yàn)好、性價(jià)比高、打開快等等,這些對(duì)于網(wǎng)站建設(shè)都非常重要,創(chuàng)新互聯(lián)建站通過對(duì)建站技術(shù)性的掌握、對(duì)創(chuàng)意設(shè)計(jì)的研究為客戶提供一站式互聯(lián)網(wǎng)解決方案,攜手廣大客戶,共同發(fā)展進(jìn)步。
安裝zabbix依賴包 shell> yum install net-snmp-devel curl-devel 創(chuàng)建zabbix用戶 shell> groupadd zabbix shell> useradd -r -g zabbix zabbix 解壓zabbix安裝包 shell> tar zxvf zabbix-2.4.5.tar.gz shell> cd zabbix-2.4.5/ 創(chuàng)建zabbix數(shù)據(jù)庫庫并導(dǎo)入初始化數(shù)據(jù) MySQL> create database zabbix character set utf8; Query OK, 1 row affected (0.02 sec) mysql> grant all on zabbix.* to zabbix@localhost identified by '123@qwe'; Query OK, 0 rows affected (0.01 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) shell> mysql -u zabbix -p zabbix < database/mysql/schema.sql shell> mysql -u zabbix -p zabbix < database/mysql/images.sql shell> mysql -u zabbix -p zabbix < database/mysql/data.sql 編譯安裝zabbix shell> ./configure --prefix=/usr/local/zabbix --enable-server --enable-proxy --enable-agent \ --with-mysql=/db/mysql/bin/mysql_config --with-net-snmp --with-libcurl shell> make && make install shell> ln -s /usr/local/zabbix/sbin/* /usr/local/sbin/ shell> ln -s /usr/local/zabbix/bin/* /usr/local/bin/
添加zabbix server端口 shell> grep zabbix /etc/services zabbix-agent 10050/tcp # Zabbix Agent zabbix-agent 10050/udp # Zabbix Agent zabbix-trapper 10051/tcp # Zabbix Trapper zabbix-trapper 10051/udp # Zabbix Trapper 更改zabbix-server.conf配置文件中關(guān)于數(shù)據(jù)庫部分。 shell> vi /usr/local/zabbix/etc/zabbix_server.conf ============================================================== DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=123@qwe DBSocket=/tmp/mysql.sock DBPort=3306 ListenIP=127.0.0.1 AlertScriptsPath=/usr/local/zabbix/share/zabbix/alertscripts ============================================================== 更改zabbix_agent.conf配置文件中關(guān)于數(shù)據(jù)庫部分 shell> vi /usr/local/zabbix/etc/zabbix_agentd.conf ============================================================== Include=/usr/local/etc/zabbix_agentd.conf.d/ UnsafeUserParameters=1 ==============================================================
拷貝zabbix前端到web目錄下 shell> cp -a frontends/php/* /usr/local/nginx/html/zabbix/ shell> chown -R nginx.nginx /usr/local/nginx/html/ 添加zabbix到開機(jī)啟動(dòng)腳本并修改 shell> cp misc/init.d/fedora/zabbix_agentd /etc/init.d/ shell> cp misc/init.d/fedora/zabbix_server /etc/init.d/ 修改/etc/init.d/zabbix_server、/etc/init.d/zabbix_agentd中BASEDIR=/usr/local/zabbix shell> /etc/init.d/zabbix_agentd start Starting zabbix_agentd: [確定] shell> /etc/init.d/zabbix_server start Starting zabbix_server: [確定]
修改php配置文件參數(shù) shell> vi /usr/local/php/lib/php.ini ============================================================== date.timezone = Asia/Shanghai post_max_size =32M max_execution_time =300 max_input_time =300 ============================================================== 啟動(dòng)php-fpm、nginx shell> /usr/local/php/sbin/php-fpm shell> /usr/local/nginx/nginx
在瀏覽器中輸入http:///zabbix/setup.php,會(huì)顯示
使用默認(rèn)賬號(hào):admin 密碼:zabbix 登錄
參考:
https://www.zabbix.com/documentation/2.4/manual/installation/install
http://coolnull.com/217.html
http://www.osyunwei.com/archives/7984.html
Svoid
2015-07-02
網(wǎng)站欄目:zabbix源碼安裝
瀏覽路徑:http://m.newbst.com/article36/jpjjsg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站內(nèi)鏈、品牌網(wǎng)站制作、域名注冊(cè)、標(biāo)簽優(yōu)化、營(yíng)銷型網(wǎng)站建設(shè)、關(guān)鍵詞優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)