Package: aptop
ApTopApTop ia a top(1) alike monitoring utility for Apache.Being daily involved in monitoring system load in shared environment I find it lacking proper tool for monitoring Apache behavior in real time. Granted there are some tools for this job, they are usually of limited options for some monitoring needs.ApTop was written as a hobby project in python for debugging purposes while investigating several system load situations caused by web applications in shared hosting environment.ApTop is still an early beta release with some known bugs, nevertheless it still provides a great starting point in monitoring Apache. Every feedback and feature request at this point is more than welcomed.DescriptionApTop will show near real time Apache active working processes and virtual host connections. By default sleeping / waiting for connections slots will be filtered out.ApTop is also displaying several screensDashboard or Home screenThis screen displays some relevant informations gathered fromapache-status_ page.Default sorting is by shortest Apache access timeSSand it displays only active connections. Displayed fields are the same as inserver-statuspage, so you can find detailed explanation for their meaning at the bottom of server-status page.Displayed fields are:PID- OS process IDM- Mode of operationCPU- CPU usage, number of secondsSS- Seconds since beginning of most recent request<Req- Milliseconds required to process most recent requestConn- Kilobytes transferred this connectionAcc- Number of accesses this connection / this child / this slotClient- Remote clientVHost- Local virtualhostRequest- Request method and partial URLCount by vhosts screenThis screen displays virtualhosts in order by highest count of active connections along with connection count.Very useful for detecting high traffic sites.Count by clients screenThis screen displays clients in order by highest count of active connections along with connection count.Very useful for detecting resource exhauster.RequirementsApTop should work just fine on any Unix based system with Python standard
packages and lxml.Make sure you have libxml2 libxslt libxslt-devel libxml2-devel packages instaleld
prior to building lxml:For RHEL based distro you can install those withyuminstalllibxml2libxsltlibxslt-devellibxml2-develAfter that you can installlxmlPython package withpipinstalllxmlApTop is using Apachesmod_statuswithExtendedStatus Onfor gathering data.Please ensure thatmod_statusis enabled and proper status url is defined inaptop.confInstallationThese installation options are for RHEL based distros, adjust accordingly.yum install libxml2 libxslt libxslt-devel libxml2-devel python-setuptools

pip install  ApTopYou can now runaptop.pyConfigurationApTop has some built in default configuration directives, but it will also look first in~/.aptop.confand then/etc/aptop.conffor overrides.ApTop uses .ini style configuration files and main configuration options should be
placed after[aptop]section.By default ApTop will usehttp://localhost/server-statusURL for grabbing
data to display, and with default refresh rate of 5 seconds.Available configuration optionsstatus_url = URLThis configuration option will require you to enter valid mod_status status URL
for server you wish to monitor.
This defaults tohttp://localhost/server-statusNote that Apache should have ExtendedStatus conf option set to Onrefresh = secondsThis option will control ApTop default refresh interval. It defaults
to 5 seconds and can't be lower than 1 second.You can even monitor the remote systems if they granted you access rights to theirs server-status URL.
In the future ApTop will provide options to save remote monitored servers to its configuration.Runtime optionsWhile running ApTop responds to following options:H- display main screenV- display vhosts by conn. countC- display clients by conn. countU- display count by urlR- reverse the current sort orderI- toggle active/inactive slotsD- change the refresh rateO- change sort fieldM- filter methods