Cockpit:一款强大的Linux监控工具

介绍

cockpit:The easy-to-use, integrated, glanceable, and open web-based interface for your servers(官网截取)

image-20210103154540701

  • 系统配置与系统基本操作
  • 系统日志信息查看
  • 系统存储信息查看
  • docker容器监控
  • 系统网络监控
  • k8s集群管理(我没测试)
  • web命令行终端
  • 仪表盘
  • ......

总之功能强大就对了。

安装

我这里是用centos7版本的,此外cockpit还另外支持其他多种linux发行版

来自官网的截图:

image-20210103154500342
sudo yum install -y cockpit cockpit-docker cockpit-machines cockpit-dashboard cockpit-storaged cockpit-packagekit
sudo systemctl enable --now cockpit.socket
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
sudo firewall-cmd --reload

也可以安装其他模块来扩展cockpit的功能(yum install -y 模块名)

image-20210103162622191

然后就可以浏览器访问9090端口了

image-20210103155654446

用户名和密码就是linux服务器的用户名和密码,登陆即可进入首页。

image-20210103162145279

仪表盘

image-20210103160001936

如果我们另外一台机器上也安装了cockpit,也可以把那台机器添加到监控列表

点击添加

image-20210103160255361

image-20210103160305909

跟着提示一步一步做完,就可以将其他安装了cockpit的机器也给监控起来,我这里可以切换不同的服务器

image-20210103162208275

网络监控

image-20210103162228279

配置防火墙

image-20210103161002997

Docker容器管理

image-20210103161048063

容器启停

image-20210103161139670

运行镜像以及拉取新镜像

image-20210103161244938

image-20210103161305755

linux服务监控

image-20210103162250903

服务管理以及服务日志

image-20210103161503827

web终端

image-20210103161700262

软件更新

image-20210103162313698

cockpit就介绍到这里了,我只介绍了很少的一部分功能,更多的功能需要读者们去发掘。

原文地址:https://www.cnblogs.com/wwjj4811/p/14225918.html