Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/http/http_request_time | ||
|---|---|---|
| 4 | 4 |
|
| 5 | 5 |
This plugin does http requests to specified URLs and takes the response time. |
| 6 | 6 |
Use it to monitor remote sites. |
| 7 |
|
|
| 7 |
|
|
| 8 | 8 |
LWP::UserAgent and Time::HiRes are required |
| 9 | 9 |
|
| 10 | 10 |
=head1 CONFIGURATION |
| ... | ... | |
| 70 | 70 |
my $proxy = $ENV{"url${i}_proxy"};
|
| 71 | 71 |
my $name = $ENV{"url${i}_name"} || clean($url);
|
| 72 | 72 |
my $label = $ENV{"url${i}_label"} || $url;
|
| 73 |
|
|
| 73 |
|
|
| 74 | 74 |
$URLS{$name}={
|
| 75 | 75 |
url=>$url, |
| 76 | 76 |
proxy=>$proxy, |
| ... | ... | |
| 161 | 161 |
|
| 162 | 162 |
if ($response->is_success) {
|
| 163 | 163 |
$$url{'time'}=sprintf("%d",tv_interval($t1,$t2)*1000);
|
| 164 |
};
|
|
| 164 |
}; |
|
| 165 | 165 |
}; |
| 166 | 166 |
|
| 167 | 167 |
print("multigraph http_request_time\n");
|
Formats disponibles : Unified diff