rtop – An Interactive Tool to Monitor Remote Linux Server Over SSH

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

It is written in Go Language and does not require any extra programs to be installed on the server that you want to monitor except SSH server and working credentials.

rtop basically functions by launching an SSH session, and executing certain commands on the remote server to gather various system performance information.

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

Prerequisites:

Make sure you have installed Go (GoLang) 1.2 or higher on your Linux system in order to install rtop, otherwise click on the link below to follow the GoLang installation steps:

  1. Install GoLang (Go Programming Language) in Linux

How to Install rtop in Linux Systems

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

$ go get github.com/rapidloop/rtop

The rtop executable binary will be saved in $GOPATH/bin or $GOBIN once the command completes executing.

Build rtop in Linux
Build rtop in Linux

Note: You do not need any runtime dependencies or configurations to start using rtop.

How to Use rtop in Linux Systems

Try to run rtop without any flags and arguments as below, it will display a usage message:

$ $GOBIN/rtop
Sample 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 monitor the remote Linux server using rtop as follows, while refreshing the information gathered after an interval of 5 seconds by default:

$ $GOBIN/rtop   [email protected] 
rtop - Monitor Remote Linux Server
rtop – Monitor Remote Linux Server

The command below will refresh the system performance metrics collected after every 10 seconds:

$ $GOBIN/rtop [email protected] 10

rtop can also connect using ssh-agent, private keys or password authentication.

Visit rtop Github repository: https://github.com/rapidloop/rtop

As a concluding remark, rtop is a simple and easy-to-use remote server monitoring tool, it uses very few and direct options. You can as well read about several other command line tools to monitor your system so as to improve your Linux performance monitoring skills.

Lastly, get in touch with us via the comment section below for any questions or remarks.

Two small things before you go

If something didn’t work on your setup, leave a comment and tell me which distro and version you’re on. I read every one, and most of these articles got better because a reader pointed out what was missing.

And if it did work, share it. TecMint has stayed free for 14 years because people pass these articles around, and that traffic is what pays for writing the next one.

Leave a comment
Get two free Linux courses

Learn the Linux basics with two free courses and join 34,000+ readers getting practical TecMint tutorials and selected Pro TecMint articles every week.

Pro TecMint
Get lifetime access for $99

If you want to go beyond the free tutorials, Pro gives you 18 courses, 5 ebooks, and every future course I add. One payment, lifetime access, no renewals.

Aaron Kili
Aaron Kili
Contributor
About the author

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.