An interactive tool for monitoring remote hosts via SSH - rtop

rtop is an easy-to-use remote server monitoring tool written in Go and uses very few and straightforward options. You can improve your  Linux  performance monitoring skills by running command- line tools from other monitoring systems in your server .

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

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

rtop basically gathers various system performance information by starting an SSH session and executing certain commands on a 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 (eg htop).

Installation requirements:

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

Install GoLang (Go Programming Language) in Linux

How to install rtop in Linux system

If you have installed Go, run the following command to build rtop:
$ go get github.com/rapidloop/rtop
After the command completes, the rtop executable will be saved in $GOPATH/bin or $GOBIN.

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

How to use rtop in Linux system

Try running rtop without any flags or arguments, and 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's use rtop to monitor a remote Linux server, by default refreshing the collected information every 5 seconds:

$ $GOBIN/rtop [email protected]

The command will refresh system performance indicators every 10 seconds:
$ $GOBIN/rtop [email protected] 10
rtop can also use ssh-agent, key or password to authorize connections.
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 servers.

Guess you like

Origin blog.csdn.net/yaxuan88521/article/details/130897683