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

freebsd check memory

Rating
2 votes
Favoured:
0
Hits
151698
Files:
FileDescription
check_mem.plcheck_mem.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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;