// IPSonic MONITORING TOOLKIT / DOCUMENTATION
ipsonic-probe rainbow unicorn

ipsonic-probe ✦

YAML-driven infrastructure validation. Platform-agnostic checks. Zero cloud dependencies.

DNSTCPHTTP / TLSYAML CONFIGCLI FIRSTKISSOFFLINE READY

Part of the ipsonic project ↗ Visit the main website

YAML configuration reference

A single YAML document defines one check. All check types use the same top-level layout:

# type is explicit and recommended; legacy files without type remain valid.
type: https              # dns | tcp | http | https
name: Public API
url: https://example.org/health
metadata:
  owner: operations
  environment: production
timeouts:
  connect: 3
  response: 5
  total: 12
monitoring:
  output: nagios
  on_failure: critical

Protocol selection

typeRequired targetWhat is checkedProtocol-specific sections
dnsdns: mappingDNS answers / optional server consistencydns, evidence.dns_rrset
tcpurl: tcp://host:portTCP connectconnection, timeouts
httpurl: http://host/pathHTTP request / assertionsrequest, auth, proxy, tests, connection, evidence.http_headers
httpsurl: https://host/pathHTTP plus TLS validationHTTP sections plus tls, evidence.tls_fingerprint

type must agree with the target. dns and url are mutually exclusive. type is optional for compatibility with older files, but recommended for all new checks. TLS is not a standalone check type: use type: https with tls and TLS evidence. For a plain TLS-port reachability check use type: tcp; this does not validate a certificate.

Shared sections

SectionKeysMeaning
typedns, tcp, http, httpsExplicit protocol discriminator
namestringHuman-readable check name
metadataowner, environment, description, runbook, tagsOperational ownership; tags are a list
timeoutsconnect, response, totalPositive seconds; total is the logical deadline
monitoringoutput, on_failure, response-time thresholdsNagios/Icinga/Checkmk/JSON/text result selection
executionretries, retry_delay, success_required, backendsRetry and backend orchestration
testsstatus, headers, body, structured, etc.HTTP assertions; see assertions guide
evidencehttp_headers, tls_fingerprint, dns_rrsetExplicit, bounded diagnostic capture

DNS check

type: dns
name: DNS example
dns:
  name: example.org
  records:
    A: [93.184.215.14]
  nameserver: 1.1.1.1
  port: 53
  transport: auto
  timeout: 3
  dnssec: false
  # compare_nameservers: [1.1.1.1, 8.8.8.8]
  # require_identical: true
timeouts:
  total: 12
monitoring:
  output: nagios

DNS record expectations are configured under dns.records; they are not HTTP assertions. DNSSEC record inspection is not a cryptographic chain-of-trust verification.

TCP check

type: tcp
name: SSH listener
url: tcp://127.0.0.1:22
timeouts:
  connect: 3
  total: 10
monitoring:
  output: nagios

TCP does not perform TLS negotiation, HTTP requests, or banner assertions.

HTTP check

type: http
name: Plain HTTP redirect
url: http://example.org/
request:
  method: GET
  follow_redirects: false
tests:
  status:
    allow: [200, 301, 302]
timeouts:
  connect: 3
  response: 5
  total: 12
monitoring:
  output: nagios

HTTPS + TLS check

type: https
name: Secure API
url: https://example.org/health
tls:
  verify: true
  # ca_file_env: IPSONIC_CA_FILE
request:
  method: GET
tests:
  status:
    allow: [200]
evidence:
  tls_fingerprint: true
  http_headers: [content-type, strict-transport-security]
timeouts:
  connect: 3
  response: 5
  total: 12
monitoring:
  output: nagios

For private PKI, use tls.ca_file_env instead of disabling verification. HTTP authentication belongs under auth and should reference environment variables (token_env, password_env). Never store live credentials in example YAML.

Validating and exploring

python3 ipsonic-probe.py --validate --strict examples/198-protocol-dns-explicit.yaml
python3 ipsonic-probe.py --explain examples/201-protocol-https-explicit.yaml
python3 ipsonic-probe.py --lint examples/
python3 ipsonic-probe.py --inventory examples/ --format tsv

Strict mode detects unknown keys in supported sections and literal authentication secrets; it does not yet enforce a complete nested JSON Schema. Consult User Guide, Assertions & Evidence, and the Examples for advanced options. This reference intentionally distinguishes protocol-specific features instead of implying every setting applies to every protocol.