Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

mhollingdale

Reviews(1)
bymhollingdale, May 10, 2012
If you want some different calculations, like having free memory equals free+buffered+cached, then you need to make a couple of changes:

add
my $mem_buff = $sysctl->{"vfs.bufspace"};

and change:

#$free_memory = $mem_inactive + $mem_cache + $mem_free + $mem_buff;
$free_memory = $mem_cache + $mem_free + $mem_buff;