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-xmlsystemctl start mariadb.service systemctl enable mariadb.servicehttp://blog.csdn.net/default7/article/details/39138139groupadd zabbixuseradd -g zabbix zabbixmysql_secure_installationrpm -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-gatewayvi /etc/httpd/conf.d/zabbix.confphp_value date.timezone Asia/Kolkatasystemctl 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.0zcat create.sql.gz | mysql -uroot -pAcc0unt! zabbixyum install zabbix*vi /etc/php.ini 384 max_execution_time = 300394 max_input_time = 300405 memory_limit = 128M800 upload_max_filesize = 2M878 date.timezone = Asia/Shanghai672 post_max_size = 28Mmkdir /var/www/html/zabbixll -a /var/www/html/ cp -r . /var/www/html/zabbix/ ll -a /var/www/html/zabbixsystemctl stop firewalld.serviceat last, install snmpget related command via the following tools:
Yum install net-snmp-utils net-snmp systemctl enable snmpd.servicesnmpwalk -v 1或2(代表SNMP版本) -c SNMP读密码 IP地址 OID(对象标示符)
snmpwalk -v 2c -c public 172.18.4.106 SNMPv2-MIB::sysName.0//获取主机名
Reference: