标签:zabbix 监控 安装
zabbix安装
服务器CentOS 6.5
#监控端/服务端
zabbix文档 wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-2.4.3-1.el6.x86_64.rpm wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-agent-2.4.3-1.el6.x86_64.rpm wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-get-2.4.3-1.el6.x86_64.rpm wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-sender-2.4.3-1.el6.x86_64.rpm wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-server-2.4.3-1.el6.x86_64.rpm wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-server-mysql-2.4.3-1.el6.x86_64.rpm wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-web-2.4.3-1.el6.noarch.rpm wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-web-mysql-2.4.3-1.el6.noarch.rpm # ls zabbix-2.4.3-1.el6.x86_64.rpm zabbix-server-2.4.3-1.el6.x86_64.rpm zabbix-agent-2.4.3-1.el6.x86_64.rpm zabbix-server-mysql-2.4.3-1.el6.x86_64.rpm zabbix-get-2.4.3-1.el6.x86_64.rpm zabbix-web-2.4.3-1.el6.noarch.rpm zabbix-sender-2.4.3-1.el6.x86_64.rpm zabbix-web-mysql-2.4.3-1.el6.noarch.rpm # yum localinstall *.rpm #安装zabbix,同时将会安装php,http # yum install mysql-server mysql # rpm -qal|grep zabbix-server #查看zabbix的数据库文件 /usr/share/doc/zabbix-server-mysql-2.4.3 /usr/share/doc/zabbix-server-mysql-2.4.3/create /usr/share/doc/zabbix-server-mysql-2.4.3/create/data.sql /usr/share/doc/zabbix-server-mysql-2.4.3/create/images.sql /usr/share/doc/zabbix-server-mysql-2.4.3/create/schema.sql # service mysqld start # mysql -uroot -p #创建zabbix数据库并导入,顺序不要错 mysql> create database zabbix; mysql> grant all on zabbix.* to zabbixuser@localhost identified by "zabbixpasswd"; mysql> flush privileges; mysql> use zabbix; mysql> source /usr/share/doc/zabbix-server-mysql-2.4.3/create/schema.sql mysql> source /usr/share/doc/zabbix-server-mysql-2.4.3/create/data.sql mysql> source /usr/share/doc/zabbix-server-mysql-2.4.3/create/images.sql # cd /etc/zabbix/ #配置zabbix # cat zabbix_server.conf|grep -v ^\# |sed ‘/^$/d‘ LogFile=/var/log/zabbix/zabbix_server.log LogFileSize=1024 PidFile=/var/run/zabbix/zabbix_server.pid DBName=zabbix DBUser=zabbixuser DBPassword=zabbixpasswd DBSocket=/var/lib/mysql/mysql.sock SNMPTrapperFile=/var/log/snmptt/snmptt.log AlertScriptsPath=/usr/lib/zabbix/alertscripts ExternalScripts=/usr/lib/zabbix/externalscripts # service zabbix-server start # service zabbix-agent start # vim /etc/php.ini ;date.timezone = date.timezone = Asia/Shanghai # service httpd start http://192.168.10.1/zabbix/setup.php 浏览器访问 登录用户名admin,密码 zabbix
老提示 zabbix server is not running the information displayed may not be current
# setenforce 0
#被监控端/客户端
# yum localinstall zabbix-2.4.3-1.el6.x86_64.rpm zabbix-agent-2.4.3-1.el6.x86_64.rpm zabbix-sender-2.4.3-1.el6.x86_64.rpm
# service zabbix-agent start
本文出自 “金戈铁马行飞燕” 博客,请务必保留此出处http://bbotte.blog.51cto.com/6205307/1612664
标签:zabbix 监控 安装
原文地址:http://bbotte.blog.51cto.com/6205307/1612664