In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use rtop in linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Rtop is a direct interactive remote system monitoring tool based on SSH, which 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 collects various system performance information by starting a 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 (by default, 5 seconds), similar to all other top-like users in Linux (such as htop).
Installation requirements:
To install rtop, make sure you have Go (GoLang) 1.2 or later installed in Linux, otherwise 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 is completed, the rtop executable is saved in $GOPATH/bin or $GOBIN.
Build rtop in Linux Note: no runtime environment or configuration is required to use rtop.
How to use rtop in Linux system
When you try to run rtop without any flags or parameters, the following message is displayed:
$$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 use rtop to monitor the remote Linux server. By default, the information collected is updated every 5 seconds:
$$GOBIN/rtop aaronkilik@10.42.0.1
Rtop-Monitoring remote Linux host
The command refreshes the system performance metrics 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.
The above is all the contents of the article "how to use rtop in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.