In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to monitor Linux server resources from the browser". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to monitor Linux server resources from the browser".
In the past, we have introduced a number of command-line-based tools for monitoring Linux performance, here are just a few examples. For example, top,htop,atop,glance, etc., and many Web-based tools, such as cockpit,pydash,linux-dash. You can also run glance in web server mode to monitor remote servers. In addition, we have found another simple server monitoring tool we want to share with you, called Scout_Realtime.
Scout_Realtime is a simple, easy-to-use Web-based tool for real-time monitoring of Linux server metrics in a top-like manner. It shows fluent charts of metrics collected in real time from CPU, memory, disk, network, and processes (top 10).
Real-time Linux server process monitoring
In this article, we will show you how to install the scout_realtime monitoring tool on a Linux system to monitor remote servers.
Install Scout_Realtime monitoring tools in Linux
1. To install scout_realtime on a Linux server, you must install Ruby 1.9.3 + on the server using the following command.
Linuxmi@linuxmi:~/www.linuxmi.com$ sudo apt-get install rubygems [on Debian/Ubuntu] linuxmi@linuxmi:~/www.linuxmi.com$ sudo yum-y install rubygems-devel [on RHEL/CentOS] linuxmi@linuxmi:~/www.linuxmi.com$ sudo dnf-y install rubygems-devel [on Fedora 22 +]
From: https://www.linuxmi.com/linux-scout_realtime-top.html
2. After installing Ruby on the Linux system, you can now install the scout_realtime package using the following command.
Linuxmi@linuxmi:~/www.linuxmi.com$ sudo gem install scout_realtime
3. After successfully installing the scout_realtime package, next you need to start the scout_realtime daemon, which collects server metrics in real time, as shown in the figure.
Linuxmi@linuxmi:~/www.linuxmi.com$ scout_realtime / var/lib/gems/2.7.0/gems/scout_realtime-1.0.5/lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb:1208: warning: constant:: Fixnum is deprecated / var/lib/gems/2.7.0/gems/scout_realtime-1.0.5/lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb:1208: warning: Constant:: Fixnum is deprecated / var/lib/gems/2.7.0/gems/scout_realtime-1.0.5/lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb:1208: warning: constant:: Fixnum is deprecated / var/lib/gems/2.7.0/gems/scout_realtime-1.0.5/lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb:1208: warning: constant:: Fixnum is deprecated / Var/lib/gems/2.7.0/gems/scout_realtime-1.0.5/lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb:1208: warning: constant:: Fixnum is deprecated Daemon has started successfully To view in your browser Do ONE of the following: a) create an SSH tunnel: ssh-NL 5555:localhost:5555 user@ip_or_hostname (run that command on your own computer, not the server) then point your browser to: http://localhost:5555-OR-B) open a port in your firewall: sudo iptables-An INPUT-p tcp-- dport 5555-j ACCEPT (run that command on your server) then point your browser to: http://your-ip-or-hostname:5555 * FYI The log file is: / home/linuxmi/.scout/scout_realtime.log * "scout_realtime stop" to stop the daemon
Start Scout Realtime on the server
4. The scout_realtime daemon is now running on the Linux server that you want to remotely monitor on port 5555. If you are running a firewall, you need to open port 5555 that scout_realtime listens on in the firewall to allow requests to be made to it.
-on Debian/Ubuntu-$sudo ufw allow 27017$ sudo ufw reload-on RHEL/CentOS 6.x-$sudo iptables-An INPUT-p tcp-- dport 5555-j ACCEPT $sudo service iptables restart-on RHEL/CentOS 7.x-$ Sudo firewall-cmd-permanent-add-port=5555/tcp $sudo firewall-cmd reload
5. Now, from any other machine, open a Web browser and use the following URL to access scout_realtime to monitor the performance of the remote Linux server.
Http://localhost:5555 or http://ip-address-or-domain.com:5555
6. By default, scout_realtime logs are written in the. scout/scout_realtime.log on the system, which you can view using the cat command.
Linuxmi@linuxmi:~$ cat .scout / scout_realtime.log
From: https://www.linuxmi.com/linux-scout_realtime-top.html
Run the following command to stop the scout_realtime daemon.
Linuxmi@linuxmi:~$ scout_realtime stop
8. Use an example to uninstall scout_realtime from the system.
Linuxmi@linuxmi:~$ gem uninstall scout_realtime
For more information, check the Scout_realtime Github repository.
Thank you for reading, the above is the content of "how to monitor Linux server resources from the browser". After the study of this article, I believe you have a deeper understanding of how to monitor Linux server resources from the browser, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.