Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
freebsd check memory
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
check_mem.pl that uses /sbin/sysctl instead of vmstat for FreeBSD 6.0+ (Previous versions untested.)
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;
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;