https://github.com/wolf-gmbh/fcgi-probe
Probe fcgi applications and fail on bad status
https://github.com/wolf-gmbh/fcgi-probe
fcgi fpm health-check kubernetes php
Last synced: 4 months ago
JSON representation
Probe fcgi applications and fail on bad status
- Host: GitHub
- URL: https://github.com/wolf-gmbh/fcgi-probe
- Owner: wolf-gmbh
- License: 0bsd
- Created: 2023-01-16T11:01:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-01T13:51:36.000Z (about 2 years ago)
- Last Synced: 2025-05-30T15:55:36.619Z (about 1 year ago)
- Topics: fcgi, fpm, health-check, kubernetes, php
- Language: Go
- Homepage:
- Size: 15.4 MB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fcqi-probe
Probe fcgi applications and fail on bad status.
> **Note** this is currently geared towards fpm. It probably wont work with other types of fcgi apps.
## Synopsis
```console
Usage of fcgi-probe:
fcgi-probe [OPTIONS]... [URL]
OPTIONS:
--document-root string the fpm document root (default "/var/www/html")
--index string the php entrypoint (default "index.php")
-H, --header strings additional http headers are mapped to fcgi HTTP_X params
-X, --method string the method to use for the request (default "GET")
-d, --data string the request body
-s, --silent don't show any output, unless failed
--status-min int fail if status is below (default 200)
--status-max int fail if status is above (default 299)
--debug dump the fcgi params
```
The fcqi `REQUEST_URI` and `PATH_INFO` are derived from the request path.
## Example
```bash
fcgi-probe tcp4://localhost:9000/livez
```
> **Note** Make sure your document root and index parameter match with the fcgi app
## Installation
## Binary Release
```bash
curl -fsSL github.com/wolf-gmbh/fcgi-probe/releases/latest/download/fcgi-probe
chmod +x fcgi-probe
```
### From Source
```bash
go install github.com/wolf-gmbh/fcgi-probe@latest
```