# Get load average, free disk space and free memory

**URL:** <https://discourse.chef.io/t/get-load-average-free-disk-space-and-free-memory/1462>\
**Category:** Chef Infra (archive)\
**Created:** [July 2, 2010, 9:55am UTC](https://discourse.chef.io/t/get-load-average-free-disk-space-and-free-memory/1462 "2010-07-02T09:55:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vasiliy\_Tolstov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/vasiliy_tolstov/32/103_2.png) [@Vasiliy\_Tolstov](https://discourse.chef.io/u/Vasiliy_Tolstov)\
**Post date:** [July 2, 2010, 9:55am UTC](https://discourse.chef.io/t/get-load-average-free-disk-space-and-free-memory/1462/1 "2010-07-02T09:55:56Z")

</div>

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](mailto:v.tolstov@selfip.ru)  
[Selfip.Ru](http://Selfip.Ru)

---

<div class="post-metadata">

**Author:** ![Bryan\_McLellan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bryan_mclellan/32/81_2.png) [@Bryan\_McLellan](https://discourse.chef.io/u/Bryan_McLellan)\
**Post date:** [July 4, 2010, 6:21am UTC](https://discourse.chef.io/t/get-load-average-free-disk-space-and-free-memory/1462/2 "2010-07-04T06:21:24Z")

</div>

On Fri, Jul 2, 2010 at 2:55 AM, Vasiliy G Tolstov [v.tolstov@selfip.ru](mailto: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
