Title: [opsview] [11860] Added helpful message re: enabling mod_ssl to get particular metric information
Revision
11860
Author
tvoon
Date
2013-03-19 13:15:53 +0000 (Tue, 19 Mar 2013)

Log Message

Added helpful message re: enabling mod_ssl to get particular metric information

Modified Paths

Modified: trunk/opsview-core/nagios-plugins/check_apache_performance
===================================================================
--- trunk/opsview-core/nagios-plugins/check_apache_performance	2013-03-19 02:38:05 UTC (rev 11859)
+++ trunk/opsview-core/nagios-plugins/check_apache_performance	2013-03-19 13:15:53 UTC (rev 11860)
@@ -135,6 +135,11 @@
     "TB" => "TB",
     "tB" => "TB",
 };
+my $ssl_metrics = {
+    active_sessions => 1,
+    shared_memory   => 1,
+};
+
 my $hostname = $np->opts->hostname;
 my $uri;
 my $o_timeout;
@@ -292,8 +297,13 @@
             );
         }
         if ( !defined $results{$metricname} ) {
+            my $extra_message = "";
+            if ( $ssl_metrics->{$metricname} ) {
+                $extra_message =
+                  ". Need to enable mod_ssl to collect this statistic";
+            }
             $np->nagios_exit( UNKNOWN,
-                "HTTP request $req_status, but unable to collect performance data of metric $metricname"
+                "HTTP request $req_status, but unable to collect performance data of metric $metricname$extra_message"
             );
         }
         my $string_value = $results{$metricname};

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

Reply via email to