yum install httpd httpd-devel
yum -y install mariadb*
yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml

systemctl start mariadb.service 
systemctl enable mariadb.service
http://blog.csdn.net/default7/article/details/39138139

groupadd zabbix
useradd -g zabbix zabbix

mysql_secure_installation

rpm -Uvh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm 

yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway



vi /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Kolkata

systemctl restart httpd.service

 mysql -uroot -pAcc0unt! -e "create database zabbix default character set utf8 collate utf8_bin;"
mysql -uroot -pAcc0unt! -e "grant all on zabbix.* to 'zabbix'@'%' identified by 'Acc0unt!';"

cd /usr/share/doc/zabbix-server-mysql-3.0.0
zcat create.sql.gz | mysql -uroot -pAcc0unt! zabbix

yum install zabbix*

vi /etc/php.ini
 384 max_execution_time = 300

394 max_input_time = 300

405 memory_limit = 128M

800 upload_max_filesize = 2M

878 date.timezone = Asia/Shanghai

672 post_max_size = 28M


mkdir /var/www/html/zabbix
ll -a /var/www/html/ 
cp -r . /var/www/html/zabbix/ 
ll -a /var/www/html/zabbix

systemctl stop firewalld.service


at last, install snmpget related command via the following tools:



Yum install net-snmp-utils net-snmp 


systemctl enable snmpd.service

snmpwalk -v 1或2(代表SNMP版本) -c SNMP读密码 IP地址 OID(对象标示符) 

snmpwalk -v 2c -c public 172.18.4.106 SNMPv2-MIB::sysName.0//获取主机名


Reference:


http://tecadmin.net/install-zabbix-network-monitoring-on-centos-rhel-and-fedora/# 


http://itfish.net/article/61057.html#


https://www.zabbix.com/documentation/3.0/manual/quickstart/login