Skip to main content

A python based tool to check that a given resource (URL, Certificate and DNS entry) is alive and valid.

Project description

健康 - kenkou - health

A python based tool to check that a given resource is alive and valid.

It can check on URLs, Certificates and also DNS entries.

All redirects are followed and once the final URL is discovered it is tested for a 2XX result. If a 2XX is returned it is also scanned for mixed-content items if the url is HTTPS. Certificates are verified for any HTTPS site.

Currently it assumes port 443 for TLS and also that the given domain resolves to an IP address.

Designed to be run from a cronjob as often as you want to check the sites.

Note: Kenkou will check to see if the [Certifi]( Python package is installed, and if so, it will use the CA Bundle from that. If not it will check to see if ```/etc/ssl/certs/ca-certificates.crt``` exists. If neither is found it will exit with an error if a certificate check was requested.


python [-c|--config FILENAME]

-c --config Configuration file (json format)

The output is a based on the value of the "onevent" configuration key:
"json" (default if not present)

See requirements.txt for details about what Python modules to install.

Example kenkou.cfg file:

{ "pagerduty": {
"url": "",
"method": "POST",
"params": { "service_key": "secret",
"incident_key": "incident_secret",
"event_type": "trigger",
"description": "FAILURE for production/HTTP"
"postageapp": {
"api_key": "secret",
"recipients": [ "" ]
"onevent": [ "postageapp" ],
"checks": "kenkou_check.cfg"


{ "web": { "url": "",
"dns": [ "", "",
[ "", "" ]
"cert": ""
"lb": { "url": "",
"dns": [ "", "",
[ "", "" ]
"cert": ""

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for kenkou, version 0.5.5
Filename, size File type Python version Upload date Hashes
Filename, size kenkou-0.5.5-py2-none-any.whl (14.2 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size kenkou-0.5.5.tar.gz (9.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page