Skip to content
Snippets Groups Projects
Commit f45416ff authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

haproxy_health: add doc page

parent 259a9de9
No related branches found
No related tags found
1 merge request!1296468-docs-and-harmonize
......@@ -22,7 +22,7 @@ There is one include script used by all checks:
* [check_eol](check_eol.md)
* [check_fs_errors](check_fs_errors.md)
* [check_fs_writable](check_fs_writable.md)
* check_haproxy_health
* [check_haproxy_health](check_haproxy_health.md)
* check_haproxy_status
* check_memory
* check_mysqlserver
......
# Check filesystem errors
## Introduction
**check_haproxy_health** checks if kernel logs inconsistency messages in the journallog.
It requires sudo permission on /bin/journalctl
If it would find error messages it switches to critical and shows the found journallog entries.
## Requirements
* sudo permission on /bin/journalctl to scan for the information
```txt
icingaclient ALL=(ALL) NOPASSWD: /bin/journalctl
```
## Syntax
```txt
______________________________________________________________________
CHECK_HAPROXY_HEALTH
v1.6
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_haproxy_health.html
______________________________________________________________________
Check HA Proxy health.
The plugin reads /etc/haproxy/haproxy.cfg to detect required status url.
It requires wget to handle the http request.
Non OK values occur:
UNKNOWN - if /etc/haproxy/haproxy.cfg cannot be read
- haproxy is not in http mode
- the detected status url doesn't send a response
ERROR - the detected status url did not respond with Http status
code 200
SYNTAX:
check_haproxy_health [-h]
OPTIONS:
-h or --help show this help.
EXAMPLE:
check_haproxy_health
```
### Parameters
(none)
## Examples
`$ check_haproxy_health` returns
```txt
OK: HA Proxy http://localhost:8080/_haproxy_health_check is up and running.
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment