+ Some typo fix

This commit is contained in:
Quentin garnier 2014-03-11 19:21:14 +01:00
parent a1d171a339
commit a2966d7931
5 changed files with 14 additions and 14 deletions

View File

@ -67,15 +67,15 @@ sub connect {
}
}
if ($response->is_success) {
if ($response->is_success) {
$content = $response->content;
return $content;
} else {
} else {
$self->{output}->output_add(severity => 'CRITICAL',
short_msg => $response->status_line);
short_msg => $response->status_line);
$self->{output}->display();
$self->{output}->exit();
}
}
}

View File

@ -53,9 +53,9 @@ sub new {
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto', default => "http" },
"credentials" => { name => 'credentials' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"credentials" => { name => 'credentials' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },

View File

@ -54,10 +54,10 @@ sub new {
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto', default => "http" },
"credentials" => { name => 'credentials' },
"credentials" => { name => 'credentials' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"proxyurl:s" => { name => 'proxyurl' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },
"timeout:s" => { name => 'timeout', default => '3' },

View File

@ -53,9 +53,9 @@ sub new {
"hostname:s" => { name => 'hostname' },
"port:s" => { name => 'port' },
"proto:s" => { name => 'proto', default => "http" },
"credentials" => { name => 'credentials' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"credentials" => { name => 'credentials' },
"username:s" => { name => 'username' },
"password:s" => { name => 'password' },
"proxyurl:s" => { name => 'proxyurl' },
"warning:s" => { name => 'warning' },
"critical:s" => { name => 'critical' },

View File

@ -137,13 +137,13 @@ sub run {
short_msg => sprintf("Busy workers: %d Idle workers: %d ( %d %% )", $BusyWorkers, $IdleWorkers, $prct_busy));
$self->{output}->perfdata_add(label => "idle_workers",
value => $IdleWorkers,
min => 0,
min => 0,
max => $srvLimit);
$self->{output}->perfdata_add(label => "busy_workers",
value => $BusyWorkers,
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'),
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'),
min => 0,
min => 0,
max => $srvLimit);
$self->{output}->display();