From 33ae91b7984f1f8358a6e8d9b1acde225587b14d Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Fri, 7 Jun 2024 10:22:19 +0200 Subject: [PATCH] update apache http doc --- docs/20_Checks/check_haproxy_status.md | 1 + docs/20_Checks/check_http.md | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/20_Checks/check_haproxy_status.md b/docs/20_Checks/check_haproxy_status.md index b7b233d..a9465d7 100644 --- a/docs/20_Checks/check_haproxy_status.md +++ b/docs/20_Checks/check_haproxy_status.md @@ -3,6 +3,7 @@ ## Introduction **check_haproxy_health** show status and connections count on frontend and backend. +This check sends performance data. ## Syntax diff --git a/docs/20_Checks/check_http.md b/docs/20_Checks/check_http.md index 44353c6..f505cda 100644 --- a/docs/20_Checks/check_http.md +++ b/docs/20_Checks/check_http.md @@ -2,8 +2,14 @@ ## Introduction -Makes an http request with a given method. -Additionally you can verify the response. +Makes an http request with a given method (like HEAD or GET; GET is default). +Additionally you can verify the response: + +* check if the status code is the wanted; default: if no code is given it switches to error on status codes > 400 +* check http response header for a given regex; default: no check +* check http response body for a given regex; default: no check +* check http response body if a given regex does not exist; default: no check +* the response body can be filtered with a given filter using ``jq``; default: no filtering ## Requirements @@ -123,7 +129,7 @@ Found: ### Exact status code -With ``-m`` you can verify if the status code matches exactly a given value. +With ``-s`` you can verify if the status code matches exactly a given value. You also can set a code for http error to ensure if a protected url really is blocking the request. Maybe you don't deny the access like -- GitLab