zabbix server监控文档

1.环境如下

2.服务器的IP:10.100.1.84; lnmp都分别都安装在/usr/local/目录下

3.centos7.4 php5.5 mysql5.6.14二进制 nginx1.13.9 zabbix3.4.6(lnmp基础环境)

4. 注【创建各项用户】【yum安装各种依赖】【解压各项包】【make && make install】【修改各个应用配置文件,例如:端口安装路径等..】【应用添加到系统服务&&设置开机自动启动】

5. nginx 解压,(yum安装依赖)./configure –prefix=/usr/local/nginx –with-http_ssl_module –with-http_spdy_module –with-http_stub_status_module –with-pcre make && make install 6. php 解压 (yum安装依赖),./configure –prefix=/usr/local/php-5.5.0alpha1 –with-config-file-path=/usr/local/php-5.5.0alpha1/etc –with-bz2 –with-curl –enable-ftp –enable-sockets –disable-ipv6 –with-gd –with-jpeg-dir=/usr/local –with-png-dir=/usr/local –with-freetype-dir=/usr/local –enable-gd-native-ttf –with-iconv-dir=/usr/local –enable-mbstring –enable-calendar –with-gettext –with-libxml-dir=/usr/local –with-zlib –with-pdo-mysql=mysqlnd –with-mysqli=mysqlnd –with-mysql=mysqlnd –enable-dom –enable-xml –enable-fpm –with-libdir=lib64 –enable-bcmath make && make install

7. mysql 解压,(yum安装依赖) yum install –y autoconf automake imake libxml2-devel\expat-devel cmake gcc gcc-c++ libaio libaio-devel bzr bison libtool ncurses5-devel (二进制直接启动)./scripts/mysql_install_db –user=mysql –defaults-file=/etc/my.cnf 【mysqlsock文件在/tmp下】 \/\/ make && make install

8. zabbix 解压 (yum安装依赖 yum install net-snmp-devel libxml2-devel libcurl-devel mysql-devel) ./configure –prefix=/usr/local/zabbix-3.4.6 –enable-server –enable-agent –with-mysql –with-net-snmp –with-libcurl –with-libxml2 \/\/ make && make install 初始化数据库zabbix的三个.sql文件,修改zabbix_server.conf配置文件,修改nginx和php文件。

9.启动各项应用,tail -f 日志。验证是否启动。

10.[Error]zabbix安装首页,ldap [warning~~] 重新编译zabbix,ldap模块。报错修改一个参数。OK

11.配DNS。zabbix登录网址:http://ops.4000669696.com/ 【各个监控项待添加、待添加模板】

你可能感兴趣的:(zabbix server监控文档)