The Cockpit web console and monitoring
Sign in to read this lesson
You can do everything in the terminal, but sometimes you need to see a server's state at a glance, give a helper a safe panel, or find out why the CPU was at 100% last night. RHEL's own web console Cockpit and the sar tool from sysstat are for this.
What you will learn
- Cockpit is RHEL's web console:
systemctl enable --now cockpit.socket, addresshttps://server:9090, log in with a system user. - The
cockpitservice is open in firewalld by default; opening the panel only to the internal network is safer. - The panel grows with extra packages:
cockpit-storaged,cockpit-podman,cockpit-pcp(metrics history). - sar (
sysstat) looks into the past:sar -uCPU,sar -rmemory,sar -qload;-f /var/log/sa/saDDanother day's file. - The point of monitoring is alerting: a script, email or central system (Zabbix, Prometheus) for metrics that cross a threshold.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.