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