rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/5/x86_64/zabbix-release-2.4-1.el5.noarch.rpm
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm
yum install zabbix-server-mysql zabbix-web-mysql
shell> mysql -uroot -p<password> mysql> create database zabbix character set utf8 collate utf8_bin; mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>'; mysql> quit;
shell> mysql -uzabbix -p<password> zabbix < /usr/share/doc/zabbix-server-mysql-2.4.5/create/schema.sql # stop here if you are creating database for Zabbix proxy shell> mysql -uzabbix -p<password> zabbix < /usr/share/doc/zabbix-server-mysql-2.4.5/create/images.sql shell> mysql -uzabbix -p<password> zabbix < /usr/share/doc/zabbix-server-mysql-2.4.5/create/data.sql
vi /etc/zabbix/zabbix_server.conf
DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=<password>
service zabbix-server start chkconfig zabbix-server on
vi /etc/httpd/conf.d/zabbix.conf
php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 php_value date.timezone ASIA/Taipei
service httpd restart
getsebool httpd_can_network_connect
httpd_can_network_connect --> off
setsebool -P httpd_can_network_connect on
vi /etc/sysconfig/iptables
: :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT : -A INPUT -m state --state NEW -m tcp -p tcp --dport 10051 -j ACCEPT :
service iptables restart
: DBHost=**192.168.11.xxx** DBUser=zabbix DBPassword=**zabbix_password** #DBSocket=/var/lib/mysql/mysql.sock DBPort=3306 :
: $DB["TYPE"] = 'MYSQL'; $DB["SERVER"] = '**192.168.11.xxx**'; $DB["PORT"] = '3306'; $DB["DATABASE"] = 'zabbix'; $DB["USER"] = 'zabbix'; $DB["PASSWORD"] = '**zabbix_password**'; :
yum install -y sqlite zabbix-proxy-sqlite3 mkdir /var/lib/sqlite vi /etc/zabbix/zabbix_proxy.conf
: #DBName=zabbix_proxy DBName=/var/lib/sqlite/zabbix.db : #Server=127.0.0.1 Server=zabbix.ichiayi.com : #Hostname=Zabbix proxy Hostname=Zabbix Everplast Proxy :
chown -R zabbix:zabbix /var/lib/sqlite/ service zabbix-proxy start chkconfig zabbix-proxy on
yum install zabbix-agent
vi /etc/zabbix/zabbix_agentd.conf
: Server=140.92.143.57 : ServerActive=140.92.143.57 : Hostname=percona-xc2 :
service zabbix-agent start chkconfig zabbix-agent on
vi /etc/sysconfig/iptables
: :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT : -A INPUT -m state --state NEW -m tcp -p tcp --dport 10050 -j ACCEPT :
service iptables restart
C:\ZABBIX │ zabbix_agentd.exe │ zabbix_get.exe │ zabbix_sender.exe │ └─dev zabbix_sender.dll zabbix_sender.lib
echo LogFile=c:\\zabbix\\zabbix_agentd.log > c:\zabbix\zabbix_agentd.conf echo Server=zabbix.server.name.or.ip >> c:\zabbix\zabbix_agentd.conf echo ServerActive=zabbix.server.name.or.ip >> c:\zabbix\zabbix_agentd.conf echo Hostname=Windows_Server_or_PC_name >> c:\zabbix\zabbix_agentd.conf
c:\zabbix\zabbix_agentd.exe --config c:\zabbix\zabbix_agentd.conf --install
net start "Zabbix Agent"
sc config "Zabbix Agent" start= auto
<quote>
</quote>
<html><a href=“http://www.diamonds2cash.com/diamond-buyer/”>diamond buyers</a></html>