From a2966d7931c561f40356aff3a10091f27c6fb51c Mon Sep 17 00:00:00 2001 From: Quentin garnier Date: Tue, 11 Mar 2014 19:21:14 +0100 Subject: [PATCH] + Some typo fix --- apps/apache/serverstatus/mode/libconnect.pm | 8 ++++---- apps/apache/serverstatus/mode/requests.pm | 6 +++--- apps/apache/serverstatus/mode/responsetime.pm | 4 ++-- apps/apache/serverstatus/mode/slotstates.pm | 6 +++--- apps/apache/serverstatus/mode/workers.pm | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/apps/apache/serverstatus/mode/libconnect.pm b/apps/apache/serverstatus/mode/libconnect.pm index 747e83eab..786321481 100644 --- a/apps/apache/serverstatus/mode/libconnect.pm +++ b/apps/apache/serverstatus/mode/libconnect.pm @@ -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(); - } + } } diff --git a/apps/apache/serverstatus/mode/requests.pm b/apps/apache/serverstatus/mode/requests.pm index cb25fdfc9..65484778a 100644 --- a/apps/apache/serverstatus/mode/requests.pm +++ b/apps/apache/serverstatus/mode/requests.pm @@ -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' }, diff --git a/apps/apache/serverstatus/mode/responsetime.pm b/apps/apache/serverstatus/mode/responsetime.pm index d21e3a2ce..3d61cff2f 100644 --- a/apps/apache/serverstatus/mode/responsetime.pm +++ b/apps/apache/serverstatus/mode/responsetime.pm @@ -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' }, diff --git a/apps/apache/serverstatus/mode/slotstates.pm b/apps/apache/serverstatus/mode/slotstates.pm index f23e406d6..c10ecf3da 100644 --- a/apps/apache/serverstatus/mode/slotstates.pm +++ b/apps/apache/serverstatus/mode/slotstates.pm @@ -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' }, diff --git a/apps/apache/serverstatus/mode/workers.pm b/apps/apache/serverstatus/mode/workers.pm index c49cad96a..9ed7d700c 100644 --- a/apps/apache/serverstatus/mode/workers.pm +++ b/apps/apache/serverstatus/mode/workers.pm @@ -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();