search
HomeSystem TutorialLINUXrtop monitors remote hosts via SSH

rtop monitors remote hosts via SSH

Aug 22, 2024 pm 12:02 PM
linuxlinux tutorialRed Hatlinux systemlinux commandlinux certificationred hat linuxlinux video

rtop is a direct, interactive remote system monitoring tool based on SSH that collects and displays important system performance indicators such as CPU, disk, memory and network indicators.

It is written in Go and does not require any additional programs to be installed on the server to be monitored, except for an SSH server and login credentials.

rtop basically collects various system performance information by starting an SSH session and executing certain commands on the remote server.

Once the SSH session is established, it refreshes the information collected from the remote server every few seconds (5 seconds by default), similar to all other top-like utilities in Linux (such as htop).

Installation requirements:

To install rtop make sure you have installed Go (GoLang) 1.2 or higher in Linux, otherwise please click the link below and follow the steps to install GoLang:

  • Install GoLang (Go programming language) in Linux
How to install rtop in Linux system

If you already have Go installed, run the following command to build rtop:

$ go get github.com/rapidloop/rtop

After the command is completed, the rtop executable program will be saved in $GOPATH/bin or $GOBIN.

rtop 通过 SSH 监控远程主机

Building rtop in Linux

Note: No runtime environment or configuration is required to use rtop.

How to use rtop in Linux system

Trying to run rtop without any flags or parameters, the following message will be displayed:

$ $GOBIN/rtop

Example output:

rtop 1.0 - (c) 2015 RapidLoop - MIT Licensed - http://rtop-monitor.org
rtop monitors server statistics over an ssh connection
Usage: rtop [-i private-key-file] [user@]host[:port] [interval]
-i private-key-file
PEM-encoded private key file to use (default: ~/.ssh/id_rsa if present)
[user@]host[:port]
the SSH server to connect to, with optional username and port
interval
refresh interval in seconds (default: 5)

Now let us use rtop to monitor the remote Linux server. By default, the collected information is refreshed every 5 seconds:

$ $GOBIN/rtop aaronkilik@10.42.0.1 

rtop 通过 SSH 监控远程主机

rtop – Monitor remote Linux hosts

The command will refresh the system performance indicators every 10 seconds:

$ $GOBIN/rtop aaronkilik@10.42.0.1 10

rtop can also use ssh-agent, key or password to authorize the connection.

  • Visit rtop’s Github repository: https://github.com/rapidloop/rtop.

To summarize, rtop is an easy-to-use remote server monitoring tool that uses very few and straightforward options. You can improve your Linux performance monitoring skills by reading about other command line tools for monitoring systems in your server.


The above is the detailed content of rtop monitors remote hosts via SSH. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What is AI? A Beginner's Guide for Linux UsersWhat is AI? A Beginner's Guide for Linux UsersMay 07, 2025 am 11:23 AM

Artificial Intelligence (AI) is a term that’s been buzzing around for a while now, from self-driving cars to voice assistants like Siri and Alexa, AI is becoming a part of our everyday lives. But what exactly is AI, and why should Linux users care ab

50 Essential Linux Commands for Beginners and SysAdmins50 Essential Linux Commands for Beginners and SysAdminsMay 07, 2025 am 11:12 AM

For someone new to Linux, using it can still feel challenging, even with user-friendly distributions like Ubuntu and Mint. While these distributions simplify many tasks, some manual configuration is often required, but fully harnessing the power of L

How to Set Up Your Linux System for AI DevelopmentHow to Set Up Your Linux System for AI DevelopmentMay 07, 2025 am 10:55 AM

In the previous article, we introduced the basics of AI and how it fits into the world of Linux. Now, it’s time to dive deeper and set up your Linux system to start building your first AI model. Whether you’re a complete beginner or have some exper

How to Install Kloxo Web Hosting Control Panel in LinuxHow to Install Kloxo Web Hosting Control Panel in LinuxMay 07, 2025 am 10:52 AM

If you’re looking to manage your server with ease, Kloxo is a great option, as it is free and open-source web hosting control panel that allows you to manage your server and websites with a simple, user-friendly interface. In this guide, we’ll walk

How to Move Files and Folders with Spaces in LinuxHow to Move Files and Folders with Spaces in LinuxMay 07, 2025 am 10:17 AM

If you’ve ever found yourself in a situation where you’re trying to move a bunch of files and folders, only to be stumped by spaces in the folder names, you’re not alone. Spaces in filenames or folder names can quickly become a frustrat

7 Best Linux Distros for KDE Plasma Fans in 20257 Best Linux Distros for KDE Plasma Fans in 2025May 07, 2025 am 10:06 AM

The KDE Plasma desktop is renowned for its sleek design, extensive customization options, and impressive performance. For users who appreciate a polished, modern interface with the flexibility to tweak every detail, Plasma is a dream come true. But w

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.