Monitorare Linux in tempo reale con Scout_Realtime
Il programma che vediamo oggi, Scout_Realtime, ci consente di monitorare le risorse del nostro server / pc Linux in tempo reale usando il browser.
Il programma è scritto in Ruby, e quindi dobbiamo averlo installato sul sistema.
Su Arch Linux:
# pacman -Sy rubygems
Dopo di che installiamo il programma tramite GEM:
$ gem install scout_realtime
Fetching: server_metrics-1.2.18.gem (100%)
WARNING: You don't have /home/matte/.gem/ruby/2.5.0/bin in your PATH,
gem executables will not run.
Successfully installed server_metrics-1.2.18
Fetching: scout_realtime-1.0.5.gem (100%)
Successfully installed scout_realtime-1.0.5
Per lanciarlo, o aggiungete la directory GEM nel PATH, oppure lo lanciate con tutto il percorso:
$ /home/matte/.gem/ruby/2.5.0/bin/scout_realtime
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 -A 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/matte/.scout/scout_realtime.log
* "scout_realtime stop" to stop the daemon
Praticamente viene lanciato il demone, che inizia a raccogliere le statistiche del pc.
A questo punto aprite il browser su http://localhost:5555.
Apparirà una pagina web con dei grafici ed una tabella.
C'è una sorta di TOP per visualizzare i processi, ed una serie di statistiche sull'uso delle risorse.
Enjoy!
linux scout_realtime ruby gem
Commentami!