Zabbix监控系统 安装
1.安装Mariadb
2.安装 Zabbix yum源
3.安装zabbix
- create database zabbix character set utf8 collate utf8_bin; grant all
- privileges on zabbix.* to zabbix@localhost identified by ‘123’;
- zcat /usr/share/doc/zabbix-server-mysql-3.4.1/create.sql.gz |mysql -u zabbix -p123 zabbix
4.检查和编辑配置文件
- 91 DBHost=localhost
- 101 DBName=zabbix
- 117 DBUser=zabbix
- 125 DBPassword=123
97
- 97 Server=127.0.0.1
- 138 ServerActive=127.0.0.1
- 149 Hostname=Zabbix server
5.安装 Zabbix web 接口
- 19 php_value date.timezone Asia/Shanghai
6.访问 Zabbix 页面
(默认 用户密码)
7.linux 监控
- 95 Server=192.168.100.11
- 136 ServerActive=192.168.100.11
##主机名必须与zabbixweb上配置一致,否则主动监控无法正常工作
- 147 Hostname=linux
8.交换机 监控
GMS3 下:
int e0/0
ip add 192.168.100.100 255.255.255.0
no sh
exit
##设置被服务器轮询的只读共同体centos
snmp-server community centos ro
##允许发送trap消息
snmp-server enable traps
在GNS3下面配置snmp的时候出现了一下错误:
cannot enable both sham-link state-change interface traps
。。
经过网上搜索,发现GNS下面都有这个问题,于是可以采用如下方法来启动:
snmp-server enable traps ospf cicso-specific state-change shamlink interface-old
这样就可以了。
##设置发送trap消息的共同体
snmp-server host 192.168.10.1 centos