From de8f24a46405ce89efc1176a4a3952be9080747a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 5 Nov 2012 12:25:46 -0800 Subject: [PATCH] apache_status: remove apache_average_request compatibility. There is no reason to keep this, which is simply Apache's value from apache_accesses, and that one we can actually configure with the period we want. --- plugins/apache/apache_status | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/plugins/apache/apache_status b/plugins/apache/apache_status index b310f0e1..9bba924c 100755 --- a/plugins/apache/apache_status +++ b/plugins/apache/apache_status @@ -11,8 +11,7 @@ This plugin will produce multiple graphs showing: - the number of accesses to Apache servers; - the number of apache processes running on the machine; - - the volume of data sent from Apache servers; - - the average requests per second to Apache servers. + - the volume of data sent from Apache servers. =head1 APPLICABLE SYSTEMS @@ -217,29 +216,13 @@ END print_thresholds("volume$port"); } - print < "multigraph apache_accesses\n", processes => "multigraph apache_processes\n", - volume => "multigraph apache_volume\n", - average => "multigraph apache_average_requests\n" + volume => "multigraph apache_volume\n" ); foreach my $port (@PORTS) { @@ -274,12 +257,6 @@ foreach my $port (@PORTS) { } else { $multigraphs{volume} .= "volume$port.value U\n"; } - - if ($response->content =~ /^ReqPerSec:\s+(.+)$/im) { - $multigraphs{average} .= "average$port.value $1\n"; - } else { - $multigraphs{average} .= "average$port.value U\n"; - } } foreach my $graph (keys %multigraphs) {