转:
http://www.iyunv.com/thread-22904-1-1.html
https://www.zabbix.com/documentation/3.0/manual/config/notifications/media/script
groupadd zabbix
useradd -g zabbix zabbix
MariaDB [(none)]> create database zabbix;
MariaDB [(none)]> grant all on zabbix.* to 'zabbix'@'%' identified by 'zabbix';
MariaDB [(none)]> flush privileges;
#mysql -uzabbix -pzabbix zabbix <schema.sql
#mysql -uzabbix -pzabbix zabbix <images.sql
#mysql -uzabbix -pzabbix zabbix <data.sql
yum -y install mysql-devel libxml2-devel net-snmp-devel libcurl-devel
yum -y install httpd php php-mysql libXpm php-bcmath php-gd php-mbstring php-xml t1lib
rpm -ivh /root/jdk-7u79-linux-x64.rpm
wget http://heanet.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.0.1/zabbix-3.0.1.tar.gz
tar zxvf zabbix-3.0.1.tar.gz
cd zabbix-3.0.1/
./configure --prefix=/usr/local/zabbix3.0 --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl --with-libxml2 --enable-java
make install
vim /usr/local/zabbix3.0/sbin/etc/zabbix_server.conf
ListenIP=0.0.0.0
ListenPort=10051
LogFile=/tmp/zabbix_server.log
PidFile=/tmp/zabbix_server.pid
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBPort=3306
JavaGateway=127.0.0.1
JavaGatewayPort=10052
StartJavaPollers=5
AlertScriptsPath=/usr/local/zabbix3.0/share/zabbix/alertscripts
ExternalScripts=/usr/local/zabbix3.0/share/zabbix/alertscripts
./usr/local/zabbix3.0/sbin/zabbix_server
客户端:
tar zxvf zabbix-3.0.1.tar.gz
cd zabbix-3.0.1/
./configure --prefix=/usr/local/zabbix3.0 --enable-agent
vim /usr/local/zabbix3.0/etc/sbin/zabbix_agentd.conf
append:Server=192.168.1.34
. /usr/local/zabbix3.0/etc/sbin/zabbix_agentd