博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Centos 6 Zabbix : Install
阅读量:7078 次
发布时间:2019-06-28

本文共 2770 字,大约阅读时间需要 9 分钟。

 
Install Zabbix which is an enterprise open source monitoring system.
It's possible to monitor not only Linux but Windows, Solaris, IBM AIX and others.
[1]
.
[2]
.
[3]
.
[4] Install some other required packages and Zabbix repository.
[root@dlp ~]#  
 -y install php-mysql php-gd php-xml php-bcmath 
 
[root@dlp ~]#  
 -y install http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm

[5] Install Zabbix server.
Install Zabbix Agent to monitor Zabbix server itself, too.
[root@dlp ~]#  
 -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix_get

[6] Create a database for Zabbix.
[root@dlp ~]#  
mysql -u root -p 
 
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 5.1.73 Source distribution Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>  
create database zabbix; 
 
Query OK, 1 row affected (0.00 sec)
mysql>  
grant all privileges on zabbix.* to zabbix@'localhost' identified by 'password'; 
 
Query OK, 0 rows affected (0.00 sec)
mysql>  
grant all privileges on zabbix.* to zabbix@'%' identified by 'password'; 
 
Query OK, 0 rows affected (0.00 sec)
mysql>  
flush privileges; 
 
Query OK, 0 rows affected (0.00 sec)
mysql>  
exit 
 
Bye
[root@dlp ~]#  
 /usr/share/doc/zabbix-server-mysql-*/create 
 
[root@dlp create]#  
mysql -u root -p zabbix < schema.sql 
 
Enter password:
[root@dlp create]#  
mysql -u root -p zabbix < images.sql 
 
Enter password:
[root@dlp create]#  
mysql -u root -p zabbix < data.sql 
 
Enter password:
[7] Configure and start Zabbix server.
[root@dlp ~]#  
 /etc/zabbix/zabbix_server.conf
# line 73: add
 
DBHost=localhost
# line 107: add DB password for Zabbix
 
DBPassword=password
[root@dlp ~]#  
/etc/rc.d/init.d/zabbix-server start 
 
Starting ZABBIX server: 
[ OK ]
 
[root@dlp ~]#  
 zabbix-server on 
 

[8] Configure and start Zabbix Agent to monitor Zabbix server itself.
[root@dlp ~]#  
 /etc/zabbix/zabbix_agentd.conf
# line 85: specify Zabbix server
 
Server= 
127.0.0.1
# line 126: specify Zabbix server
 
ServerActive= 
127.0.0.1
# line 137: change to the own hostname
 
Hostname= 
dlp.srv.world
[root@dlp ~]#  
/etc/rc.d/init.d/zabbix-agent start 
 
Starting ZABBIX agent: 
[ OK ]
 
[root@dlp ~]#  
 zabbix-agent on 
 

[9] Change httpd settings like follows.
[root@dlp ~]#  
 /etc/httpd/conf.d/zabbix.conf
# line 11: change access permittion for Zabbix frontend
 
Allow from  
localhost 10.0.0.0/24
# line 18: uncomment and change to your timezone
 
php_value date.timezone  
Asia/Tokyo
[root@dlp ~]#  
/etc/rc.d/init.d/httpd restart 
 
Stopping httpd: 
[ OK ]
 
Starting httpd: 
[ OK ]

转载地址:http://wktml.baihongyu.com/

你可能感兴趣的文章
很多企业网站为什么都将站点做成矩形的样子的呢
查看>>
在Javascript中 声明时用"var"与不用"var"的区别,== 和 ===的区别
查看>>
Vim + Gdb 程序的完美集合
查看>>
Ceph:一个 Linux PB 级分布式文件系统
查看>>
HA高可用特殊概念仲裁机制介绍
查看>>
《Java从小白到大牛》之第10章 面向对象基础(上)
查看>>
我的友情链接
查看>>
14. 复习_小练习
查看>>
Linux系统mongodb主从模式配置
查看>>
MongoDB导入导出以及数据库备份
查看>>
请问怎样把 Real Player11录制的ivr格式音频转化为其他格式呢?
查看>>
对象和类,日历
查看>>
软链接和硬链接
查看>>
js中的splice方法和slice方法简单总结
查看>>
集合框架List之Vector和LinkedList
查看>>
执行mysqld_safe报错:mysqld does not exist or is not executable
查看>>
Java语言平台
查看>>
依赖倒置原则和依赖注入模式
查看>>
精度计算——乘法(大数乘小数)
查看>>
(六)注解式控制器详解
查看>>