Get load average, free disk space and free memory


#1

Hello.
I need to get load average, free disk space and free memory on the node,
running chef-client.

How can i do this? (Best if i can get it via chef api…)

Thak You.


Vasiliy G Tolstov v.tolstov@selfip.ru
Selfip.Ru


#2

On Fri, Jul 2, 2010 at 2:55 AM, Vasiliy G Tolstov v.tolstov@selfip.ru wrote:

I need to get load average, free disk space and free memory on the node,
running chef-client.

Some of this information is collected by ohai, like node[:memory][:free].

I think the easiest way to get this data would be to add it to ohai so
it would end up as an attribute stored on the chef server. It’d only
be as up to date as the last chef-client run of course.

I normally collect this data using a trending tool like munin, but
it’d be somewhat tricky to get to this data through the chef API. It
could be next to create a chef library to connect to a munin node to
fetch current data from a node from the chef server.

Bryan