From: <buc...@us...> - 2008-01-14 17:01:24
|
Revision: 33 http://devmon.svn.sourceforge.net/devmon/?rev=33&view=rev Author: buchanmilne Date: 2008-01-14 09:01:22 -0800 (Mon, 14 Jan 2008) Log Message: ----------- Ignore rows which have empty values for one of the repeaters (to avoid some of the sub-interfaces on Cisco ATM interfaces making the page clear) Modified Paths: -------------- trunk/modules/dm_tests.pm Modified: trunk/modules/dm_tests.pm =================================================================== --- trunk/modules/dm_tests.pm 2008-01-13 12:08:39 UTC (rev 32) +++ trunk/modules/dm_tests.pm 2008-01-14 17:01:22 UTC (rev 33) @@ -1799,8 +1799,10 @@ # Get our oid vars my $val = $oid_h->{'val'}{$leaf}; my $color = $oid_h->{'color'}{$leaf}; - $val = 'Undefined' if !defined $val; - $color = 'clear' if !defined $color; + if (!defined $val) { + do_log("Undefined value for $oid in test $test on $device, ignoring row for $pri_val\n"); + next T_LEAF; + } # Check the exception types, if it is an 'ignore' # dont include this leaf row if the data for this This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |