Zabbix安裝
搭建環(huán)境:Centos6.5_x86_64,Zabbix3.04
Server端:
1、安裝開發(fā)軟件包
yum?-y groupinstall ?"Development Tools"
2、安裝所需的依賴包
yum-y install httpd mysql mysql-server php php-mysql php-common php-mbstringphp-gd php-odbc php-pear curl curl-devel net-snmp net-snmp-devel perl-DBIphp-xml ntpdate ?php-bcmath
3、同步服務(wù)端的時(shí)間,保持所有服務(wù)器時(shí)間一致避免出現(xiàn)時(shí)間不同導(dǎo)致的不可用的監(jiān)控數(shù)據(jù)
ntpdatepool.ntp.rog
4、創(chuàng)建zabbix服務(wù)運(yùn)行所需要的用戶和組
groupadd?-g 201 ?zabbix
useradd?-g zabbix ?-u 201 -m zabbix
5、初始化mysql服務(wù)器
/etc/init.d/mysqldstart
6、創(chuàng)建zabbix運(yùn)行所需要的數(shù)據(jù)庫及用戶權(quán)限
mysqladmin?-uroot -h127.0.0.1 ?password "123456"
mysql-uroot -h127.0.0.1 -p
createdatabase zabbix character set utf8;
grantall privileges on zabbix.* to zabbix@'%' identified by '123456';
flushprivileges;
mysql? -uzabbix?-p123456
ERROR1045 (28000): Access denied for user 'zabbix'@'localhost' (using password: YES)
登錄不了
mysql? -uroot?-p123456
Welcometo the MySQL monitor.? Commands end with; or \g.
YourMySQL connection id is 2307
Serverversion: 5.1.73 Source distribution
Copyright(c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracleis a registered trademark of Oracle Corporation and/or its
affiliates.Other names may be trademarks of their respective
owners.
Type'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
mysql>
mysql>use mysql
Readingtable information for completion of table and column names
Youcan turn off this feature to get a quicker startup with -A
Databasechanged
mysql>? select host,user,password from user;
+-----------------------+------------+-------------------------------------------+
|host????????????????? | user?????? | password????????????????????????????????? |
+-----------------------+------------+-------------------------------------------+
|localhost???????????? | root?????? |*6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |
|localhost.localdomain | root?????? |?????????????????????????????????????????? |
|127.0.0.1???????????? | root?????? |?????????????????????????????????????????? |
|localhost???????????? |??????????? |?????????????????????????????????????????? |
|localhost.localdomain |??????????? |?????????????????????????????????????????? |
|%???????????????????? | zabbixuser |*D1663F6CF6DD180D35CDC9DD46105B7DADD7DF19 |
|%???????????????????? | zabbix???? |*6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |
+-----------------------+------------+-------------------------------------------+
7rows in set (0.00 sec)
mysql>delete fromuser where user=' ';? ##刪除user為空的數(shù)據(jù)
QueryOK, 2 rows affected (0.03 sec)
mysql>
mysql>
mysql>flush? privileges;
QueryOK, 0 rows affected (0.00 sec)
mysql>
mysql>
mysql>
mysql>flush? privileges;
QueryOK, 0 rows affected (0.00 sec)
然后就登錄成功
mysql? -uzabbix?-p123456
Welcometo the MySQL monitor.? Commands end with; or \g.
YourMySQL connection id is 2334
Serverversion: 5.1.73 Source distribution
Copyright(c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracleis a registered trademark of Oracle Corporation and/or its
affiliates.Other names may be trademarks of their respective
owners.
Type'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>exit
Bye
7、下載解壓zabbix
wgethttp://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.2.2/zabbix-2.2.2.tar.gz/download
cd/usr/src/
tarxf zabbix-2.2.2.tar.gz
8、將zabbix的初始數(shù)據(jù)導(dǎo)入到數(shù)據(jù)庫中
/usr/src/zabbix-2.2.2/database/mysql
mysql-uzabbix? -h192.168.168.32 –p123456
mysql-uzabbixuser -h192.168.239.130 -p zabbix
mysql-uzabbixuser -h192.168.239.130 -p zabbix
紅色字體的語句執(zhí)行有問題,用以下語句執(zhí)行
Mysql? -uroot? -p123456
Use zabbix;
source?/usr/src/zabbix-2.2.2/database/mysql/schema.sql
source?/usr/src/zabbix-2.2.2/database/mysql/images.sql
source?/usr/src/zabbix-2.2.2/database/mysql/data.sql
#登錄數(shù)據(jù)庫查看下表是否都創(chuàng)建成功
9、編譯安裝zabbix
./configure–sysconfdir=/etc/zabbix/–enable-server –enable-agent –with-net-snmp –with-libcurl –with-mysql
./configure --prefix=/etc/zabbix --enable-server --enable-agent--with-net-snmp --with-libcurl --with-mysql
configure:error: Not found mysqlclient library
yum?install?mysql-devel
./configure --prefix=/etc/zabbix --enable-server --enable-agent--with-net-snmp --with-libcurl --with-mysql
? Enable proxy:????????? no
? Enable agent:????????? yes
? Agent details:
??? Linker flags:????????? -rdynamic????
??? Libraries:???????????? -lm -ldl -lrt? -lresolv????-lcurl
? Enable Java gateway:?? no
? LDAP support:????????? no
? IPv6 support:????????? no
***********************************************************
*??????????? Now run'make install'?????????????????????? *
*????????????????????????????????????????????????????????*
*??? ????????Thank you for using Zabbix!????????????????? *
*???????????????????????????????? *
***********************************************************
zabbix編譯常規(guī)報(bào)錯(cuò)解決方法
一、CentOS編譯報(bào)錯(cuò)
以下操作可能需要第三方源,參考此進(jìn)行安裝第三方Y(jié)um源
rpm -ivh?http://ftp.sjtu.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
[if !supportLineBreakNewLine]
[endif]
1、configure: error:Jabber library not found
? #yum
install iksemel-devel即可
[if !supportLineBreakNewLine]
[endif]
2、configure: error:LIBXML2 library not found
#yum install libxml2-devel
[if !supportLineBreakNewLine]
[endif]
3、configure: error:unixODBC library not found
#yuminstall unixODBC-devel
[if !supportLineBreakNewLine]
[endif]
4、configure: error:Invalid OPENIPMI directory - unable to find ipmiif.h
#yum install OpenIPMI-devel
[if !supportLineBreakNewLine]
[endif]
5、configure: error:Unable to find "javac" executable in path
? #yum
install java*??? 具體什么包沒找,直接通配算逑,生產(chǎn)環(huán)境可去掉--enable-java選項(xiàng)
[if !supportLineBreakNewLine]
[endif]
6、configure: error:Curl library not found
#yum install curl-devel
[if !supportLineBreakNewLine]
[endif]
二、Ubuntu編譯報(bào)錯(cuò)
1、configure:
error:MySQLlibrary not found
# apt-getinstall libmysqlclient-dev
2、configure error:Invalid Net-SNMP directory - unable to find net-snmp-config
# apt-getinstall snmp snmpd libsnmp-dev
3、configure: error:Curl library not found
#apt-getinstall php5-curl -y
4、configure: error:LIBXML2 library not found
#apt-getinstall libcurl4-gnutls-dev
5、在profile中不能設(shè)置中文:
? "You are not able to choose some of
the languages, because locales for them are not installed on the web
server."?兩個(gè)問題排查一下:
a
)檢查zabbix的php文件:/usr/share/zabbix/include/locales.inc.php
檢查“ 'zh_CN' =>
array('name' => _('Chinese (zh_CN)'), ? ? ? ?'display'
=> true) ”display的值是否為true
b
)執(zhí)行命令:dpkg-reconfigure
locales,檢查是否安裝中文包,如果沒有,安裝中文包:apt-getinstall
-y?language-pack-kde-zh-hans
三、其他常規(guī)編譯報(bào)錯(cuò)
以下摘自網(wǎng)絡(luò):
1、configure: error:No curses/termcap library found
網(wǎng)上有的說法是:
--with-named-curses-libs=/usr/lib/libncursesw.so.5
其實(shí)是不對的,雖然能解決configure的錯(cuò)誤,但是make的時(shí)候會提示錯(cuò)誤,正確的做法應(yīng)該是
yum -y install ncurses-devel
debian: apt-get install libncurses5-dev
[if !supportLineBreakNewLine]
[endif]
2、configure: error:xml2-config not found
yum-y install libxml2-devel
debian:apt-get install libxml2-dev
[if !supportLineBreakNewLine]
[endif]
3、configure: error:Cannot find OpenSSL's
yum-y install openssl-devel
[if !supportLineBreakNewLine]
[endif]
4、configure: error:libjpeg.(a|so) not found
yum-y install gd
yum -y install gd-devel
debian:apt-get install libjpeg-dev
[if !supportLineBreakNewLine]
[endif]
5、configure: error:libpng.(a|so) not found.
apt-getinstall libpng12-dev
[if !supportLineBreakNewLine]
[endif]
6、configure: error:cannot find output from lex; giving up
yum-y install flex
[if !supportLineBreakNewLine]
[endif]
7、configure: error:mod_deflate has been requested but can not be built due to prerequisitefailures
yum-y install zlib-devel openssl-devel
debian:apt-get install zlib1g-dev
[if !supportLineBreakNewLine]
[endif]
8、configure: error:libXpm.(a|so) not found.
apt-getinstall libxpm-dev
[if !supportLineBreakNewLine]
[endif]
9、configure: error:freetype.h not found.
apt-getinstall libfreetype6-dev
[if !supportLineBreakNewLine]
[endif]
10、configure: error:...No recognized SSL/TLS toolkit detected
apt-getinstall libssl-dev
[if !supportLineBreakNewLine]
[endif]
11、Configure:error: xml2-config not found. Please check your libxml2 installation.
yuminstall libxml2 libxml2-devel (For Redhat & Fedora)
# aptitude install libxml2-dev (For ubuntu)
[if !supportLineBreakNewLine]
[endif]
12、 Checking for
pkg-config…/usr/bin/pkg-config
configure:
error: Cannot find OpenSSL’s
yum install openssl openssl-devel
[if !supportLineBreakNewLine]
[endif]
13、Configure:error: Please reinstall the BZip2 distribution
yuminstall bzip2 bzip2-devel
[if !supportLineBreakNewLine]
[endif]
14、Configure:error: Please reinstall the libcurl distribution -easy.h should be in/include/curl/
#yuminstall curl curl-devel (For Redhat & Fedora)
#install libcurl4-gnutls-dev (For Ubuntu)
[if !supportLineBreakNewLine]
[endif]
15、Configure: error:libjpeg.(also) not found.
yum-y install gd
yum -y install gd-devel
yum install libjpeg libjpeg-devel
[if !supportLineBreakNewLine]
[endif]
16、Configure:error: libpng.(also) not found.
yuminstall libpng libpng-devel
apt-get install libpng12-dev
[if !supportLineBreakNewLine]
[endif]
17、Configure:error: freetype.h not found.
yuminstall freetype-devel
[if !supportLineBreakNewLine]
[endif]
18、Configure: error:Unable to locate gmp.h
yuminstall gmp-devel
[if !supportLineBreakNewLine]
[endif]
19、Configure:error: Cannot find MySQL header files under /usr.Note that the MySQL clientlibrary is not bundled anymore!
yuminstall mysql-devel (For Redhat & Fedora)
# apt-get install libmysql++-dev (For Ubuntu)
[if !supportLineBreakNewLine]
[endif]
20、Configure: error:Please reinstall the ncurses distribution
yuminstall ncurses ncurses-devel
[if !supportLineBreakNewLine]
[endif]
21、 Checking for
unixODBC support… configure:
error: ODBC header file ‘/usr/include/sqlext.h’not found!
yuminstall unixODBC-devel
[if !supportLineBreakNewLine]
[endif]
22、Configure:error: Cannot find pspell
yuminstall pspell-devel
[if !supportLineBreakNewLine]
[endif]
23、configure:error: mcrypt.h not found. Please reinstall libmcrypt.
yuminstall libmcrypt libmcrypt-devel (For Redhat & Fedora)
# apt-get install libmcrypt-dev
[if !supportLineBreakNewLine]
[endif]
24、Configure:error: snmp.h not found. Check your SNMP installation.
yuminstall net-snmp net-snmp-devel
[if !supportLineBreakNewLine]
[endif]
25、開啟LDAP服務(wù)還需要
yum-y install openldap-devel openldap-servers openldap-clients
[if !supportLineBreakNewLine]
[endif]
26、configure: error:No curses/termcap library found
網(wǎng)上有的說法是:–with-named-curses-libs=/usr/lib/libncursesw.so.5
其實(shí)是不對的,雖然能解決configure的錯(cuò)誤,但是make的時(shí)候會提示錯(cuò)誤,正確的做法應(yīng)該是
yum -y install ncurses-devel (for redhat)
apt-get install libncurses5-dev(for debian)
[if !supportLineBreakNewLine]
[endif]
27、configure: error:cannot find output from lex; giving up
yum-y install flex
[if !supportLineBreakNewLine]
[endif]
28、configure: error:mod_deflate has been requested but can not be built due to prerequisitefailures
yum-y install zlib-devel openssl-devel
debian:apt-get install zlib1g-dev
[if !supportLineBreakNewLine]
[endif]
29、configure: error:libXpm.(a|so) not found.
apt-getinstall libxpm-dev
make&& make install
#此處指定sysconfdir配置文件的路徑就在/etc/zabbix/目錄下了,如果不指定默認(rèn)在/usr/local/etc下
10、Copy zabbixserver端跟agent端的啟動腳本,并設(shè)置執(zhí)行權(quán)限
cp?-r /root/tools/zabbix-3.0.16/misc/init.d/tru64/*?? /etc/init.d/
chmod +x /etc/init.d/zabbix_*
sed -i "s@DAEMON=/usr/local/sbin/@DAEMON=/etc/zabbix/sbin/@g"/etc/init.d/zabbix_server
sed -i "s@DAEMON=/usr/local/sbin/@DAEMON=/etc/zabbix/sbin/@g"/etc/init.d/zabbix_agentd
注:具體要查看拷貝后zabbix_server? zabbix_agentd里面的路徑,官方zabbix安裝默認(rèn)路徑是? /usr/local/zabbix
[root@localhost php]# chkconfig --add /etc/init.d/zabbix_server
[root@localhost php]# chkconfig --add /etc/init.d/zabbix_agentd
[root@localhost php]# chkconfig httpd on
[root@localhost php]# chkconfig mysqld on
[root@localhost php]# chkconfig zabbix_server on
[root@localhost php]# chkconfig zabbix_agentd on
11、將zabbix的頁面文件copy到指定目錄(跟apache配置的相同即可)
mkdir? -p /var/www/html/zabbix
/usr/src/zabbix-2.2.2
cp-a? zabbix-2.2.2/frontends/php/*/var/www/html/zabbix/
chown-R ?apache.apache /var/www/html/zabbix/
12、配置php文件,適應(yīng)zabbix安裝所需的參數(shù)
安裝php
--with-mysql=/usr/local/mysql\
--with-mysqli=/usr/local/mysql/bin/mysql_config\
--with-xmlrpc\
--with-openssl\
--enable-bcmath\
--with-zlib\
--with-freetype-dir\
--with-gd\
--with-jpeg-dir\
–with-openssl \
--with-png-dir\
--with-iconv=/usr/local/libiconv\
--enable-short-tags\
--enable-sockets\
--enable-zend-multibyte\
--enable-soap\
--enable-mbstring\
--enable-static\
--enable-gd-native-ttf\
--with-curl\
--with-xsl\
--with-gettext\
--enable-ftp\
--with-libxml-dir\
--with-config-file-path=/usr/local/php/lib
make? &&make? install
vim/etc/php.ini
date.timezone= Asia/Shanghai
max_execution_time= 300
max_input_time= 300
post_max_size= 32M
memory_limit= 128M
mbstring.func_overload= 2?? #這一句需要注釋
13、配置apache文件,定義安裝訪問zabbix的虛擬主機(jī)
vim/etc/httpd/conf/httpd.conf
ServerName127.0.0.1
DocumentRoot?"/var/www/html"
ServerName192.168.128.130
在LoadModule php5_module???????modules/libphp5.so下添加
AddTypeapplication/x-httpd-php .php .php3 .php4
??? DirectoryIndex index.html index.php
在此處添加? index.php
[root@localhost bin]# ./apachectl?? -t
Syntax OK
[root@localhost bin]# ./apachectl?? restart
14、配置zabbix server端的文件,定義數(shù)據(jù)庫的IP、用戶名、密碼
vim/etc/zabbix/etc/zabbix_server.conf
PidFile=/tmp/zabbix_server.pid
ListenPort=10051
DBHost=192.168.239.130
DBName=zabbix
DBUser=zabbix
DBPassword=123456
StartPollers=30
? #開啟多線程數(shù),一般不要超過30個(gè)
StartTrappers=20
?#trapper線程數(shù)
StartPingers=10
? #fping線程數(shù)
StartDiscoverers=120
MaxHousekeeperDelete=5000
CacheSize=1024M
? #用來保存監(jiān)控?cái)?shù)據(jù)的緩存數(shù),根據(jù)監(jiān)控主機(jī)的數(shù)量適當(dāng)調(diào)整
StartDBSyncers=8
?#數(shù)據(jù)庫同步時(shí)間
HistoryCacheSize=1024M
TrendCacheSize=128M
? ? ? ? ? ? ? ? ? ? #總趨勢緩存大小
HistoryTextCacheSize=512M
AlertScriptsPath=/etc/zabbix/alertscripts?? 修改成自己zabbix的目錄(/etc/zabbix/share/zabbix/alertscripts)
LogSlowQueries=1000
###網(wǎng)絡(luò)上配置信息
#egrep -v "(#|^$)" /etc/zabbix/zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.log
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBSocket=/var/lib/mysql/mysql.sock
DBPort=3306StartPollers=160???????????????? (測試環(huán)境默認(rèn)值即可)
StartTrappers=10???????????????????????????? (測試環(huán)境默認(rèn)值即可)
StartPingers=100???????????????????????????? (測試環(huán)境默認(rèn)值即可)
StartDiscoverers=120???????????????????????? (測試環(huán)境默認(rèn)值即可)
MaxHousekeeperDelete=5000??????????????????? (測試環(huán)境默認(rèn)值即可)
CacheSize=1024M???????? ?????????????????????(測試環(huán)境默認(rèn)值即可)
StartDBSyncers=4???????????????????????????? (測試環(huán)境默認(rèn)值即可)
HistoryCacheSize=1024M?????????????????????? (測試環(huán)境默認(rèn)值即可)
TrendCacheSize=1024M???????????????????????? (測試環(huán)境默認(rèn)值即可)
HistoryTextCacheSize=512M??????????????????? (測試環(huán)境默認(rèn)值即可)
AlertScriptsPath=/etc/zabbix/alertscripts
LogSlowQueries=1000
自己虛擬機(jī)配置
[root@zabbix-server~]# grep?? '^[a-Z]'??? /etc/zabbix/etc/zabbix_server.conf
ListenPort=10051
LogFile=/tmp/zabbix_server.log
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=123456
DBSocket=/tmp/mysql.sock
DBPort=3306
ListenIP=127.0.0.1
Timeout=4
LogSlowQueries=3000
客戶端:
#?vim?/etc/zabbix/zabbix_agentd.conf
Server=127.0.0.1?????????????????????此處添加服務(wù)端的?ip,如服務(wù)器不為本機(jī),則需要填寫遠(yuǎn)端?zabbix_server?的?ip?地址?
ServerActive=127.0.0.1???????????????此處修改為服務(wù)端的?ip?
/tmp/zabbix_agentd.log???????????????修改日志路徑?
UnsafeUserParameters=0???????????????默認(rèn)是不啟用自定義腳本功能的,要自定義?key,需開啟,設(shè)置為?1?
Include=/etc/zabbix/zabbix_agentd.conf.d/?????自定義的agentd配置文件可以寫在
自己虛擬機(jī)配置
[root@zabbix-serveretc]# grep? '^[a-Z]' zabbix_agentd.conf
PidFile=/tmp/zabbix_agentd.pid
LogFile=/tmp/zabbix_agentd.log
LogFileSize=0
Server=192.168.128.130??????????????????????????????(寫zabbix服務(wù)器的ip)
#ServerActive=192.168.128.130????????????????????????(寫zabbix服務(wù)器的ip)
Hostname=zabbix-server? #zabbix服務(wù)器頁面添加時(shí)的主機(jī)相同
[root@zabbix-serveretc]#
15、啟動apache服務(wù)跟zabbix服務(wù)
/etc/init.d/httpdstart
/etc/init.d/zabbix_serverstart
16、訪問安裝界面按照界面提示一步一步的完成安裝
http://192.168.239.130/zabbix/setup.php
?a) 進(jìn)入安裝界面點(diǎn)擊Next
?b) 確保所有的監(jiān)測項(xiàng)都是OK,點(diǎn)擊Next
?c)填寫zabbix數(shù)據(jù)庫的用戶名、密碼、地址等信息,點(diǎn)擊Test connection,OK后點(diǎn)擊Next
?d) 填寫zabbix服務(wù)器的信息,主機(jī)名,server程序監(jiān)聽的的端口,主機(jī)IP地址等,如果server跟web在一臺服務(wù)器上保持默認(rèn)即可,點(diǎn)擊Next
?e) 確認(rèn)前面幾部填寫的信息沒有問題的話點(diǎn)擊Next
?f) 檢查web程序的config文件,如果沒問題會顯示OK,直接點(diǎn)擊finish即可完成安裝(如果此處有問題一般是zabbix虛擬主機(jī)目錄文件的權(quán)限問題,上面已經(jīng)有設(shè)置的過程一般不會出現(xiàn)問題)
#如果因?yàn)槭终`,數(shù)據(jù)庫密碼或者用戶名等的填寫錯(cuò)了,后面會一直報(bào)錯(cuò),我們可以手動的去編輯配置文件vim /var/www/html/zabbix/conf/zabbix.conf.php ?手動定義相關(guān)的參數(shù)即可
?g) 進(jìn)入登錄界面點(diǎn)擊登錄,默認(rèn)admin ?zabbix
#至此,server端的安裝完成
Agent端
1、安裝開發(fā)軟件包
yum-y groupinstall "Development Tools"
yum-y install ntpdate
2、同步客戶端時(shí)間,防止跟服務(wù)器端不一致,導(dǎo)致檢測到不可用的監(jiān)控?cái)?shù)據(jù)
ntpdatepool.ntp.org
3、創(chuàng)建zabbix運(yùn)行所需要的用戶跟組
groupadd?-g 201 zabbix
useradd-g zabbix -u 201 -m zabbix
4、解壓安裝zabbixagent端
cd/usr/src/
tarxf zabbix-2.2.2.tar.gz
cdzabbix-2.2.2
./configure?--prefix=/etc/zabbix?-enable-agent
make&& make install
5、copy agent端運(yùn)行所需要的腳本
cpmisc/init.d/tru64/zabbix_agentd? ?/etc/init.d/
chmod+x /etc/init.d/zabbix_agentd
6、配置agent端配置文件
vim/etc/zabbix/etc/zabbix_agentd.conf
#此處千萬別寫成了zabbix_agent.conf,否則配置了不生效
Server=192.168.239.130
? ? ? ? ? ? ? ? ? #填寫Server的IP地址
ServerActive=192.168.239.130
? ? ? ? ? ? #修改為Server的IP地址
Hostname=Centos-03
? ? ? ? ? ? ? ? ? ? ? #填寫本機(jī)的HostName,注意Server端要能解析
UnsafeUserParameters=1
? ? ? ? ? ? ? ? ? #是否允許自定義的key,1為允許,0為不允許
Include=
etc/zabbix/zabbix_agentd.conf.d/#自定義的agentd配置文件(key)可以在這里面寫;
7、啟動zabbix agent端
/etc/init.d/zabbix_agentdstart
解決zabbix中文亂碼、漢化
1、在windows中找一個(gè)自己喜歡的字體或者去網(wǎng)上下載一個(gè)字體
2、將字體上傳至/var/www/html/zabbix/fonts目錄下
3、修改zabbix頁面管理的中文字體設(shè)置
vim
/var/www/html/zabbix/include/defines.inc.php ? ? ? ?#修改以下兩行
define('ZBX_FONT_NAME','simkai');
define('ZBX_GRAPH_FONT_NAME',?'simkai');
4、登陸頁面設(shè)置相應(yīng)用戶的默認(rèn)語言Administrator—->Users(此處要保證顯示的是用戶,否則顯示的都是用戶組)
5、點(diǎn)擊用戶名進(jìn)入用戶信息編輯,默認(rèn)語言選擇簡體中文,然后點(diǎn)擊save保存
6、刷新頁面
1#已經(jīng)成為中文,在有些地方還是會有英文的但是zabbix的漢化相對其他開源軟件來說已經(jīng)做的十分的好了?。?/p>
添加windows監(jiān)控主機(jī)
https://www.zabbix.com/downloads/2.2.0/zabbix_agents_2.2.0.win.zip
.exe文件copy到磁盤根目錄的zabbix文件夾
配置拷貝到c盤根目錄,修改名字為zabbix_agentd.conf