配置Zabbix Server
[root@node4 ~]# vim /etc/zabbix/zabbix_server.conf DBHost=localhost #指定数据库 DBName=zabbix #数据库名 DBUser=zbuser #数据库用户 DBPassword=zbpass #数据库密码 #其他参数根据实际需求修改即可 [root@node4 ~]# vim /etc/zabbix/zabbix_agentd.conf #配置本身agent用以监控自己 Server=127.0.0.1,172.16.10.126 ServerActive=127.0.0.1,172.16.10.126 Hostname=node4.scholar.com [root@node4 ~]# vim /etc/php.ini #配置时区 date.timezone = Asia/Shanghai [root@node4 ~]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] [root@node4 ~]# service zabbix-server start Starting Zabbix server: [ OK ] [root@node4 ~]# service zabbix-agent start Starting Zabbix agent: [ OK ]开始安装
访问
安装检测,如有错误,安装所需依赖包即可
填写数据库信息
Name可自定义
Next-Next-Finish即可完成安装
登陆界面如下,默认用户admin,密码zabbix
zabbix2.4默认屏蔽了中文显示,设置显示中文
[root@node4 ~]# vim /usr/share/zabbix/include/locales.inc.php #将false改为true 'zh_CN' => array('name' => _('Chinese (zh_CN)'), 'display' => true), #为防止乱码用楷体替换默认字体 [root@node4 ~]# mv simkai.ttf /usr/share/zabbix/fonts/ [root@node4 ~]# vim /usr/share/zabbix/include/defines.inc.php define('ZBX_GRAPH_FONT_NAME', 'simkai'); define('ZBX_FONT_NAME', 'simkai'); [root@node4 ~]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ]修改语言
Zabbix Server配置先到这里,接下来我们去配置Proxy和Agent
Zabbix Proxy配置安装Zabbix Proxy所需软件包
[root@node3 ~]# cd zabbix-2.4/ [root@node3 zabbix-2.4]# ls zabbix-2.4.0-1.el6.x86_64.rpm zabbix-sender-2.4.0-1.el6.x86_64.rpm zabbix-agent-2.4.0-1.el6.x86_64.rpm zabbix-server-2.4.0-1.el6.x86_64.rpm zabbix-get-2.4.0-1.el6.x86_64.rpm zabbix-server-mysql-2.4.0-1.el6.x86_64.rpm zabbix-proxy-2.4.0-1.el6.x86_64.rpm zabbix-web-2.4.0-1.el6.noarch.rpm zabbix-proxy-mysql-2.4.0-1.el6.x86_64.rpm zabbix-web-mysql-2.4.0-1.el6.noarch.rpm [root@node3 zabbix-2.4]# yum install zabbix-2.4.0-1.el6.x86_64.rpm zabbix-get-2.4.0-1.el6 .x86_64.rpm zabbix-proxy-* -y