{"id":11545,"date":"2019-03-14T11:57:42","date_gmt":"2019-03-14T11:57:42","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=11545"},"modified":"2019-03-14T11:57:42","modified_gmt":"2019-03-14T11:57:42","slug":"cockpit-a-powerful-tool-to-monitor-and-administer-multiple-linux-servers-using-a-web-browser","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/14\/cockpit-a-powerful-tool-to-monitor-and-administer-multiple-linux-servers-using-a-web-browser\/","title":{"rendered":"Cockpit \u2013 A Powerful Tool to Monitor and Administer Multiple Linux Servers Using a Web Browser"},"content":{"rendered":"<p><strong>Cockpit<\/strong>\u00a0is an easy-to-use, lightweight and simple yet powerful remote manager for GNU\/Linux servers, it\u2019s an interactive server administration user interface that offers a live Linux session via a web browser.<\/p>\n<p>It can run on several Linux distributions including\u00a0<strong>Debian<\/strong>,\u00a0<strong>Ubuntu<\/strong>,\u00a0<strong>Fedora<\/strong>,\u00a0<strong>CentOS<\/strong>,\u00a0<strong>RHEL<\/strong>,\u00a0<strong>Arch Linux<\/strong>\u00a0among others.<\/p>\n<p><strong>Cockpit<\/strong>\u00a0makes Linux discoverable thereby enabling system administrators to easily and reliably carry out tasks such as starting containers, managing storage, network configurations, log inspections coupled with several others.<\/p>\n<p><b>Suggested Read:<\/b>\u00a0<a href=\"https:\/\/www.tecmint.com\/command-line-tools-to-monitor-linux-performance\/\" target=\"_blank\" rel=\"noopener\">20 Command Line Tools to Monitor Linux Performance<\/a><\/p>\n<p>While using it, users can easily switch between the\u00a0<a href=\"https:\/\/www.tecmint.com\/access-linux-server-terminal-in-web-browser-using-wetty\/\" target=\"_blank\" rel=\"noopener\">Linux terminal and web browser<\/a>\u00a0without any hustles. Importantly, when a user starts a service via Cockpit, it can be stopped via the terminal, and just in case of an error that occurs in the terminal, it is shown in the Cockpit journal interface.<\/p>\n<h4>Features of Cockpit:<\/h4>\n<ol>\n<li>Enables managing of multiple servers in one Cockpit session.<\/li>\n<li>Offers a web-based shell in a terminal window.<\/li>\n<li>Containers can be managed via\u00a0<a href=\"https:\/\/www.tecmint.com\/install-docker-and-learn-containers-in-centos-rhel-7-6\/\" target=\"_blank\" rel=\"noopener\">Docker<\/a>.<\/li>\n<li>Supports efficient\u00a0<a href=\"https:\/\/www.tecmint.com\/manage-users-and-groups-in-linux\/\" target=\"_blank\" rel=\"noopener\">management of system user accounts<\/a>.<\/li>\n<li>Collects system performance information using Performance Co-Pilot framework and displays it in a graph.<\/li>\n<li>Supports gathering of system configuration and diagnostic information using sos-report.<\/li>\n<li>Also supports Kubernetes cluster or an Openshift v3 cluster.<\/li>\n<li>Allows modification of network settings and many more.<\/li>\n<\/ol>\n<h3>How to Install Cockpit in Linux Systems<\/h3>\n<p>You can install\u00a0<strong>Cockpit<\/strong>\u00a0in all Linux distributions from their default official repositories as shown:<\/p>\n<h4>Install Cockpit on Fedora and CentOS<\/h4>\n<p>To install and enable\u00a0<strong>Cockpit<\/strong>\u00a0on Fedora distributions, use the following commands.<\/p>\n<pre># yum install cockpit\r\n# systemctl enable --now cockpit.socket\r\n# firewall-cmd --add-service=cockpit\r\n# firewall-cmd --add-service=cockpit --permanent\r\n<\/pre>\n<h4>Install Cockpit on RHEL<\/h4>\n<p>Cockpit is added to the Red Hat Enterprise Linux Extras repository from versions\u00a0<strong>7.1<\/strong>\u00a0and later:<\/p>\n<pre># subscription-manager repos --enable rhel-7-server-extras-rpms\r\n# systemctl enable --now cockpit.socket\r\n# firewall-cmd --add-service=cockpit\r\n# firewall-cmd --add-service=cockpit --permanent\r\n<\/pre>\n<h4>Install Cockpit on Debian<\/h4>\n<p>Cockpit is not included in Debian official repositories, but you install it using following repository that contains weekly builds specially for Debian unstable:<\/p>\n<p>First add the following repository to\u00a0<code>\/etc\/apt\/sources.list<\/code>\u00a0file.<\/p>\n<pre>deb https:\/\/fedorapeople.org\/groups\/cockpit\/debian unstable main\r\n<\/pre>\n<p>Next, import Cockpit\u2019s signing key and then run the following series of commands to install it.<\/p>\n<pre>$ sudo apt-key adv --keyserver sks-keyservers.net --recv-keys F1BAA57C\r\n$ sudo apt-get update\r\n$ sudo apt-get install cockpit\r\n$ sudo systemctl enable --now cockpit.socket\r\n<\/pre>\n<h4>Install Cockpit on Ubuntu and Linux Mint<\/h4>\n<p>In Ubuntu and Linux Mint distributions, Cockpit is not included, but you can install it from official\u00a0<strong>Cockpit PPA<\/strong>\u00a0by executing the following commands:<\/p>\n<pre>$ sudo add-apt-repository ppa:cockpit-project\/cockpit\r\n$ sudo apt-get update\r\n$ sudo apt-get install cockpit\r\n$ sudo systemctl enable --now cockpit.socket\r\n<\/pre>\n<h4>Install Cockpit on Arch Linux<\/h4>\n<p>Arch Linux users can install Cockpit from the\u00a0<strong>Arch User Repository<\/strong>\u00a0using following command.<\/p>\n<pre># yaourt cockpit\r\n# systemctl start cockpit\r\n# systemctl enable cockpit.socket\r\n<\/pre>\n<h3>How to Use Cockpit in Linux<\/h3>\n<p>After Cockpit installed successfully, you can access it using a web browser at the following locations.<\/p>\n<pre>https:\/\/ip-address:9090\r\nOR\r\nhttps:\/\/server.domain.com:9090\r\n<\/pre>\n<p>Enter system username and password to login in the interface below:<\/p>\n<div id=\"attachment_22928\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Cockpit-Web-Interface.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22928\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Cockpit-Web-Interface.png\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Cockpit-Web-Interface.png 980w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Cockpit-Web-Interface-768x546.png 768w\" alt=\"Cockpit Web Interface\" width=\"980\" height=\"697\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cockpit Web Interface<\/p>\n<\/div>\n<p>After logging in, you will be presented with a summary of your system information and performance graphs for\u00a0<strong>CPU<\/strong>,\u00a0<strong>Memory<\/strong>,\u00a0<strong>Disk I\/O<\/strong>, and\u00a0<strong>Network<\/strong>\u00a0traffic as seen in the next image:<\/p>\n<div id=\"attachment_22929\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Linux-System-Summary.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22929\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Linux-System-Summary.png\" sizes=\"auto, (max-width: 1188px) 100vw, 1188px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Linux-System-Summary.png 1188w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Linux-System-Summary-768x519.png 768w\" alt=\"Linux System Performance Summary\" width=\"1188\" height=\"803\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Linux System Performance Summary<\/p>\n<\/div>\n<p>Next on the dashboard menu, is\u00a0<strong>Services<\/strong>. Here you can view\u00a0<strong>Targets<\/strong>,\u00a0<strong>System Services<\/strong>,\u00a0<strong>Sockets<\/strong>,\u00a0<strong>Timers<\/strong>\u00a0and\u00a0<strong>Paths<\/strong>\u00a0pages.<\/p>\n<p>The interface below shows running services on your system.<\/p>\n<div id=\"attachment_22930\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Showing-Linux-Running-Services.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22930\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Showing-Linux-Running-Services.png\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Showing-Linux-Running-Services.png 906w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Showing-Linux-Running-Services-768x654.png 768w\" alt=\"Showing Current Running Services on Linux\" width=\"906\" height=\"772\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Showing Current Running Services on Linux<\/p>\n<\/div>\n<p>You can click on a single service to manage it. Simply click on the drop down menus to get the functionality you want.<\/p>\n<div id=\"attachment_22931\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/View-Linux-Service-Summary-Logs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22931\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/View-Linux-Service-Summary-Logs.png\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/View-Linux-Service-Summary-Logs.png 906w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/View-Linux-Service-Summary-Logs-768x654.png 768w\" alt=\"View Linux Service Summary\" width=\"906\" height=\"772\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">View Linux Service Summary<\/p>\n<\/div>\n<p>The\u00a0<strong>Logs<\/strong>\u00a0menu item displays the logs page which allows for logs inspection. The logs are categorized into\u00a0<strong>Errors<\/strong>,\u00a0<strong>Warnings<\/strong>,\u00a0<strong>Notices<\/strong>\u00a0and\u00a0<strong>All<\/strong>\u00a0as in the image below.<\/p>\n<p>Additionally you can as well view logs based on time such as logs for the last 24HRs or 7 days.<\/p>\n<p><b>Suggested Read:<\/b>\u00a0<a href=\"https:\/\/www.tecmint.com\/best-linux-log-monitoring-and-management-tools\/\" target=\"_blank\" rel=\"noopener\">4 Best Log Monitoring and Management Tools for Linux<\/a><\/p>\n<p>To inspect a single log entry, simply click on it.<\/p>\n<div id=\"attachment_22932\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Monitor-Linux-Logs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22932\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Monitor-Linux-Logs.png\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Monitor-Linux-Logs.png 906w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Monitor-Linux-Logs-768x654.png 768w\" alt=\"Linux Logs Monitoring\" width=\"906\" height=\"772\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Linux Logs Monitoring<\/p>\n<\/div>\n<p>Cockpit also\u00a0<a href=\"https:\/\/www.tecmint.com\/rhcsa-exam-manage-users-and-groups\/\" target=\"_blank\" rel=\"noopener\">enables you to manage user accounts<\/a>\u00a0on the system, go to\u00a0<strong>Tools<\/strong>\u00a0and click on\u00a0<strong>Accounts<\/strong>. Clicking on a user account allows you to view the users account details.<\/p>\n<div id=\"attachment_22933\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Manage-Linux-User-Accounts.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22933\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Manage-Linux-User-Accounts.png\" alt=\"Manage Linux User Accounts\" width=\"720\" height=\"486\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Manage Linux User Accounts<\/p>\n<\/div>\n<p>To add a system user, click on \u201c<strong>Create New Account<\/strong>\u201d button and enter the necessary user information in the interface below.<\/p>\n<div id=\"attachment_22934\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Create-Linux-User-Account.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22934\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Create-Linux-User-Account.png\" alt=\"Create User Account in Linux\" width=\"720\" height=\"486\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Create User Account in Linux<\/p>\n<\/div>\n<p>To get a terminal window, go to\u00a0<strong>Tools<\/strong>\u00a0<strong>\u2192<\/strong>\u00a0<strong>Terminal<\/strong>.<\/p>\n<div id=\"attachment_22935\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Linux-Web-Terminal.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22935\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Linux-Web-Terminal.png\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Linux-Web-Terminal.png 844w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Linux-Web-Terminal-768x572.png 768w\" alt=\"Cockpit - Linux Web Terminal\" width=\"844\" height=\"629\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cockpit \u2013 Linux Web Terminal<\/p>\n<\/div>\n<h3>How to Add Linux Server to Cockpit<\/h3>\n<p><strong>Important<\/strong>: Be aware that you must install Cockpit on all remote Linux servers in order to monitor them on Cockpit dashboard. So, please install it before adding any new server to Cockpit..<\/p>\n<p>To add another server, click on\u00a0<strong>dashboard<\/strong>, you will see the screen below. Click on the\u00a0<code>(+)<\/code>\u00a0sign and enter the server IP address. Remember that information for each server you add is displayed in Cockpit using a distinct color.<\/p>\n<div id=\"attachment_22936\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Add-Linux-Server-to-Cockpit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22936\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Add-Linux-Server-to-Cockpit.png\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Add-Linux-Server-to-Cockpit.png 844w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Add-Linux-Server-to-Cockpit-768x572.png 768w\" alt=\"Add Linux Server to Cockpit\" width=\"844\" height=\"629\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Add Linux Server to Cockpit<\/p>\n<\/div>\n<div id=\"attachment_22937\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Cockpit-Remote-Linux-Server-Monitoring.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22937\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Cockpit-Remote-Linux-Server-Monitoring.png\" sizes=\"auto, (max-width: 1222px) 100vw, 1222px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Cockpit-Remote-Linux-Server-Monitoring.png 1222w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/10\/Cockpit-Remote-Linux-Server-Monitoring-768x529.png 768w\" alt=\"Cockpit - Remote Linux Server Monitoring\" width=\"1222\" height=\"841\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cockpit \u2013 Remote Linux Server Monitoring<\/p>\n<\/div>\n<p>Same way, you can add many Linux servers under Cockpit and manage it efficiently without any trouble..<\/p>\n<p>That is it for now, however, you can explore more in case you have installed this simple and wonderful server remote manager.<\/p>\n<p><strong>Cockpit Official Documentation<\/strong>:\u00a0<a href=\"http:\/\/cockpit-project.org\/guide\/latest\/\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/cockpit-project.org\/guide\/latest\/<\/a><\/p>\n<p>For any questions or suggestions as well as feedback on the topic, do not hesitate to use the comment section below to get back to us.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/cockpit-monitor-multiple-linux-servers-via-web-browser\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cockpit\u00a0is an easy-to-use, lightweight and simple yet powerful remote manager for GNU\/Linux servers, it\u2019s an interactive server administration user interface that offers a live Linux session via a web browser. It can run on several Linux distributions including\u00a0Debian,\u00a0Ubuntu,\u00a0Fedora,\u00a0CentOS,\u00a0RHEL,\u00a0Arch Linux\u00a0among others. Cockpit\u00a0makes Linux discoverable thereby enabling system administrators to easily and reliably carry out tasks such &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/14\/cockpit-a-powerful-tool-to-monitor-and-administer-multiple-linux-servers-using-a-web-browser\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Cockpit \u2013 A Powerful Tool to Monitor and Administer Multiple Linux Servers Using a Web Browser&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11545","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=11545"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11545\/revisions"}],"predecessor-version":[{"id":11546,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11545\/revisions\/11546"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=11545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=11545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=11545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}