Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Health Check System.

Features

  • HTTP Health Checks: GET/HEAD requests with status code, response time, and body validation
  • TCP Port Checks: Verify that services are listening on expected ports
  • DNS Resolution Checks: Validate domain name resolution and expected IP addresses
  • SSL Certificate Checks: Verify cert validity, expiry dates, and chain completeness
  • Configurable check intervals and timeout thresholds
  • Alert thresholds: warn when response time exceeds limits
  • JSON report output with timestamps and historical trends
  • Multi-target checking from a single config file
  • Exit codes for CI/CD integration (0 = all healthy, 1 = failures)
  • Python stdlib only — zero dependencies

Quick Start

bash
# Run all health checks from the example config
python src/health_checker.py --config examples/health_config.json

# Output as JSON report
python src/health_checker.py --config examples/health_config.json --format json

# Write report to file
python src/health_checker.py --config examples/health_config.json --format json --output report.json

# Run only HTTP checks
python src/health_checker.py --config examples/health_config.json --type http

# Set custom timeout
python src/health_checker.py --config examples/health_config.json --timeout 10

# Verbose output for debugging
python src/health_checker.py --config examples/health_config.json -v
Chapter 2

Configuration Reference

Follow this guide to get Health Check System up and running in your environment.

Configuration Reference

FieldTypeRequiredDescription
namestringYesName of the health check suite
checksarrayYesList of check definitions
defaultsobjectNoDefault timeout and thresholds
alertsobjectNoAlerting configuration

Check Definition

FieldTypeRequiredDescription
namestringYesHuman-readable check name
typestringYeshttp, tcp, dns, or ssl
targetstringYesURL, host:port, or domain to check
expected_statusintNoExpected HTTP status code (default: 200)
timeoutintNoCheck timeout in seconds
warn_threshold_msintNoResponse time warning threshold

CLI Reference

FlagDescription
--config, -cPath to the JSON health check config (required)
--format, -fOutput format: text or json (default: text)
--output, -oWrite report to file
--type, -tRun only checks of this type: http, tcp, dns, ssl
--timeoutOverride default timeout (seconds)
--verbose, -vEnable verbose logging
Chapter 3
🔒 Available in full product

License

You’ve reached the end of the free preview

Get the full Health Check System and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $19 →
📦 Free sample included — download another copy for the full product.
Health Check System v1.0.0 — Free Preview