Did you know that the TOP command (to display a lot of useful realtime information to monitor your server, home computer, etc… such as CPU usage, memory usage, disk usage, processes, etc…) was born 30 years ago?
Top has been one of the command I’ve learnt first for my GNU/Linux system (most probably 10 Years ago)
Well I recently discovered Scout Realtime, an intuitive and redesigned TOP command type for your server but web based.
Usually we don’t have much realtime monitoring tool with web interface. I’m using munin to monitor my server but it’s not realtime (but has other strengths)
Scout Realtime have obviously improved what TOP is reporting.
– They have a very smooth scrolling with charts updated every second,
– They got easy to read trends with some historical data,
– They have added the disk and network activity
– They have updated the way to calculate the free ram (They have counted the buffer ram that could be used when needed)
– And finally, they have grouped processes together but no jumping in and out as we have with TOP. It fixed and then easy to read the trends.
Written in Ruby, the installation is very simple. You only need to install Ruby then the package and you’re good to go!
It’s still in active development and works great out of the box. But if you want to change a bit the default configuration (add HTTP login, change port, etc…) you will need to wait a next release.
1) Install Ruby
2) Install Scout Realtime
gem install scout_realtime
3) Start Scout Realtime
4) Simply go to http://YourIP:5555
You may now want to access to Scout Realtime instance through a subdomain instead of typing your IP and the port. Also by binding the connection to port 80 (or 443), you may have less trouble with proxies too.
To do that, you will need to create a dedicated virtualhost and use ProxyPass and ProxyPassReverse option to access to your service from the port 5555 to the port 80.
You will obviously need a A redirection from top.domain.tld to your IP, in your DNS config (Registrar?)
1) Install Apache mod proxy html
apt-get install libapache2-mod-proxy-html
2) Activate the mod-proxy-http (Already installed)
3) Create a dedicated vhost in /etc/apache2/site-enabled/ called scoutrealtime with:
Allow from all
ProxyPass / http://localhost:5555/
ProxyPassReverse / http://localhost:5555/
4) Reload Apache
You should now have access to your Scout Realtime instance on top.yourdomain.tld