1 Summary: Provides real-time display of the active processes from a remote Apache HTTP server
4 # date when fetched from git
7 Group: Applications/System
8 Source0: http://www.isartor.org/w/images/3/39/Apache-top.py
9 # Source0-md5: 4843daed2cbac7346c31d6cf0fcf6c1b
10 URL: http://www.isartor.org/wiki/Monitor_you_Apache_processes
11 BuildRequires: python-modules >= 1:2.4
12 BuildRequires: rpm-pythonprov
13 BuildRequires: rpmbuild(macros) >= 1.219
14 BuildRequires: sed >= 4.0
15 Requires: python-modules
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 apache-top provides real-time display of the active processes from a
21 remote Apache HTTP server. It's like the top Linux command.
23 With apache-top you can get:
24 - The active Apache processes with their associated PID, the status,
25 the seconds being active, the CPU usage, the asociated VirtualHost,
26 the accessing ip and the request (POST or GET, the file being accessed
27 and the used protocol)
28 - The server uptime and the last time it was restarted
30 - Requests by second, Kb by second and the average Kb by request
31 - Number of active and inactive processes
32 - A graph with the inactive and active processes and their status
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_bindir}
40 install -p %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/%{name}
41 %{__sed} -i -e '1s,^#!.*python,#!%{__python},' $RPM_BUILD_ROOT%{_bindir}/%{name}
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %attr(755,root,root) %{_bindir}/apache-top