Python: Check that your projects are still alive
I wrote the following Python script to solve my need to verify all my projects are still up and running. The program itself is simple: given a list of URL-s check that all of them return HTTP status code 200 (OK). On any other status (mainly 500) send a report to the admin.
Best used via crontab every… minutes.
Install: Copy both files to a directory (~/bin works well) and check that dependencies (imports) are satisfied. Configure via http_check.yaml, optionally adding custom actions to http_ok() and http_error() functions inside the main script file.
Link to the source (GitHub)
Sarnased postitused
Got anything to say? Go ahead and leave a comment!
Say No! to ACTA
Topics
Articles (5)
Coding (23)
Events (1)
Friday Night Project (3)
IT College (14)
Linux (9)
Opinions (26)
Original (16)
Personal (25)
PHP (5)
Python (12)
Uncategorized (3)
Latest Tweets
Tags
ai
AJAX
api
c#
chat
chatterbot
css
design
development
eesti
facebook
fantasy
Featured
framework
GitHub
google
GUI
html
idea
impro
Improvisational theatre
IT College
ITK
java
javascript
kohana
kool
linux
Microsoft
NET
php
privacy
programming
python
rebased
ristsõna
script
security
sms
twitter
visual studio
web 2.0
Wi-Fi
Windows
üritus




Posted under: 