1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

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.
This commit is contained in:
Diego Elio Pettenò 2012-11-05 12:25:46 -08:00
parent 1b2574a43a
commit de8f24a464

View file

@ -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 <<END;
multigraph apache_average_requests
graph_title Average Apache requests per second
graph_args --base 1000 -l 0
graph_vlabel average reqs/sec
graph_category apache
END
foreach my $port (@PORTS) {
print <<END;
average$port.label port $port
END
}
exit 0;
}
my %multigraphs = (
accesses => "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) {