一. 监控知识
-------------------------------------
1.硬件监控:
机房巡检,远程控制卡,ipMI
2.系统监控:
cpu负载查看(指标):uptime(低于3),top(30%-70%)
监控命令:top,vmstat 1,mpstat 1(cpu监控),free -m
3.网络监控:
iftop,站长工具,SmokePing,监控宝
二. ZABBIX相关
-------------------------------------
官方安装文档:https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages
1.安装zabbix2.4的Yum源:rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
2.安装zabbix:
yum install zabbix zabbix-server zabbix-web zabbix-server-MySQL zabbix-web-mysql zabbix-agent
3.初始化数据库:
mysql> create database zabbix character set utf8 collate utf8_bin; #创建zabbix库 mysql> grant all PRivileges on zabbix.* to zabbix@localhost identified by 'zabbix123'; #创建zabbix用户 cd /usr/share/doc/zabbix-server-mysql-2.4.8/create/ mysql -uroot -pRoot123 zabbix< schema.sql mysql -uroot -pRoot123 zabbix < images.sql mysql -uroot -pRoot123 zabbix < data.sql4.修改zabbix时区:vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
5.修改zabbix_server数据库配置:
vim /etc/zabbix/zabbix_server.conf
修改下面配置
DBHost=172.16.1.214DBName=zabbixDBUser=zabbixDBPassWord=zabbix1236.启动zabbix:/etc/init.d/httpd restart
/etc/init.d/zabbix-server start
http://172.16.1.211/zabbix/ #访问地址,第一次访问会出现安装向导
登录默认用户:Admin 密码:zabbix
7.安装zabbix客户端:
yum install zabbix-agent
vim /etc/zabbix/zabbix_agentd.conf
Server=172.16.1.211
8.启动zabbix客户端:
/etc/init.d/zabbix-agent start
新闻热点
疑难解答