From d33117029a5b630bd7823c0a727117a32ad6fc99 Mon Sep 17 00:00:00 2001 From: chrisbrookes Date: Tue, 12 Jun 2012 13:55:45 +0200 Subject: [PATCH 1/2] Added no cache/buffer available/used expressions --- check_netsnmp_memory.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check_netsnmp_memory.pl b/check_netsnmp_memory.pl index fb8ee70..bd6b013 100755 --- a/check_netsnmp_memory.pl +++ b/check_netsnmp_memory.pl @@ -74,6 +74,10 @@ '%user_real=user,total_real,%', # Percent user processes take in relation to total real memory (can be >100%) '%cached_real=cached,total_real,%', # Percent of user disk cache in relation to total real memory '%buffer_real=buffer,total_real,%', # Percent of buffer memory in relation to total real + "avail_nocache=avail_real,cached,buffer,+,round(1),' MB',+", # Free memory discounting cache and buffer + '%avail_nocache=avail_nocache,total_real,%', # Percent of available memory discounting cache and buffer + "used_nocache=total_real,avail_nocache,-,round(1),' MB',+", # Memory in use discounting cache and buffer + '%used_nocache=used_nocache,total_real,%', # Percent of memory in use discounting cache and buffer ); use lib "/usr/lib/nagios/plugins"; From 8d32307cb6e42abb9086d420d0a284febb32a7f5 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 12 Jun 2012 14:57:59 +0200 Subject: [PATCH 2/2] missed a + --- check_netsnmp_memory.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_netsnmp_memory.pl b/check_netsnmp_memory.pl index bd6b013..2160653 100755 --- a/check_netsnmp_memory.pl +++ b/check_netsnmp_memory.pl @@ -74,7 +74,7 @@ '%user_real=user,total_real,%', # Percent user processes take in relation to total real memory (can be >100%) '%cached_real=cached,total_real,%', # Percent of user disk cache in relation to total real memory '%buffer_real=buffer,total_real,%', # Percent of buffer memory in relation to total real - "avail_nocache=avail_real,cached,buffer,+,round(1),' MB',+", # Free memory discounting cache and buffer + "avail_nocache=avail_real,cached,+,buffer,+,round(1),' MB',+", # Free memory discounting cache and buffer '%avail_nocache=avail_nocache,total_real,%', # Percent of available memory discounting cache and buffer "used_nocache=total_real,avail_nocache,-,round(1),' MB',+", # Memory in use discounting cache and buffer '%used_nocache=used_nocache,total_real,%', # Percent of memory in use discounting cache and buffer