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
David "DC" Collier
mailto:[email protected]
+81 (0)80 6521 9559
skype: callto://d3ntaku
hi -
are there any ruby library functions for checking server load and
general system status?
or should i just use something like uptime
?
tx!
David "DC" Collier
mailto:[email protected]
+81 (0)80 6521 9559
skype: callto://d3ntaku
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 likeuptime
?
I for one just use this:
~>> irbFile.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
dc wrote:
hi -
are there any ruby library functions for checking server load and
general system status?
or should i just use something likeuptime
?
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?
–
M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC§
http://borasky-research.blogspot.com/
If God had meant for carrots to be eaten cooked, He would have given
rabbits fire.
Hi David,
On Tue, 20 Feb 2007 19:11:19 +0900, dc [email protected] wrote:
are there any ruby library functions for checking server load and
general system status?
or should i just use something likeuptime
?
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 B.'s sysutils projects at:
http://rubyforge.org/projects/sysutils
Cheers,
Zev
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs