]> git.etc.gen.nz Git - spong.git/commitdiff
$mem_free param was wrong. Used avm mem instad of free.
authorStephen L Johnson <sjohnson@monsters.org>
Fri, 23 Aug 2002 19:55:43 +0000 (19:55 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Fri, 23 Aug 2002 19:55:43 +0000 (19:55 +0000)
contrib/plugins/spong-client/check_vmstat

index 0b8678f21e8f7611cffe43a0d909971df62de88c..ed342bece3fb5f9282ce94b28e332f5d2423f21a 100755 (executable)
@@ -8,7 +8,7 @@ $CHECKFUNCS{'vmstat'} = \&check_vmstat;
 # No parameter level checks will be defined in this
 # version. That will come in later versions
 
-# $Id: check_vmstat,v 1.2 2002/01/17 15:41:25 sljohnson Exp $
+# $Id: check_vmstat,v 1.3 2002/08/23 19:55:43 sljohnson Exp $
 
 use Spong::SafeExec qw(safe_exec);
 
@@ -123,7 +123,7 @@ sub check_vmstat {
        { 
          my ($avm);
          $proc_run = $1;  $proc_block = $2;
-         $avm = $3;  $free = $3;
+         $avm = $3;  $free = $4;
          $pi = $6;   $po = $7;
          $cs = $8;
          # cpu wait is included in cpu_sy