Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
mhollingdale
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;
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;