knobs-dials / apache-serverstatus

A live CLI view based on apache's mod_status

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apache-serverstatus

A live view on apache's mod_status in the shell.

Proof of concept version, to see how useful it is diagnosing handler issues.

Currently only tested on prefork - I assume all others vary their output (I know that some do).

screenshot

screenshot

arguments

Usage: apache-serverstatus [options]

Options:
  -h, --help            show this help message and exit
  -i INTERVAL, --interval-sec=INTERVAL
                        Poll interval, in seconds. Defaults to 0.25
  -p, --no-chop-port    By default we chop post off vhost for readability. Use
                        this if you want to see those.
  -v VCHOP, --chop-vhost=VCHOP
                        Chop off parts from the end of vhost. Defaults to 1,
                        aiming to remove .com or such. Will refuse to remove
                        everything, so a high value shows the first part of
                        every name.
  -u HOST, --host=HOST  We basically fetch http://THIS/server-status  so this
                        defaults to 127.0.0.1

TODO:

  • deal with non-ExtendedStatus output too
  • look at parsing outputs for other MPMs (it's currently aimed at prefork)
  • summarize acc, conn, child, and slot (currently omitted because they're more about reuse than current requests)
  • make columns configutable
  • adapt vhost column size to maximum presented length

About

A live CLI view based on apache's mod_status

License:GNU General Public License v3.0


Languages

Language:Python 100.0%