Title: [opsview] [12057] Fix for blank discards out octects
Revision
12057
Author
dferguson
Date
2013-04-12 12:05:32 +0100 (Fri, 12 Apr 2013)

Log Message

Fix for blank discards out octects

Just because lastdiscards is populated doesn't mean lastdiscards will be, so catch this error and handle appropriately.

Seen on a customer site.

Modified Paths

Modified: trunk/opsview-core/nagios-plugins/check_snmp_interfaces_cascade
===================================================================
--- trunk/opsview-core/nagios-plugins/check_snmp_interfaces_cascade	2013-04-12 11:00:01 UTC (rev 12056)
+++ trunk/opsview-core/nagios-plugins/check_snmp_interfaces_cascade	2013-04-12 11:05:32 UTC (rev 12057)
@@ -1012,7 +1012,9 @@
         return 1;
     }
 
-    unless ( defined $intdata->{lastdiscardsIn} ) {
+    unless ( defined $intdata->{lastdiscardsIn}
+        && defined $intdata->{lastdiscardsOut} )
+    {
         push @$results,
           {
             servicename => $servicename,

_______________________________________________
Opsview-checkins mailing list
Opsview-checkins@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to