找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4140|回复: 11

玩客云安装zabbix4.4企业级监控系统

[复制链接]
本帖最后由 openwrt-w 于 2020-3-3 14:53 编辑

效果展示

玩客云应用第三篇
一、安装准备
  • 玩客云一台
  • 安装armbian系统
  • 使用环境LNMP         
二、安装过程
  • 更新armbian系统     
  1. apt update && apt upgrade
复制代码
     2.安装zabbix源
  1. # wget https://repo.zabbix.com/zabbix/4.4/raspbian/pool/main/z/zabbix-release/zabbix-release_4.4-1+stretch_all.deb
  2. # dpkg -i zabbix-release_4.4-1+stretch_all.deb
  3. # apt update
复制代码
     3.安装zabbix server、zaabix-agent等软件
  1. #apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-agent -y
复制代码
     4.安装数据库
  1. #apt install mariadb-server -y
  2. #systemctl enable mysql
  3. #systemctl start mysql
复制代码
   5.数据库初始化
  1. root@zabbix:~# mysql_secure_installation

  2. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  3.       SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

  4. In order to log into MariaDB to secure it, we'll need the current
  5. password for the root user.  If you've just installed MariaDB, and
  6. you haven't set the root password yet, the password will be blank,
  7. so you should just press enter here.

  8. Enter current password for root (enter for none):
  9. OK, successfully used password, moving on...

  10. Setting the root password ensures that nobody can log into the MariaDB
  11. root user without the proper authorisation.

  12. Set root password? [Y/n] y   #设置数据库密码选(Y)
  13. New password:
  14. Re-enter new password:
  15. Password updated successfully!
  16. Reloading privilege tables..
  17. ... Success!


  18. By default, a MariaDB installation has an anonymous user, allowing anyone
  19. to log into MariaDB without having to have a user account created for
  20. them.  This is intended only for testing, and to make the installation
  21. go a bit smoother.  You should remove them before moving into a
  22. production environment.

  23. Remove anonymous users? [Y/n] y   #删除匿名用户(Y)
  24. ... Success!

  25. Normally, root should only be allowed to connect from 'localhost'.  This
  26. ensures that someone cannot guess at the root password from the network.

  27. Disallow root login remotely? [Y/n] n    #禁止root用户登录 (N)
  28. ... skipping.

  29. By default, MariaDB comes with a database named 'test' that anyone can
  30. access.  This is also intended only for testing, and should be removed
  31. before moving into a production environment.

  32. Remove test database and access to it? [Y/n] y     #删除测试数据库(Y)
  33. - Dropping test database...
  34. ... Success!
  35. - Removing privileges on test database...
  36. ... Success!

  37. Reloading the privilege tables will ensure that all changes made so far
  38. will take effect immediately.

  39. Reload privilege tables now? [Y/n] y    #重新加载特权表(Y)
  40. ... Success!

  41. Cleaning up...

  42. All done!  If you've completed all of the above steps, your MariaDB
  43. installation should now be secure.

  44. Thanks for using MariaDB!
复制代码
       6.创建初始数据库
  1. # mysql -uroot -p
  2. password   #输入密码上一步设置的root密码
  3. mysql> create database zabbix character set utf8 collate utf8_bin;
  4. mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';   #设置普通数据库用户zabbix的密码
  5. mysql> quit;
复制代码
       7.导入数据库文件
  1. # zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
复制代码
       8.配置zabbix数据库用户名密码
  1. nano  /etc/zabbix/zabbix_server.conf
复制代码
       9.配置Nginx文件
  1. nano  /etc/zabbix/nginx.conf
复制代码
      10.配置PHP文件
  1. nano  /etc/zabbix/php-fpm.conf
复制代码
       11.配置zabbix server等软件启动服务
  1. # systemctl restart zabbix-server zabbix-agent nginx php7.0-fpm
  2. # systemctl enable zabbix-server zabbix-agent nginx php7.0-fpm
复制代码
       12.访问web管理安装界面
  1. http://server_ip_or_name
复制代码
三、zabbix安装web管理
      1.安装界面



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
无图无真相

点评

我刚才还没写完呢,怎么就发出去了。  详情 回复 发表于 2020-3-3 15:05
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层

我刚才还没写完呢,怎么就发出去了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
问题:无法切换中文
解决办法:
请参考zabbix 官方Wiki
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
补一张中文效果图。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个做什么用的。

点评

计算机网络设备运行状态监控。  详情 回复 发表于 2020-3-6 20:15
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
三叶猫 发表于 2020-3-4 01:44
这个做什么用的。

计算机网络设备运行状态监控。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

大佬,可以出一期玩客云上装zerotier实现p2p内网穿透的教程么

点评

可以,等有空写。  详情 回复 发表于 2020-3-8 23:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
star0511 发表于 2020-3-7 18:41
大佬,可以出一期玩客云上装zerotier实现p2p内网穿透的教程么

可以,等有空写。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

经过几天煎熬,N1也成功用上了!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

大佬 我安装zabbix  但是报警脚本不运行 是咋回事

点评

如果遇到zabbix未运行解决方法 数据库被拒绝,没有使用密码,因为默认的zabbix_server.conf的DBPassword是注释掉的 解决方法: /etc/zabbix/zabbix_server.conf 中的数据库配置项目 密码那项没有启用,去掉注释,填  详情 回复 发表于 2023-7-6 22:24
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

shisl0117 发表于 2022-12-6 12:24
大佬 我安装zabbix  但是报警脚本不运行 是咋回事

如果遇到zabbix未运行解决方法

数据库被拒绝,没有使用密码,因为默认的zabbix_server.conf的DBPassword是注释掉的

解决方法:
/etc/zabbix/zabbix_server.conf 中的数据库配置项目 密码那项没有启用,去掉注释,填上密码再次启动即可.密码password
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 07:22

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表