Linux

freebsd check memory

Description:

check_mem.pl that uses /sbin/sysctl instead of vmstat for FreeBSD

Current Version

Last Release Date

June 18, 2009

Compatible With


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!
Project Files
Project Notes
check_mem.pl that uses /sbin/sysctl instead of vmstat for FreeBSD 6.0+ (Previous versions untested.)
Reviews (1) Add a Review
simple and to the point
by mhollingdale, May 31, 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;
Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (2)
Favorites
0
Views
155,187