Title: [opsview] [9733] Fixed check_apache_performance where metric value is 0
Revision
9733
Author
tvoon
Date
2012-08-07 15:55:52 +0100 (Tue, 07 Aug 2012)

Log Message

Fixed check_apache_performance where metric value is 0

Modified Paths


Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES	2012-08-07 11:11:57 UTC (rev 9732)
+++ trunk/CHANGES	2012-08-07 14:55:52 UTC (rev 9733)
@@ -42,6 +42,7 @@
     Fixed opsview not always correctly starting on reboot (Thanks to Mark Addiss)
     Added _javascript_-common as conflicting package on Debian/Ubuntu
     Fixed opspacks not being installed correctly when no plugins are included
+    Fixed check_apache_performance where metric returns 0 as value
 
 3.201205XX 22nd May 2012
     NOTICES:

Modified: trunk/opsview-core/nagios-plugins/check_apache_performance
===================================================================
--- trunk/opsview-core/nagios-plugins/check_apache_performance	2012-08-07 11:11:57 UTC (rev 9732)
+++ trunk/opsview-core/nagios-plugins/check_apache_performance	2012-08-07 14:55:52 UTC (rev 9733)
@@ -270,7 +270,7 @@
                   . join( " , ", @valid_metricname )
             );
         }
-        if ( !$results{$metricname} ) {
+        if ( !defined $results{$metricname} ) {
             $np->nagios_exit( UNKNOWN,
                 "HTTP request $req_status, but unable to collect performance data of metric $metricname"
             );

_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to