fcgi-probe

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: 0BSD Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址