Alexandru E. Ungur
2/20/2007 10:28:00 AM
>>> sender: "dc" date: "Tue, Feb 20, 2007 at 07:11:19PM +0900" <<<EOQ
> hi -
Hello,
> are there any ruby library functions for checking server load and
> general system status?
> or should i just use something like `uptime` ?
I for one just use this:
~>> irb
>> File.new('/proc/loadavg').read
=> "0.57 0.47 0.35 1/197 1862\n"
but a quick gem search reveals a gem that might be related to this:
~>> gem search -r uptime
*** REMOTE GEMS ***
sys-uptime (0.4.5, 0.4.4)
A Ruby interface for getting system uptime information.
Cheers,
Alex