From ef2a29eee2a1eea75ae6a27f8eee433f65327f72 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 16 Dec 2016 15:40:07 +0100 Subject: [PATCH] + Fix #568 --- apps/apache/serverstatus/mode/cpuload.pm | 5 +++++ apps/apache/serverstatus/mode/requests.pm | 5 +++++ apps/apache/serverstatus/mode/responsetime.pm | 5 +++++ apps/apache/serverstatus/mode/slotstates.pm | 5 +++++ apps/apache/serverstatus/mode/workers.pm | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/apps/apache/serverstatus/mode/cpuload.pm b/apps/apache/serverstatus/mode/cpuload.pm index df0a4f44d..465cd197f 100644 --- a/apps/apache/serverstatus/mode/cpuload.pm +++ b/apps/apache/serverstatus/mode/cpuload.pm @@ -42,6 +42,7 @@ sub new { "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, + "header:s@" => { name => 'header' }, "warning:s" => { name => 'warning' }, "critical:s" => { name => 'critical' }, "timeout:s" => { name => 'timeout' }, @@ -143,6 +144,10 @@ Specify password for basic authentification (Mandatory if --credentials is speci Threshold for HTTP timeout +=item B<--header> + +Set HTTP headers (Multiple option) + =item B<--warning> Warning Threshold for CpuLoad diff --git a/apps/apache/serverstatus/mode/requests.pm b/apps/apache/serverstatus/mode/requests.pm index 8ab2a2928..16667df95 100644 --- a/apps/apache/serverstatus/mode/requests.pm +++ b/apps/apache/serverstatus/mode/requests.pm @@ -43,6 +43,7 @@ sub new { "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, + "header:s@" => { name => 'header' }, "warning:s" => { name => 'warning' }, "critical:s" => { name => 'critical' }, "warning-bytes:s" => { name => 'warning_bytes' }, @@ -232,6 +233,10 @@ Specify password for basic authentification (Mandatory if --credentials is speci Threshold for HTTP timeout +=item B<--header> + +Set HTTP headers (Multiple option) + =item B<--warning> Warning Threshold for Request per seconds diff --git a/apps/apache/serverstatus/mode/responsetime.pm b/apps/apache/serverstatus/mode/responsetime.pm index 72e44c706..d4d4c62c4 100644 --- a/apps/apache/serverstatus/mode/responsetime.pm +++ b/apps/apache/serverstatus/mode/responsetime.pm @@ -43,6 +43,7 @@ sub new { "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, + "header:s@" => { name => 'header' }, "warning:s" => { name => 'warning' }, "critical:s" => { name => 'critical' }, "timeout:s" => { name => 'timeout' }, @@ -139,6 +140,10 @@ Proxy URL if any Threshold for HTTP timeout +=item B<--header> + +Set HTTP headers (Multiple option) + =item B<--unknown-status> Threshold warning for http response code diff --git a/apps/apache/serverstatus/mode/slotstates.pm b/apps/apache/serverstatus/mode/slotstates.pm index 6caa7a169..1507e1335 100644 --- a/apps/apache/serverstatus/mode/slotstates.pm +++ b/apps/apache/serverstatus/mode/slotstates.pm @@ -204,6 +204,7 @@ sub new { "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, + "header:s@" => { name => 'header' }, "timeout:s" => { name => 'timeout' }, "units:s" => { name => 'units', default => '%' }, }); @@ -356,6 +357,10 @@ Specify password for basic authentification (Mandatory if --credentials is speci Threshold for HTTP timeout +=item B<--header> + +Set HTTP headers (Multiple option) + =item B<--units> Threshold unit (Default: '%'. Can be: '%' or 'absolute') diff --git a/apps/apache/serverstatus/mode/workers.pm b/apps/apache/serverstatus/mode/workers.pm index 92625bd30..ef3c7959e 100644 --- a/apps/apache/serverstatus/mode/workers.pm +++ b/apps/apache/serverstatus/mode/workers.pm @@ -42,6 +42,7 @@ sub new { "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, "proxyurl:s" => { name => 'proxyurl' }, + "header:s@" => { name => 'header' }, "warning:s" => { name => 'warning' }, "critical:s" => { name => 'critical' }, "timeout:s" => { name => 'timeout' }, @@ -147,6 +148,10 @@ Specify password for basic authentification (Mandatory if --credentials is speci Threshold for HTTP timeout +=item B<--header> + +Set HTTP headers (Multiple option) + =item B<--warning> Warning Threshold (%) of busy workers