rpm 安装的httpd mysql php php-gd gd php-bcmath php-mbstring net-snmp
rpm -ivh net-snmp-devel-5.3.2.2-7.el5.i386.rpm beecrypt-devel-4.1.2-10.1.1.i386.rpm elfutils-devel-0.137-3.el5.i386.rpm lm_sensors-devel-2.10.7-4.el5.i386.rpm beecrypt-4.1.2-10.1.1.i386.rpm elfutils-devel-static-0.137-3.el5.i386.rpm
下载源码解压,进入zabbix源码目录
./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl
make install
我没有设置mysql密码,可以自己设置下,导入的时候添上密码,zabbix配置文件
[root@localhost zabbix-1.8.2]# mysql
Logging to file '/var/log/mysql_operate.log'
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
root@localhost:(none) 01:18:45>create database zabbix
-> ;
Query OK, 1 row affected (0.07 sec)
root@localhost:(none) 01:18:54>
[root@localhost zabbix-1.8.2]# cat create/schema/mysql.sql |mysql zabbix
Logging to file '/var/log/mysql_operate.log'
mysql: 0 files and 1 streams is left open
[root@localhost zabbix-1.8.2]# cat create/data/data.sql |mysql zabbix
Logging to file '/var/log/mysql_operate.log'
mysql: 0 files and 1 streams is left open
[root@localhost zabbix-1.8.2]# cat create/data/images_mysql.sql |mysql zabbix
cat >>/etc/services