一 配置zabbix软件下载源
# dpkg -i zabbix-release_3.0-1+trusty_all.deb
# apt-get update
二 安装Server端
需要安装如下组件:
apache2
php5
php5-gd
libapache2-mod-php5
zabbix-server-mysql
php5-mysql
zabbix-frontend-php
在ubuntu16.04中的apt-get源不能正常下载安装 zabbix-server-mysql和php5等等,所以要更换源问的内容。
1 首先到/etc/apt/目录对原来的source.list进行备份
#cp source.list source.list_16.04
2 然后把15.10的source.list的内容
deb http://us.archive.ubuntu.com/ubuntu/ wily main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ wily main restricted deb http://us.archive.ubuntu.com/ubuntu/ wily-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ wily-updates main restricted deb http://us.archive.ubuntu.com/ubuntu/ wily universe deb-src http://us.archive.ubuntu.com/ubuntu/ wily universe deb http://us.archive.ubuntu.com/ubuntu/ wily-updates universe deb-src http://us.archive.ubuntu.com/ubuntu/ wily-updates universe deb http://us.archive.ubuntu.com/ubuntu/ wily multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ wily multiverse deb http://us.archive.ubuntu.com/ubuntu/ wily-updates multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ wily-updates multiverse deb http://us.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu wily-security main restricted deb-src http://security.ubuntu.com/ubuntu wily-security main restricted deb http://security.ubuntu.com/ubuntu wily-security universe deb-src http://security.ubuntu.com/ubuntu wily-security universe deb http://security.ubuntu.com/ubuntu wily-security multiverse deb-src http://security.ubuntu.com/ubuntu wily-security multiverse
覆盖原来的source.list的内容
3 清理一下apt缓存信息
#apt-get clean
#apt-get upgrade
#apt-get update
4 如果zabbix-frontend-php无法下载的话可以切换回16.04的source.list进行下载安装
三 配置Server
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
StartTrappers=200
CacheSize=512M
四 设置Mysql
#mysql -u root -p
(安装mysql时我把root账号的密码设置为zabbix)
Enter passworld:zabbix
mysql>create database zabbix character set utf8 collate utf8_bin;
mysql>grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql>flush privileges;
mysql>set GLOBAL max_connections=1000;
mysql>show variables like '%max_connections%';
mysql> quit;
#cd /usr/share/doc/zabbix-server-mysql
#zcat create.sql.gz | mysql -u root -p zabbix
#cp -r /usr/share/zabbix /var/www/html/zabbix
#service zabbix-server restart
五 服务器容器配置
1 php
#vim /etc/php5/apache2/php.ini修改项:
post_max_size = 16M
max_execution_time = 300
max_input_time = 300
date.timezone = "Asia/Shanghai"
extension_dir = "/usr/lib/php5/20131226/"(gd.so被apt在到/usr/lib/php5/20131226下)
extension=gd.so
修改完成后重启apache2
#service apache2 star
2 按照网页指引配置
用浏览器打开http://10.92.21.160/zabbix,通过网站方式对zabbixserver进行配置初始化检查
直接按照网页端配置执行。
用户名密码:Admin/zabbix
六 安装客户端
#apt-get install zabbix-agent
安装客户端后,若不是服务器本机,修改zabbix配置文件/etc/zabbix/zabbix_agentd.conf的数据
#vi /etc/zabbix/zabbix_agentd.conf
修改ServerAcive的IP,地址为服务端地址
ServerActive=10.92.21.160
设置为0 仅为主动模式,如果需要发送数据等 可以不修改此项
StartAgents=0
Hostname修改为网页里面添加的Hostname,需要保持一致。
Hostname=Zabbix server
七 添加host进行监控
Configuration-->Hosts-->选择默认的Zabbix server,进入详细页面然后full clone,调整一下配置信息
如果出现时间不对应的情况下需要设置下服务器的时区
#dpkg-reconfigure tzdata
选择Asia -> 再选择Shanghai -> OK
#date -s "02 OCT 2016 17:07:00"
相关推荐
Ubuntu16.04 离线安装openssh所需的安装包deb(修正了安装步骤)
ubuntu16.04中安装使用dockerubuntu16.04中安装使用docker
本文主要是在ubuntu 16.04环境下,如何安装 eclipse。
VM中ubuntu16.04安装VM tools的详细步骤,及具体说明和图示
主要介绍了在Ubuntu 16.04 Server上安装Zabbix的方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
ubuntu16.04下安装tensorflow(GPU版),步骤详细,有部分错误情况解决办法。
这篇文章主要介绍了Ubuntu 16.04 中文版安装基础入门教程(图文),需要的朋友可以参考下 安装Ubuntu16.04 1、进入 live cd 桌面 1)安装盘下载地址:http://releases.ubuntu.com/16.04/,可以用硬盘启动,也可以...
内网环境安装mysql5.7数据库所需deb安装包,libaio1_0.3.110-2_amd64.deb ,libmecab2_0.996-1.2ubuntu1_amd64.deb ,libmysqlclient20_5.7.25-1ubuntu16.04_amd64.deb,libmysqlclient-dev_5.7.25-1ubuntu16.04_amd...
ubuntu16.04下安装labview方法
用U盘制作ubuntu16.04系统的一些心得,包含下载网址,安装整理的一些详细过程
ubuntu 16.04 离线安装openssh 执行 sudo dpkg -i openssh-client_7.2p2-4_amd64.deb sudo dpkg -i openssh-sftp-server_7.2p2-4_amd64.deb sudo dpkg -i libwrap0_7.6.q-25_amd64.deb sudo dpkg -i openssh-...
有时候会遇到客户是内网环境的,无法在线通过apt install mysql-server进行安装,本文将提供mysql5.7.33所需的离线安装包和依赖。
ubuntu16.04安装opencv教程,简单快捷,讲解详细明了。
ubuntu 16.04安装tomcat 8.0图文详细教程
ubuntu16.04自动安装mysql5.7的部署脚本,内附mysql5.7,脚本中有注释,另有数据库搭建脚本。
ubuntu16.04安装gstreamer的的步骤
ubuntu16.04安装oracle操作文档
Ubuntu 16.04入门手册 Getting Started with Ubuntu 16.04
本人自测可以安装并进入系统可以监控。。。。。。。。
Ubuntu 16.04安装Calibre电子书管理软件.docx