// 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

WordPress - REST API

93-wordpress-rest-api.yaml

HTTP(S)

What this example does

WordPress operations: WordPress - REST API. Use it for routine availability checks, post-update verification and incident triage.

Checks and behavior

  • Sends an GET request to https://www.example.com/wp-json/.
  • Checks allowed/denied HTTP status codes.
  • Validates required, forbidden or matching HTTP headers.
  • Looks for expected response content and/or rejects known error markers.
  • Validates redirect behavior and destination constraints.
  • TLS settings cover certificate trust, certificate expiry.
  • Formats results for nagios output.

Adapt example domains, addresses, credentials and thresholds to your environment before use.

YAML configuration

Download original YAML

# Copyright (c) 2026 mati peterson. Maintainer: mati peterson <ipsonic@mailbox.org>. Project: https://ipsonic.com/probe/. Disclaimer: Provided AS IS, without warranty of any kind. Use at your own risk; validate checks and configurations before production use.
# Optional WordPress REST API availability check.
# Only use if /wp-json/ is enabled and accessible by design.
name: "WordPress - REST API"
url: "https://www.example.com/wp-json/"
request:
  method: GET
  user_agent: "ipsonic-probe-wordpress/1.0"
  headers:
    Accept: application/json
  follow_redirects: true
timeouts:
  connect: 3
  response: 10
tls:
  verify: true
  min_valid_days: 30
tests:
  status:
    allow: [200]
  redirects:
    max_count: 2
    require_https: true
    allowed_hosts: [www.example.com, example.com]
  headers:
    contains:
      Content-Type: [application/json]
  body:
    contains: ['"namespaces"']
    not_contains: ["Fatal error", "Traceback"]
monitoring:
  service_name: "WordPress REST API"
  output: nagios
  on_failure: critical