django-health-check 0.1.1 Beta 3

A pluggable app that runs a full check on the deployment, using a number of plugins to check e.g. database, queue server, celery processes, etc.
django-health-check is a Django app that checks a number of backends, if they are able to connect and do a simple action, e.g. check out the django ORM backend.

```python

class DjangoDatabaseBackend(BaseHealthCheckBackend):

    def check_status(self):
        try:
            obj = TestModel.objects.create(title="test")
            obj.title = "newtest"
            obj.save()
            obj.delete()
            return HealthCheckStatusType.working
        except IntegrityError:
            return HealthCheckStatusType.unexpected_result
        except DatabaseError:
            return HealthCheckStatusType.unavailable

```


The project is made using some of the same codes, that the django admin site uses - so when you have sucessfully written a new plugin, you register it to the pool, e.g.

```python
plugin_dir.register(DjangoDatabaseBackend)
```


Installing

Add this to urls.py

```python
url(r'^ht/', include('health_check.urls'))
```


Add required apps:

```python
    'health_check',
    'health_check_celery',
    'health_check_db',
    'health_check_cache',
```


(remember to add dependencies, e.g. djcelery - however you should have that already, if you have celery running).

last updated on:
November 5th, 2011, 17:59 GMT
price:
FREE!
developed by:
Kristian Ollegaard
homepage:
github.com
license type:
BSD License 
category:
ROOT \ Internet \ HTTP (WWW)
django-health-check
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT