天天看點

Zabbix installation (from source)

1、download src package

2、Create database

shell> mysql -u<username> -p<password>

mysql> create database zabbix character set utf8;

mysql> quit;

shell> cd create/schema

shell> cat mysql.sql | mysql -u<username> -p<password> zabbix

shell> cd ../data

shell> cat data.sql | mysql -u<username> -p<password> zabbix

shell> cat images_mysql.sql | mysql -u<username> -p<password> zabbix

3、Configure and compile

shell> ./configure --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcur       
Error 1:configure: error: Jabber library not found      
download and compile the source       
http://code.google.com/p/iksemel/downloads/list      
after installed successfully,use the parameter like.--with-jabber=/usr/local/       
Error 2:configure: error: Curl library not found      
Error 3:configure: error: Invalid NET-SNMP directory - unable to find net-snmp-config      

4、Configure 

#mkdir /etc/zabbix

copy example configuration file

#cp misc/conf/zabbix_proxy.conf /etc/zabbix/

#cp misc/conf/zabbix_agentd.conf /etc/zabbix/

#cp misc/conf/zabbix_server.conf /etc/zabbix/

5、Run zabbix server & agent processes

shell> cd sbin

shell> ./zabbix_server

shell> cd bin

shell> ./zabbix_agentd 

繼續閱讀