Group and Index both read to the end-of-line and give confusing results if both arguments are used. This patch will limit use white space to limit Group. This patch is to snmpvar.monitor 1.6.0 found in mon distribution 1.2.0.
$ diff -Naur snmpvar.monitor snmpvar2.monitor --- snmpvar.monitor 2004-11-15 06:45:19.000000000 -0800 +++ snmpvar2.monitor 2009-06-08 17:24:18.000000000 -0700 @@ -402,7 +402,7 @@ $VARLIST{$curhost}{$curvar}{'IDX'} = $VARDEF{$curvar}{'DEFIDX'}; $VARLIST{$curhost}{$curvar}{'IDX'} = $1 if $param =~ /Index\s+(.+)$/i; $VARLIST{$curhost}{$curvar}{'GROUP'} = $VARDEF{$curvar}{'DEFGRP'}; - $VARLIST{$curhost}{$curvar}{'GROUP'} = $1 if $param =~ /Group\s+(.+)$/i; + $VARLIST{$curhost}{$curvar}{'GROUP'} = $1 if $param =~ /Group\s+(\S+)/i; } } # while(<CF>) close (CF); Thanks to all of you who improve and maintain mon. Doug Rice -- -- you @ usa.com is available and 170 other free domains. Sign up at www.mail.com _______________________________________________ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon