{
  "checks": [
    {
      "name": "Ping",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ping",
      "parameters": {},
      "sort_order": 0,
      "value_type": "duration",
      "description": "",
      "check_config": {},
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 60,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "BIND queries/sec (last 5min from stats)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "fa4cf362-fe3d-54de-87d6-9fb291ad0177",
        "value_unit": "qps",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 0,
      "value_type": "info",
      "description": "",
      "check_config": {
        "script_id": "fa4cf362-fe3d-54de-87d6-9fb291ad0177",
        "value_unit": "qps",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 300,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "DNS TCP",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "port",
      "parameters": {
        "port": 53
      },
      "sort_order": 1,
      "value_type": "status",
      "description": "",
      "check_config": {
        "port": 53
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 60,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "BIND zones loaded",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "57eef685-d1d4-5af8-a778-9ee576ba8629",
        "value_unit": "zones",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 1,
      "value_type": "info",
      "description": "",
      "check_config": {
        "script_id": "57eef685-d1d4-5af8-a778-9ee576ba8629",
        "value_unit": "zones",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 600,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "BIND SERVFAIL responses (last 5min)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "be632b9c-b1c8-5261-b0c1-a1e9c2c7a68b",
        "value_unit": "failures",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 2,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "be632b9c-b1c8-5261-b0c1-a1e9c2c7a68b",
        "value_unit": "failures",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 100,
      "threshold_warn": 10,
      "interval_seconds": 300,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "CPU",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_cpu",
      "parameters": {},
      "sort_order": 2,
      "value_type": "gauge",
      "description": "",
      "check_config": {},
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 95,
      "threshold_warn": 80,
      "interval_seconds": 120,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "DNS recursion test (self-resolve)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "03765b42-0a65-5daa-8884-d691d51b132f",
        "value_unit": "answers",
        "match_regex": "^0$",
        "extract_value": "^(\\d+)",
        "fail_if_match": true
      },
      "sort_order": 3,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "03765b42-0a65-5daa-8884-d691d51b132f",
        "value_unit": "answers",
        "match_regex": "^0$",
        "extract_value": "^(\\d+)",
        "fail_if_match": true
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 120,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "Memory",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_mem",
      "parameters": {},
      "sort_order": 3,
      "value_type": "gauge",
      "description": "",
      "check_config": {},
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 95,
      "threshold_warn": 85,
      "interval_seconds": 120,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "DNS service running",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "ea274c58-27c4-51bd-8962-da530dae13d8",
        "value_unit": "up",
        "match_regex": "^0$",
        "extract_value": "^(\\d+)",
        "fail_if_match": true
      },
      "sort_order": 4,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "ea274c58-27c4-51bd-8962-da530dae13d8",
        "value_unit": "up",
        "match_regex": "^0$",
        "extract_value": "^(\\d+)",
        "fail_if_match": true
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 60,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    }
  ],
  "profile": {
    "icon": "server",
    "name": "DNS Server",
    "tags": [
      "dns",
      "bind",
      "network"
    ],
    "vendor": "generic",
    "category": "server",
    "os_family": "linux",
    "description": "DNS Server: Port, Service, CPU, RAM.",
    "ip_required": true,
    "port_layout": null,
    "visual_type": null,
    "snmp_enabled": false,
    "agent_capable": false,
    "requires_snmp": true,
    "description_md": "DNS Server: Port, Service, CPU, RAM.",
    "requires_agent": false,
    "sysoid_patterns": null,
    "sysdescr_patterns": null,
    "requires_collector": true
  },
  "scripts": [
    {
      "name": "BIND queries/sec (last 5min from stats)",
      "script_id": "fa4cf362-fe3d-54de-87d6-9fb291ad0177",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "rndc stats 2>/dev/null; awk '/QUERY/{q+=$1}END{print int(q/300)}' /var/cache/bind/named.stats 2>/dev/null || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "BIND zones loaded",
      "script_id": "57eef685-d1d4-5af8-a778-9ee576ba8629",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "rndc status 2>/dev/null | awk -F: '/number of zones/{print $2+0; exit}' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "BIND SERVFAIL responses (last 5min)",
      "script_id": "be632b9c-b1c8-5261-b0c1-a1e9c2c7a68b",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "journalctl -u named --since '5min ago' 2>/dev/null | grep -c SERVFAIL || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "DNS recursion test (self-resolve)",
      "script_id": "03765b42-0a65-5daa-8884-d691d51b132f",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "dig +short +time=3 example.com @127.0.0.1 2>/dev/null | wc -l",
      "expected_output": "nagios"
    },
    {
      "name": "DNS service running",
      "script_id": "ea274c58-27c4-51bd-8962-da530dae13d8",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "systemctl is-active bind9 named unbound 2>/dev/null | grep -c '^active$' || echo 0",
      "expected_output": "nagios"
    }
  ],
  "schema_version": 1
}