GitXplorerGitXplorer
l

http-monitor

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
8e4521b3115b18567601d4f4e6db73381e8a6eef

fix | new line not working

llouismartin committed 10 years ago
Unverified
e70f15c61d6c4d8f95b5e5c79c1f651b03b6242d

Merge remote-tracking branch 'origin/master'

committed 10 years ago
Unverified
76c60dbf4bb02314079c77ac75b4b64e7a59942c

Update | linux visual, cross-platform, errors

committed 10 years ago
Unverified
a528ed73fac36be0faf784a9a2c91c7cd061d324

fix | display problem

llouismartin committed 10 years ago
Unverified
3cd1a4663ff042eb14db64b3d463041a27218729

Changed log path

committed 10 years ago
Unverified
99baaf3840ca946366a974b9bef9a55c71c5f95f

modified sentence

committed 10 years ago

README

The README file for this repository.

HTTP log monitoring console program (python 3.4)

Set log path and parameters in parameters.cfg

On Linux: -Set files as executables:
chmod +x run_simulation.sh
chmod +x run_monitor.sh
chmod +x run_tests.sh

-Run simulation with run_simulation.sh
(press q to exit, wheel to scroll)
-Run log monitor with run_monitor.sh
(press q to exit, wheel to scroll)
-Run Unit tests with run_tests.sh
(python3.4 must be recognized as an internal command)

On Windows:
-Run simulation with run_simulation.bat
-Run log monitor with run_monitor.bat
-Run Unit tests with run_tests.bat
(py must be recognized as an internal command)

Create a simple console program that monitors HTTP traffic on your machine:

Consume an actively written-to w3c-formatted HTTP access log

Every 10s, display in the console the sections of the web site with the most hits (a section is defined as being what's before the second '/' in a URL. i.e. the section for "http://my.site.com/pages/create' is ""http://my.site.com/pages"), as well as interesting summary statistics on the traffic as a whole.

Make sure a user can keep the console app running and monitor traffic on their machine

Whenever total traffic for the past 2 minutes exceeds a certain number on average, add a message saying that “High traffic generated an alert - hits = {value}, triggered at {time}”

Whenever the total traffic drops again below that value on average for the past 2 minutes, add another message detailing when the alert recovered

Make sure all messages showing when alerting thresholds are crossed remain visible on the page for historical reasons.

Write a test for the alerting logic

Explain how you’d improve on this application design