mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 18:33:45 +01:00
Perfdata added to check_squid.pl
This commit is contained in:
parent
d0fccf6649
commit
1d48e0aa06
@ -89,13 +89,13 @@ if ($urluser)
|
|||||||
$h->authorization_basic($urluser, $urlpass);
|
$h->authorization_basic($urluser, $urlpass);
|
||||||
}
|
}
|
||||||
|
|
||||||
$t0 = [gettimeofday];
|
my $t0 = [gettimeofday];
|
||||||
|
|
||||||
$req = HTTP::Request->new('GET', $url, $h);
|
$req = HTTP::Request->new('GET', $url, $h);
|
||||||
|
|
||||||
$res = $ua->request($req);
|
$res = $ua->request($req);
|
||||||
|
|
||||||
$elapsed = tv_interval ( $t0 );
|
my $elapsed = tv_interval ( $t0 );
|
||||||
|
|
||||||
if ($res->status_line =~ /^$expectstatus/)
|
if ($res->status_line =~ /^$expectstatus/)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user