zabbix

183 篇文章 0 订阅
5 篇文章 0 订阅

问题解决办法:

http://os.51cto.com/art/201104/252989.htm

zabbix源码包:

注意:源码包安装过程中缺少什么安装什么软件包。

http://www.zabbix.com/download

mysql安装过程:

yum list all |grep mysql

http://www.90root.com/archives/184.html

牢记顺序:

[root@test ~]# mysql -uroot -p zabbix </usr/local/zabbix-3.0.9/database/mysql/schema.sql 
Enter password: 
[root@test ~]# mysql -uroot -p zabbix </usr/local/zabbix-3.0.9/database/mysql/images.sql 
Enter password: 
[root@test ~]# mysql -uroot -p zabbix </usr/local/zabbix-3.0.9/database/mysql/data.sql 


php的安装:(centos7)

http://repo.webtatic.com/yum/el7/webtatic-release.rpm

http://repo.webtatic.com/yum/el7/epel-release.rpm


  • 1.创建一个新目录Web前端文件
1
[root@ zabbix-3.0.4] # mkdir /var/www/html/zabbix
  • 2.移动源到刚才创建的目录下
1
2
[root@ zabbix-3.0.4] # cd /home/zabbix/downloads/zabbix-3.0.4/frontends/php/
[root@ php] # cp -a . /var/www/html/zabbix/

默认情况下cenoos自带选项启用SELinux。虽然它有时在你的方式和难以管理,建议把它放在。

  • 3.创建一个规则允许我们的Web服务器访问前端文件
1
[root@ php] # chcon -Rv --type=httpd_sys_content_t /var/www/html
  • 4. 虽然我们仍然在SELinux的,我们也允许Apache和Zabbix连接到网络。
1
2
3
4
[root@ php] # setsebool -P httpd_can_network_connect=1
setsebool: SELinux is disabled.
[root@ php] # setsebool -P zabbix_can_network=1
setsebool: SELinux is disabled.
  • 5. 设置Apache作为Web用户接口文件的所有者
1
[root@ php] # chown -R apache:apache /var/www/html/zabbix
  • 6. 添加权限给Zabbix Web界面执行文件。
1
[root@ php] # chmod +x /var/www/html/zabbix/conf/
  • 7. 添加Zabbix服务器和Zabbix代理启动脚本
1
2
[root@ php] # cp /home/zabbix/downloads/zabbix-3.0.4/misc/init.d/fedora/core/zabbix_server /etc/init.d/zabbix_server
[root@ php] # cp /home/zabbix/downloads/zabbix-3.0.4/misc/init.d/fedora/core/zabbix_agentd /etc/init.d/zabbix_agentd
  • 8.添加Zabbix服务器和Zabbix代理服务
1
2
[root@ php] # chkconfig --add /etc/init.d/zabbix_server
[root@ php] # chkconfig --add /etc/init.d/zabbix_agentd
  • 9. 服务加入到开机启动
1
2
3
4
[root@ php] # chkconfig httpd on
[root@ php] # chkconfig mysqld on
[root@ php] # chkconfig zabbix_server on
[root@ php] # chkconfig zabbix_agentd on
  • 10. 启动zabbix服务端和客户端
1
2
3
4
[root@ php] # service zabbix_server start
Starting zabbix_server: [ OK ]
[root@ php] # service zabbix_agentd start
Starting zabbix_agentd: [ OK ]


注意:

Server=118.192.8.165  zabbix_server的ip


ServerActive=118.192.8.165 可注释掉


Hostname=本机ip


更新密码:update users set passwd=md5("123456") where alias=Admin;


防火墙:iptables -I INPUT  -p tcp --dport 10050  -j ACCEPT


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值