How to Monitor Multiple Linux Servers Using Cockpit - Cockpit is a web-based monitoring tool that is user friendly and allows you to manage and monitor resources graphically via a web browser. With Cockpit, you can monitor CPU usage, memory, storage, bandwidth, monitor logs, add new accounts to your Linux system, perform software updates, and access the terminal console on your Linux server.
In the previous article, we learned how to install a cockpit on Linux to graphically monitor and manage a Linux server via a web browser.
You can read the article via the following link : How to Install Cockpit on Linux Server.
How to Monitor Multiple Linux Server Using Cockpit
In this article, we will learn how to add another Linux server to the cockpit. So the scenario is: I'm going to monitor the Ubuntu server from a computer running Linux Mint using the cockpit.
So, make sure the cockpit is installed on both sides, both on the Ubuntu server and on Linux Mint. For those who do not know, this cockpit can act as both a server and a client.
Then please log into the cockpit using your Linux username and password.
Don't forget to check the “Reuse my password for privileged tasks” option.
If you have successfully logged in, please click the “Dashboard” menu as I marked.
The following is a cockpit dashboard view. To add another Linux server, please click the Add (+) button.
After that will appear “Add Machine to Dashboard” window as shown below, please enter the IP address of the Linux server that you will monitor, then click the “Add” button.
The cockpit will generate a key automatically as shown below, please click the “Connect” button.
Ubuntu server has been successfully added to the dashboard cockpit. You can see that in the “Server” section there are already two nodes, one of which is Ubuntu 20.04 LTS, which is the server that has just been added.
Now we can monitor and administer the Ubuntu server through the cockpit. We can see log entries, storage, network configuration, accounts, and services running on the Ubuntu server very easily without having to make an SSH connection.