Chinaunix首页 | 论坛 | 博客
  • 博客访问: 239130
  • 博文数量: 49
  • 博客积分: 246
  • 博客等级: 二等列兵
  • 技术积分: 1034
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-02 13:18
文章分类

全部博文(49)

分类: 系统运维

2014-06-03 15:08:22

Zabbix架构:C/S
Zabbix官方 : 
下载地址 :   download.php
 文档 :         documentation.php

Lnmp 安装:
  

点击(此处)折叠或打开

  1. yum install mysql mysql-devel mysql-libs
  2. yum install php php-devel php-gd

  3. nginx install wiki:

  4. http://nginx.org/en/docs/install.html
Lnmp需要修改以下参数:

点击(此处)折叠或打开

  1. vim /etc/php.ini
  2. date.timezone = Asia/Shanghai
  3. post_max_size = 32M
  4. upload_max_filesize = 16M
  5. max_execution_time = 600
  6. max_input_time = 600
  7. memory_limit = 256M
  导入数据库:
mysql -uzabbix -pzabbix -hlocalhost zabbix < database/mysql/schema.sql
mysql -uzabbix -pzabbix -hlocalhost zabbix < database/mysql/images.sql
mysql -uzabbix -pzabbix -hlocalhost zabbix < database/mysql/data.sql



此文章主要针对server端安装:

点击(此处)折叠或打开

  1. install:
  2. wget -qSc http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.0/zabbix-2.2.0.tar.gz
  3. yum install *net-snmp* libpng libpng-devel libjpeg libjpeg-devel gd gd-devel libtiff libtiff-devel -y
  4. tar xf zabbix-2.2.0.tar.gz
  5. cd zabbix-*
  6. ./configure --prefix=/usr/local/zabbix --enable-server --enable-proxy --enable-agent --with- mysql=/usr/local/webserver/mysql/bin/mysql_config --with-net-snmp --with-libcurl
  7. #开启server端,agent端,proxy代理,snmp功能
  8. make ;make install
  9. echo "zabbix-agent 10050/tcp #Zabbix Agent" >> /etc/services
  10. echo "zabbix-agent 10050/udp #Zabbix Agetn" >> /etc/services
  11. echo "zabbix-trapper 10051/tcp #Zabbix Trapper" >> /etc/services
  12. echo "zabbix-trapper 10051/udp #Zabbix Trapper" >> /etc/services
  13. mkdir /etc/zabbix
  14. cp misc/conf/zabbix_server.conf /etc/zabbix
  15. cp misc/conf/zabbix_proxy.conf /etc/zabbix
  16. cp misc/conf/zabbix_agent.conf /etc/zabbix
  17. cp misc/conf/zabbix_agentd.conf /etc/zabbix
  18. 修改 vim zabbix_server.conf
  19. 95 DBUser=zabbix
  20. 104 DBPassword=zabbix
  21. 76 DBHost=192.168.10.156
  22. 赋予777权限才能顺利完成安装
  23. chmod -R 777 /$domroot/zabbix
阅读(3299) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~