安装cockpit(cockpit-server)
yum -y install cockpit cockpit-dashboard cockpit-storaged cockpit-packagekit
# 启动cockpit并设为开启自启动
systemctl enable --now cockpit.socket && systemctl list-unit-files | grep cockpit && systemctl start cockpit
- 可选组件列表
功能名称 | 包名称 | 使用说明 |
---|---|---|
Composer | Building custom OS | images |
Dashboard | cockpit-dashboard | Managing multiple servers in one UI |
Machines | cockpit-machines | Managing libvirt virtual machines |
PackageKit | cockpit-packagekit | Software updates and application installation (usually installed by default) |
PCP | cockpit-pcp | Persistent and more fine-grained performance data (installed on demand from the UI) |
podman | cockpit-podman | Managing podman containers (available from RHEL 8.1) |
Session Recording | cockpit-session-recording | Recording and managing user sessions |
- 添加其他主机
- 需要在被添加主机(cockpit-node)上也安装cockpit(安装完即无须启动)
yum -y install cockpit
- 需要在被添加主机(cockpit-node)上也安装cockpit(安装完即无须启动)
浏览器验证
image添加其他主机
image参考文档:
https://www.kclouder.cn/howtocockpit/
总结
cockpit是一个简单可用的监控工具,你可以添加多个主机进行监控,上限是 20台
也可以使用cockpit来管理虚拟机/容器. 也可以安装其他组件开启更多功能.
注意:cockpit没有告警功能,不适用于生产环境.
网友评论