Install Apachetop

A curses-based top-like display for Apache information, including requests per second, bytes per second, most popular URLs, etc.

wget http://blargman.com/installer.sh

sh installer.sh

then run atop.sh

Enjoy! 😉

Here’s a few custom ./configure options and overrides:

–with-logfile= (added in v0.11)

You may specify the location of the default logfile to open. This overrides the #define in apachetop.h. Of course, you can just use -f on the apachetop commandline, but if you’ll only ever use one log, you can give it to configure and never worry about it again.

–with-pcre= (added in v0.11)

Specifies where to find the pcre installation in the event it’s not in your standard path. configure should look for /include/pcre.h and /lib/libpcre.*

–with-fam= (added in v0.12)

Specifies where to find the FAM installation. The path you give should contain include/fam.h and lib/libfam.* kqueue will be preferred to fam if both are found on the system.

–with-adns= (added in v0.12)

Specifies where to find an adns installation.

You’ll find the binary as src/apachetop

IF IT FAILS TO BUILD

Make sure you have the -dev sources for readline and (n)curses. These contain files required to build binaries that use these libraries; for example on Debian you’ll need the libreadline4-dev package installed.

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.