iptables -A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT iptables -A INPUT -m state --state NEW -p tcp --dport 10051 -j ACCEPT /etc/init.d/iptables save && /etc/init.d/iptables restart
5、安装zabbix web界面
5.1 复制网页目录 mkdir /var/www/zabbix/ cd ../../ cp -a frontends/php/* /var/www/zabbix/
5.2 虚拟主机配置 vim /etc/httpd/conf.d/zabbix.conf #虚拟主机 Alias /zabbix "/var/www/zabbix" <Directory "/var/www/zabbix"> # SSLRequireSSL Options None AllowOverride None Order deny,allow deny from all allow from 192.168.60.92 # Order deny,allow # Deny from all # Allow from 127.0.0.1 # AuthName "Nagios Access" # AuthType Basic # AuthUserFile /usr/local/nagios/etc/htpasswd.users # Require valid-user </Directory>
/etc/init.d/zabbix_agentd start iptables -A INPUT -m state --state NEW -p tcp --dport 10051 -j ACCEPT /etc/init.d/iptables save && /etc/init.d/iptables restart