I have been using a repetitive code to check for Linux’s CPU, Memory, Swap, Uptime, OS info, Kernel info, Local IP, etc. status.
I have recently published a gem that can do just that:
https://rubygems.org/gems/linux_stat
More details can be read here: