Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/apache/apache_watch_ | ||
|---|---|---|
| 43 | 43 |
} |
| 44 | 44 |
my $ua = LWP::UserAgent->new (timeout => 30); |
| 45 | 45 |
my @badports; |
| 46 |
|
|
| 46 |
|
|
| 47 | 47 |
foreach my $port (@PORTS) {
|
| 48 | 48 |
my $url = sprintf $URL, $port; |
| 49 | 49 |
my $response = $ua->request (HTTP::Request->new('GET', $url));
|
| 50 | 50 |
push @badports, $port unless $response->is_success; |
| 51 | 51 |
} |
| 52 |
|
|
| 52 |
|
|
| 53 | 53 |
if (@badports) {
|
| 54 | 54 |
print "no (no mod_watch exists on ports @badports)\n"; |
| 55 | 55 |
exit 1; |
| ... | ... | |
| 76 | 76 |
my ($server, undef, $ifInOctets, $ifOutOctets, $ifRequests, |
| 77 | 77 |
$ifDocuments) = split (/\s/, $string, 6); |
| 78 | 78 |
push @servers, $server unless $server eq "SERVER"; |
| 79 |
push @data, "$server $ifInOctets $ifOutOctets $ifRequests $ifDocuments"
|
|
| 79 |
push @data, "$server $ifInOctets $ifOutOctets $ifRequests $ifDocuments" |
|
| 80 | 80 |
unless $server eq "SERVER"; |
| 81 | 81 |
} |
| 82 | 82 |
} |
Formats disponibles : Unified diff