3 Basic Commands and Simple Shell Scripts Once you have your first Red Hat Enterprise Linux rhel



Download 1.85 Mb.
View original pdf
Page48/67
Date26.02.2024
Size1.85 Mb.
#63678
1   ...   44   45   46   47   48   49   50   51   ...   67
Pablo Iranzo Gómez, Pedro Ibáñez Requena, Miguel Pérez Colino, Scott McCarty - Red Hat Enterprise Linux 9 Administration-Packt Publishing (2022) -chap 3 82 - 180
Important Tip
If Cockpit is not installed or available, make sure that you execute dnf install cockpit to install the package and use systemctl enable -now cockpit.cocket to start the service. If you are accessing the server remotely, instead of using localhost, use the server hostname or IP address after allowing the firewall to connect via firewall-cmd
--add-service=cockpit, if you haven’t done so previously.
After logging in, we will see a dashboard showing the relevant system information and links to other sections, as shown in the following screenshot:
Figure 4.12 – Cockpit screen after logging in with a system dashboard
As you can see, Cockpit includes several tabs that can be used to view the status of the system and even perform some administration tasks, such as Security-Enhanced Linux (SELinux) tasks, software updates, subscriptions, and more.

Tools for Regular Operations
130
For example, we can check the system graphs on performance, as shown in the following screenshot:
Figure 4.13 – Cockpit graphs in Usage Graphs dashboard
Cockpit allows us to check a service’s status and package upgrade status, plus other configuration settings from a graphical interface that can also connect remotely to other systems. These can be selected from the lateral menu on the left.
There are better tools suited for large deployment monitoring and management, such as Ansible and Satellite, so it is important to get used to the tools we have for troubleshooting and simple scripts we can build. This allows us to combine what we’ve learned so far to quickly generate hints about things that require our attention.
With that, we have covered some of the basics of checking resource usage. Now, let’s checkout how to find information about the running services and errors we can review.

Finding logs, using journald, and reading log files, including log preservation and rotation
131

Download 1.85 Mb.

Share with your friends:
1   ...   44   45   46   47   48   49   50   51   ...   67




The database is protected by copyright ©ininet.org 2024
send message

    Main page