From: <buc...@us...> - 2011-01-13 12:04:34
|
Revision: 189 http://devmon.svn.sourceforge.net/devmon/?rev=189&view=rev Author: buchanmilne Date: 2011-01-13 12:04:27 +0000 (Thu, 13 Jan 2011) Log Message: ----------- Dont log "No SNMP data found" messages for hosts which we did not poll due to being unreachable according to hobbit/xymon Modified Paths: -------------- trunk/modules/dm_tests.pm Modified: trunk/modules/dm_tests.pm =================================================================== --- trunk/modules/dm_tests.pm 2011-01-11 13:41:47 UTC (rev 188) +++ trunk/modules/dm_tests.pm 2011-01-13 12:04:27 UTC (rev 189) @@ -176,9 +176,12 @@ $oids->{$oid}{'transform'} = 0; $oids->{$oid}{'repeat'} = $repeat; - do_log("No SNMP data found for $oid on $device", 0) and next - if !defined $num or !defined $snmp->{$num} - or !defined $snmp->{$num}{'val'}; + if (!defined $num or !defined $snmp->{$num} + or !defined $snmp->{$num}{'val'} ) + { + do_log("No SNMP data found for $oid on $device", 0) if ($g{'color'}{$device} eq 'green'); + next + } # If this is a repeater, iterate through its leaves and assign values if($repeat) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |