{
  "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": "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": "WebUI Port",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "port",
      "parameters": {
        "port": 8080
      },
      "sort_order": 1,
      "value_type": "status",
      "description": "",
      "check_config": {
        "port": 8080
      },
      "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": "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": 2,
      "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": "SMB Port",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "port",
      "parameters": {
        "port": 445
      },
      "sort_order": 2,
      "value_type": "status",
      "description": "",
      "check_config": {
        "port": 445
      },
      "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.4.1.24681.1.2.1.0",
        "unit": "%"
      },
      "sort_order": 3,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.1.0",
        "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": "SSH Port",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "port",
      "parameters": {
        "port": 22
      },
      "sort_order": 3,
      "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": "Memory Free",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.3.0",
        "unit": "MB"
      },
      "sort_order": 4,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.3.0",
        "unit": "MB"
      },
      "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": "SSL Certificate",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssl_certificate",
      "parameters": {
        "port": 443
      },
      "sort_order": 4,
      "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": "SMART Disks failed (count)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "5e98d9f9-313a-5357-8435-faee30c8b319",
        "value_unit": "disks",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 5,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "5e98d9f9-313a-5357-8435-faee30c8b319",
        "value_unit": "disks",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 1,
      "threshold_warn": 1,
      "interval_seconds": 300,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "System Temperature",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.5.0",
        "unit": "°C"
      },
      "sort_order": 5,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.5.0",
        "unit": "°C"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 60,
      "threshold_warn": 50,
      "interval_seconds": 300,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "Disk temperature max (°C)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "1572efe5-6a07-56d5-ade9-f8622dcae6df",
        "value_unit": "°C",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 6,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "1572efe5-6a07-56d5-ade9-f8622dcae6df",
        "value_unit": "°C",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 55,
      "threshold_warn": 45,
      "interval_seconds": 300,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "System Fan",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.6.0",
        "unit": "RPM"
      },
      "sort_order": 6,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.6.0",
        "unit": "RPM"
      },
      "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": "Disk power-on hours max (years)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "f66b2035-d095-5a20-997a-ba9d3a61f4ec",
        "value_unit": "years",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 7,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "f66b2035-d095-5a20-997a-ba9d3a61f4ec",
        "value_unit": "years",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 8,
      "threshold_warn": 5,
      "interval_seconds": 86400,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "CPU Fan",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.7.0",
        "unit": "RPM"
      },
      "sort_order": 7,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.7.0",
        "unit": "RPM"
      },
      "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": "Volume usage max (%)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "42758c46-17dd-5965-a028-7308977cc784",
        "value_unit": "%",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 8,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "42758c46-17dd-5965-a028-7308977cc784",
        "value_unit": "%",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 95,
      "threshold_warn": 85,
      "interval_seconds": 300,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "Volume Status",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_string",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.17.1.6.1",
        "match_value": "Ready"
      },
      "sort_order": 8,
      "value_type": "status",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.17.1.6.1",
        "match_value": "Ready"
      },
      "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": "Disk 1 Health",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_string",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.11.1.7.1",
        "match_value": "GOOD"
      },
      "sort_order": 9,
      "value_type": "status",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.11.1.7.1",
        "match_value": "GOOD"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 3600,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "mdraid degraded arrays",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "61aaaecf-8896-56d1-af0e-300eee437507",
        "value_unit": "arrays",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 9,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "61aaaecf-8896-56d1-af0e-300eee437507",
        "value_unit": "arrays",
        "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": "Disk 1 Temperature",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.11.1.3.1",
        "unit": "°C"
      },
      "sort_order": 10,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.11.1.3.1",
        "unit": "°C"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 55,
      "threshold_warn": 45,
      "interval_seconds": 3600,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "System temperature (°C)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "6b70d7f6-2902-52ce-9c56-1c0524f3c9a9",
        "value_unit": "°C",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 10,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "6b70d7f6-2902-52ce-9c56-1c0524f3c9a9",
        "value_unit": "°C",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 80,
      "threshold_warn": 65,
      "interval_seconds": 120,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "System fans failed",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "22671314-64f0-53e8-a29b-08632c636e65",
        "value_unit": "fans",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 11,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "22671314-64f0-53e8-a29b-08632c636e65",
        "value_unit": "fans",
        "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": "Disk 2 Health",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_string",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.11.1.7.2",
        "match_value": "GOOD"
      },
      "sort_order": 11,
      "value_type": "status",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.11.1.7.2",
        "match_value": "GOOD"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 3600,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "Disk 2 Temperature",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.11.1.3.2",
        "unit": "°C"
      },
      "sort_order": 12,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.11.1.3.2",
        "unit": "°C"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 55,
      "threshold_warn": 45,
      "interval_seconds": 3600,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "Load average per core (%)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "81fffd25-8464-5bbb-96f1-e2f5d061f393",
        "value_unit": "%",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 12,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "81fffd25-8464-5bbb-96f1-e2f5d061f393",
        "value_unit": "%",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 500,
      "threshold_warn": 200,
      "interval_seconds": 60,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "System Model",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_oid",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.1.0",
        "unit": ""
      },
      "sort_order": 13,
      "value_type": "info",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.1.0",
        "unit": ""
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 86400,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "RAID Status",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_string",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.17.1.6.1"
      },
      "sort_order": 13,
      "value_type": "status",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.17.1.6.1"
      },
      "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": "Power Status",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_string",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.4.0"
      },
      "sort_order": 14,
      "value_type": "status",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.4.0"
      },
      "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": "Firmware Version",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_oid",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.3.0",
        "unit": ""
      },
      "sort_order": 14,
      "value_type": "info",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.3.0",
        "unit": ""
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 86400,
      "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": 15,
      "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": "QNAP — System-Temperatur (°C)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.6.0",
        "unit": "°C"
      },
      "sort_order": 1000,
      "value_type": "gauge",
      "description": "systemTemperatureEX in Celsius.",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.6.0",
        "unit": "°C"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 70,
      "threshold_warn": 55,
      "interval_seconds": 60,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "QNAP — CPU-Auslastung",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.1.0",
        "unit": "%"
      },
      "sort_order": 1001,
      "value_type": "gauge",
      "description": "systemCPU-Usage in % (cpu-usage-EX).",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.1.0",
        "unit": "%"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 95,
      "threshold_warn": 80,
      "interval_seconds": 60,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "QNAP — Memory frei (MB)",
      "auto_add": false,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.4.0",
        "unit": "MB"
      },
      "sort_order": 1002,
      "value_type": "gauge",
      "description": "systemFreeMem in MB. Achtung: niedriger Wert = wenig RAM frei.",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.4.0",
        "unit": "MB"
      },
      "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": "QNAP — Total RAM (MB)",
      "auto_add": false,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.3.0",
        "unit": "MB"
      },
      "sort_order": 1003,
      "value_type": "gauge",
      "description": "systemTotalMem — Gesamt-RAM in MB (Info-Check).",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.3.0",
        "unit": "MB"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": null,
      "threshold_warn": null,
      "interval_seconds": 86400,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "QNAP — Disk-Status (alle)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_table_state",
      "parameters": {
        "walk_oid": "1.3.6.1.4.1.24681.1.2.11.1.7",
        "ok_values": [
          0
        ],
        "crit_values": [
          -4,
          -5
        ],
        "warn_values": [
          -6,
          -9
        ],
        "state_labels": {
          "0": "ready",
          "-4": "invalid",
          "-5": "rwError",
          "-6": "unknown",
          "-9": "noDisk"
        },
        "label_column_oid": "1.3.6.1.4.1.24681.1.2.11.1.2"
      },
      "sort_order": 1004,
      "value_type": "gauge",
      "description": "hdStatus pro HDD/SSD. 0=ready, -4=invalid, -5=rwError, -6=unknown, -9=noDisk. Wir mappen ready=OK, alle anderen als CRIT.\n",
      "check_config": {
        "walk_oid": "1.3.6.1.4.1.24681.1.2.11.1.7",
        "ok_values": [
          0
        ],
        "crit_values": [
          -4,
          -5
        ],
        "warn_values": [
          -6,
          -9
        ],
        "state_labels": {
          "0": "ready",
          "-4": "invalid",
          "-5": "rwError",
          "-6": "unknown",
          "-9": "noDisk"
        },
        "label_column_oid": "1.3.6.1.4.1.24681.1.2.11.1.2"
      },
      "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": "QNAP — Disk-Temperatur (Disk 1, °C)",
      "auto_add": false,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.11.1.3.1",
        "unit": "°C"
      },
      "sort_order": 1005,
      "value_type": "gauge",
      "description": "hdTemperature für Disk 1. Für mehrere Disks bitte per Discovery oder manuell weitere Checks anlegen (Index 2, 3, ...).\n",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.11.1.3.1",
        "unit": "°C"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 60,
      "threshold_warn": 50,
      "interval_seconds": 60,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "QNAP — Volume-Auslastung (Volume 1, %)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp",
      "parameters": {
        "oid": "1.3.6.1.4.1.24681.1.2.17.1.5.1",
        "unit": "%",
        "invert": true,
        "total_oid": "1.3.6.1.4.1.24681.1.2.17.1.4.1"
      },
      "sort_order": 1006,
      "value_type": "gauge",
      "description": "sysVolumeFreeSize / sysVolumeTotalSize → Auslastung in %. Für weitere Volumes manuell konfigurieren (Index 2, 3, ...).\n",
      "check_config": {
        "oid": "1.3.6.1.4.1.24681.1.2.17.1.5.1",
        "unit": "%",
        "invert": true,
        "total_oid": "1.3.6.1.4.1.24681.1.2.17.1.4.1"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 95,
      "threshold_warn": 85,
      "interval_seconds": 300,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "QNAP — Power-Status (alle PSU)",
      "auto_add": false,
      "check_mode": "passive",
      "check_type": "snmp_table_state",
      "parameters": {
        "walk_oid": "1.3.6.1.4.1.24681.1.2.5.1.5",
        "ok_values": [
          0
        ],
        "crit_values": [
          -1,
          1
        ],
        "state_labels": {
          "0": "ok",
          "1": "fail",
          "-1": "fail"
        }
      },
      "sort_order": 1007,
      "value_type": "gauge",
      "description": "sysPower-Status — wird auf Multi-PSU-Geräten via Tabelle exposed.",
      "check_config": {
        "walk_oid": "1.3.6.1.4.1.24681.1.2.5.1.5",
        "ok_values": [
          0
        ],
        "crit_values": [
          -1,
          1
        ],
        "state_labels": {
          "0": "ok",
          "1": "fail",
          "-1": "fail"
        }
      },
      "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": "hard-drive",
    "name": "QNAP NAS",
    "tags": [
      "qnap",
      "nas",
      "snmp",
      "disk",
      "raid"
    ],
    "vendor": "qnap",
    "category": "nas",
    "os_family": null,
    "description": "QNAP NAS: CPU, Memory, Disks, Lüfter, Temperatur, RAID, Volume. OIDs für QTS 4.x/5.x.",
    "ip_required": true,
    "port_layout": null,
    "visual_type": null,
    "snmp_enabled": true,
    "agent_capable": false,
    "requires_snmp": true,
    "description_md": "QNAP NAS: CPU, Memory, Disks, Lüfter, Temperatur, RAID, Volume. OIDs für QTS 4.x/5.x.",
    "requires_agent": false,
    "sysoid_patterns": null,
    "sysdescr_patterns": null,
    "requires_collector": true
  },
  "scripts": [
    {
      "name": "NAS — SMART disks failed (count)",
      "script_id": "5e98d9f9-313a-5357-8435-faee30c8b319",
      "is_builtin": true,
      "description": "Loops over `smartctl --scan` on a Linux/BSD NAS and counts disks whose SMART health is not PASSED. Used as worst-of-all aggregate.",
      "interpreter": "bash",
      "script_body": "smartctl --scan 2>/dev/null | awk '/\\/dev\\//{print $1}' | head -32 | xargs -r -I{} sh -c 'smartctl -H {} 2>/dev/null | grep -q PASSED || echo F' | grep -c F | head -1",
      "expected_output": "nagios"
    },
    {
      "name": "NAS — Disk temperature max (°C)",
      "script_id": "1572efe5-6a07-56d5-ade9-f8622dcae6df",
      "is_builtin": true,
      "description": "Max temperature reading across all SMART-capable disks via smartctl -A.",
      "interpreter": "bash",
      "script_body": "for d in $(smartctl --scan 2>/dev/null | awk '/\\/dev\\//{print $1}' | head -32); do smartctl -A $d 2>/dev/null | awk '/Temperature_Celsius|Airflow_Temperature_Cel|Current_Drive_Temperature/{print $10+0; exit}'; done | sort -n | tail -1",
      "expected_output": "nagios"
    },
    {
      "name": "NAS — Disk power-on hours max (years)",
      "script_id": "f66b2035-d095-5a20-997a-ba9d3a61f4ec",
      "is_builtin": true,
      "description": "Lifetime indicator: max power-on hours / 8760 across all disks.",
      "interpreter": "bash",
      "script_body": "for d in $(smartctl --scan 2>/dev/null | awk '/\\/dev\\//{print $1}' | head -32); do smartctl -A $d 2>/dev/null | awk '/Power_On_Hours/{print int($10/8760); exit}'; done | sort -n | tail -1",
      "expected_output": "nagios"
    },
    {
      "name": "NAS — Volume usage max (%)",
      "script_id": "42758c46-17dd-5965-a028-7308977cc784",
      "is_builtin": true,
      "description": "Worst-of-all mountpoint usage from df.",
      "interpreter": "bash",
      "script_body": "df -P 2>/dev/null | awk '/^\\/dev/{gsub(/%/,\\\"\\\",$5); print $5+0}' | sort -n | tail -1",
      "expected_output": "nagios"
    },
    {
      "name": "NAS — mdraid degraded arrays",
      "script_id": "61aaaecf-8896-56d1-af0e-300eee437507",
      "is_builtin": true,
      "description": "Count of arrays in /proc/mdstat with at least one underscore in [UUU_] (missing disk).",
      "interpreter": "bash",
      "script_body": "grep -oE '\\[[U_]+\\]' /proc/mdstat 2>/dev/null | grep -c '_' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "System temperature (°C) [6e5f9d]",
      "script_id": "6b70d7f6-2902-52ce-9c56-1c0524f3c9a9",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "getsysinfo systmp 2>/dev/null | awk '{print $1+0}' | head -1 || cat /sys/class/hwmon/hwmon*/temp1_input 2>/dev/null | head -1 | awk '{printf \\\"%d\\\", $1/1000}'",
      "expected_output": "nagios"
    },
    {
      "name": "System fans failed",
      "script_id": "22671314-64f0-53e8-a29b-08632c636e65",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "getsysinfo sysfanstatus 2>/dev/null | grep -c 'fail\\\\|error' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "Linux — Load average per core (%)",
      "script_id": "81fffd25-8464-5bbb-96f1-e2f5d061f393",
      "is_builtin": true,
      "description": "1-min loadavg normalised to %  (load/cores × 100).",
      "interpreter": "bash",
      "script_body": "awk '{print $1}' /proc/loadavg | awk -v c=$(nproc 2>/dev/null||echo 1) '{printf \\\"%d\\\", ($1/c)*100}'",
      "expected_output": "nagios"
    }
  ],
  "schema_version": 1
}