Skip to content

Instantly share code, notes, and snippets.

@fduran
fduran / gist:4543001
Last active May 9, 2018 18:35
Python script to test/monitor if a Django site using authentication is up
# www.fduran.com
# python script to test/monitor if a Django site using authentication is up
# with logging output to a file including response times
# use in cronjob and output to log file, for ex: python /path/to/script.py >> /var/log/webmonitor.log
# bash: install pip if not already in system
apt-get install python-setuptools python-dev build-essential
easy_install -U pip
# bash: install requests