Giter VIP home page Giter VIP logo

php-fpm-status-cli's Introduction

php-fpm-status-cli

Simple CLI to access PHP-FPM status page when the HTTP server is not configured to do so.

CircleCI

Install

$ composer require wizaplace/php-fpm-status-cli

Usage

$ php-fpm-status -h
Usage:
  php-fpm-status [options]

Options:
      --socket=SOCKET   Unix socket or tcp address where php-fpm listens [default: "unix:///run/php/php7.1-fpm.sock"]
      --path=PATH       The URI to view the FPM status page. If this value is not set, no URI will be recognized as a status page. [default: "/status"]
      --full            Show full server status
      --format=FORMAT   Output format for the status, txt by default, [html, json, xml] available
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  Get PHP-FPM status

The socket can be unix:///path/to/socket for a UNIX socket or tcp://127.0.0.1:9000 for a TCP address.

The path is the pm.status_path configuration option in the main FPM config or in the pool.

Output

$ php-fpm-status
pool:                 www
process manager:      dynamic
start time:           18/Oct/2017:13:48:20 +0000
start since:          6
accepted conn:        1
listen queue:         0
max listen queue:     0
listen queue len:     128
idle processes:       1
active processes:     1
total processes:      2
max active processes: 1
max children reached: 0
slow requests:        0

Use the --full option to retrieve more information.

php-fpm-status-cli's People

Contributors

luxifer avatar mnapoli avatar vdechenaux avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.