fcgi-probe

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2023 License: 0BSD Imports: 12 Imported by: 0

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

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

fcgi-probe tcp4://localhost:9000/livez

Note Make sure your document root and index parameter match with the fcgi app

Installation

Binary Release

curl -fsSL github.com/wolf-gmbh/fcgi-probe/releases/latest/download/fcgi-probe_Linux_x86_64.tar.gz \
  | tar -C /usr/local/bin/ -xzf - fcgi-probe
From Source
go install github.com/wolf-gmbh/fcgi-probe@latest

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL