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

freebsd check memory

Rating
2 votes
Favoured:
0
Hits
155211
Files:
FileDescription
check_mem.plcheck_mem.pl
Nagios CSP

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
check_mem.pl that uses /sbin/sysctl instead of vmstat for FreeBSD 6.0+ (Previous versions untested.)
Reviews (1)
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;