Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/apache/apache_blackbox | ||
|---|---|---|
| 5 | 5 |
# luis peralta - luis@11870.com |
| 6 | 6 |
# http://www.ziritione.org |
| 7 | 7 |
# |
| 8 |
# Installing: configure apache blackbox and set the logfile to /var/log/blackbox.log
|
|
| 8 |
# Installing: configure apache blackbox and set the logfile to /var/log/blackbox.log |
|
| 9 | 9 |
# or change the BLACKBOXLOG setting below. |
| 10 | 10 |
# |
| 11 |
# Dependencies: apache mod_logio, apache blackbox
|
|
| 11 |
# Dependencies: apache mod_logio, apache blackbox |
|
| 12 | 12 |
# http://www.devco.net/archives/2008/03/05/detailed_apache_stats.php |
| 13 | 13 |
# |
| 14 | 14 |
# Last version available at: http://www.ziritione.org/http_status |
| ... | ... | |
| 23 | 23 |
|
| 24 | 24 |
use strict; |
| 25 | 25 |
|
| 26 |
my $BLACKBOXLOG = "/var/log/blackbox.log";
|
|
| 26 |
my $BLACKBOXLOG = "/var/log/blackbox.log"; |
|
| 27 | 27 |
|
| 28 |
my %WANTED = ( "apache.status.200" => "_200",
|
|
| 29 |
"apache.status.301" => "_301",
|
|
| 30 |
"apache.status.302" => "_302",
|
|
| 31 |
"apache.status.404" => "_404",
|
|
| 32 |
"apache.status.5xx" => "_5xx",
|
|
| 28 |
my %WANTED = ( "apache.status.200" => "_200", |
|
| 29 |
"apache.status.301" => "_301", |
|
| 30 |
"apache.status.302" => "_302", |
|
| 31 |
"apache.status.404" => "_404", |
|
| 32 |
"apache.status.5xx" => "_5xx", |
|
| 33 | 33 |
); |
| 34 | 34 |
|
| 35 | 35 |
my $arg = shift(); |
| ... | ... | |
| 78 | 78 |
); |
| 79 | 79 |
$num++; |
| 80 | 80 |
} |
| 81 |
|
|
| 81 |
|
|
| 82 | 82 |
} |
| 83 | 83 |
|
| 84 | 84 |
|
Formats disponibles : Unified diff