{
  "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": "BGP peers established",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "d57bdf61-debc-5e89-8f5a-6dea0644b80e",
        "value_unit": "peers",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 0,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "d57bdf61-debc-5e89-8f5a-6dea0644b80e",
        "value_unit": "peers",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 1,
      "threshold_warn": 1,
      "interval_seconds": 120,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "Uptime",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.2.1.1.3.0",
        "unit": "ticks"
      },
      "sort_order": 1,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.2.1.1.3.0",
        "unit": "ticks"
      },
      "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": "HTTPS Port",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "port",
      "parameters": {
        "port": 443
      },
      "sort_order": 1,
      "value_type": "status",
      "description": "",
      "check_config": {
        "port": 443
      },
      "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": "Interface errors (sum)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "9e787b54-5acd-5fa8-bad4-72e349efaa0a",
        "value_unit": "errors",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 1,
      "value_type": "counter",
      "description": "",
      "check_config": {
        "script_id": "9e787b54-5acd-5fa8-bad4-72e349efaa0a",
        "value_unit": "errors",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 10000,
      "threshold_warn": 100,
      "interval_seconds": 300,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "OSPF neighbors not Full",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "a13e996f-f7a8-5a39-979b-54f2d0506930",
        "value_unit": "neighbors",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 2,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "a13e996f-f7a8-5a39-979b-54f2d0506930",
        "value_unit": "neighbors",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 1,
      "threshold_warn": 1,
      "interval_seconds": 120,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "SSH Port",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "port",
      "parameters": {
        "port": 22
      },
      "sort_order": 2,
      "value_type": "status",
      "description": "",
      "check_config": {
        "port": 22
      },
      "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": "CPU",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.2.1.25.3.3.1.2.1",
        "unit": "%"
      },
      "sort_order": 2,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.2.1.25.3.3.1.2.1",
        "unit": "%"
      },
      "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": "SSL Certificate",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssl_certificate",
      "parameters": {
        "port": 443
      },
      "sort_order": 3,
      "value_type": "duration",
      "description": "",
      "check_config": {
        "port": 443
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 7,
      "threshold_warn": 30,
      "interval_seconds": 3600,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "Memory Used",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.2.1.25.2.3.1.6.1"
      },
      "sort_order": 3,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.2.1.25.2.3.1.6.1"
      },
      "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": "CPU Load 1min (×100)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_oid",
      "parameters": {
        "oid": "1.3.6.1.4.1.2021.10.1.5.1",
        "unit": "percent"
      },
      "sort_order": 4,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.2021.10.1.5.1",
        "unit": "percent"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 90,
      "threshold_warn": 75,
      "interval_seconds": 60,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "Memory Available (kB)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_oid",
      "parameters": {
        "oid": "1.3.6.1.4.1.2021.4.6.0",
        "unit": "bytes"
      },
      "sort_order": 5,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.2021.4.6.0",
        "unit": "bytes"
      },
      "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": "SNMP Uptime",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_oid",
      "parameters": {
        "oid": "1.3.6.1.2.1.1.3.0",
        "unit": "ticks"
      },
      "sort_order": 6,
      "value_type": "duration",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.2.1.1.3.0",
        "unit": "ticks"
      },
      "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": "UniFi — System-Uptime",
      "auto_add": false,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.2.1.1.3.0",
        "unit": "ticks"
      },
      "sort_order": 1000,
      "value_type": "gauge",
      "description": "sysUpTimeInstance (1.3.6.1.2.1.1.3.0). Standard-MIB, funktioniert auf allen UniFi-Geräten. Wert in Hundredstel-Sekunden — der Collector formatiert das passend (siehe unit=ticks Logik in check_snmp.go).\n",
      "check_config": {
        "oid": "1.3.6.1.2.1.1.3.0",
        "unit": "ticks"
      },
      "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": "UniFi-Switch — Anzahl Interfaces",
      "auto_add": false,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.2.1.2.1.0",
        "unit": ""
      },
      "sort_order": 1001,
      "value_type": "gauge",
      "description": "ifNumber — Anzahl SNMP-bekannter Interfaces (Sanity-Check).",
      "check_config": {
        "oid": "1.3.6.1.2.1.2.1.0",
        "unit": ""
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 3600,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    }
  ],
  "profile": {
    "icon": "router",
    "name": "Ubiquiti EdgeRouter",
    "tags": [
      "ubiquiti",
      "edgerouter",
      "snmp"
    ],
    "vendor": "ubiquiti",
    "category": "router",
    "os_family": null,
    "description": "SNMP monitoring for Ubiquiti EdgeRouters.",
    "ip_required": true,
    "port_layout": null,
    "visual_type": null,
    "snmp_enabled": true,
    "agent_capable": false,
    "requires_snmp": true,
    "description_md": "SNMP monitoring for Ubiquiti EdgeRouters.",
    "requires_agent": false,
    "sysoid_patterns": null,
    "sysdescr_patterns": null,
    "requires_collector": true
  },
  "scripts": [
    {
      "name": "BGP peers established",
      "script_id": "d57bdf61-debc-5e89-8f5a-6dea0644b80e",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "vtysh -c 'show ip bgp summary' 2>/dev/null | awk 'NR>5 && /^[0-9]/{if($NF !~ /^[0-9]/) c++} END{print c+0}' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "Interface errors (sum)",
      "script_id": "9e787b54-5acd-5fa8-bad4-72e349efaa0a",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "vtysh -c 'show interface' 2>/dev/null | awk '/input errors|output errors/{s+=$3} END{print s+0}' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "OSPF neighbors not Full [68496a]",
      "script_id": "a13e996f-f7a8-5a39-979b-54f2d0506930",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "vtysh -c 'show ip ospf neighbor' 2>/dev/null | awk 'NR>2 && /[0-9]/{if($2 != \\\"Full/\\\") c++} END{print c+0}' || echo 0",
      "expected_output": "nagios"
    }
  ],
  "schema_version": 1
}