checking server load from ruby?

D

dc

hi -

are there any ruby library functions for checking server load and
general system status?
or should i just use something like `uptime` ?

tx!

/dc
 
A

Alexandru E. Ungur

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=> "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
 
M

M. Edward (Ed) Borasky

dc said:
hi -

are there any ruby library functions for checking server load and
general system status?
or should i just use something like `uptime` ?
It depends on whether you want to lock yourself into a specific OS or
not. Just out of curiosity, what's your goal here? What will you
application *do* with the information?
 
Z

Zev Blut

Hi David,

are there any ruby library functions for checking server load and
general system status?
or should i just use something like `uptime` ?

Well calling `uptime` will certainly work and maybe the most simple.
Although, if you are looking for an API that abstracts this a bit,
take a look at Daniel Berger's sysutils projects at:

http://rubyforge.org/projects/sysutils

Cheers,
Zev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,234
Messages
2,571,179
Members
47,811
Latest member
GregoryHal

Latest Threads

Top