{
  "checks": [
    {
      "name": "3CX core service running",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "194195bd-3151-5501-b3ff-fa6f4a40d05e",
        "value_unit": "up",
        "match_regex": "^0$",
        "extract_value": "^(\\d+)",
        "fail_if_match": true
      },
      "sort_order": 0,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "194195bd-3151-5501-b3ff-fa6f4a40d05e",
        "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
    },
    {
      "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": "3CX Service",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "29997c6d-a848-513f-8014-79e3b8c42ad2",
        "match_regex": "^active$"
      },
      "sort_order": 1,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "29997c6d-a848-513f-8014-79e3b8c42ad2",
        "match_regex": "^active$"
      },
      "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": "Database service (Postgres)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "07bad161-9b2e-561a-9393-b020866a31fa",
        "value_unit": "up",
        "match_regex": "^0$",
        "extract_value": "^(\\d+)",
        "fail_if_match": true
      },
      "sort_order": 1,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "07bad161-9b2e-561a-9393-b020866a31fa",
        "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
    },
    {
      "name": "HTTPS WebUI",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "port",
      "parameters": {
        "port": 5001
      },
      "sort_order": 2,
      "value_type": "status",
      "description": "",
      "check_config": {
        "port": 5001
      },
      "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": "Disk usage / (%)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "9286e7b8-cc35-5d18-8d00-024da4a72b86",
        "value_unit": "%",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 2,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "9286e7b8-cc35-5d18-8d00-024da4a72b86",
        "value_unit": "%",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 92,
      "threshold_warn": 80,
      "interval_seconds": 300,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "SIP TLS",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "port",
      "parameters": {
        "port": 5061
      },
      "sort_order": 3,
      "value_type": "status",
      "description": "",
      "check_config": {
        "port": 5061
      },
      "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": "WireGuard Interface",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "a28916cc-9111-5848-a6a4-64a356b7f1ef",
        "match_regex": "^1$"
      },
      "sort_order": 4,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "a28916cc-9111-5848-a6a4-64a356b7f1ef",
        "match_regex": "^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",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_cpu",
      "parameters": {},
      "sort_order": 5,
      "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": "Memory",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_mem",
      "parameters": {},
      "sort_order": 6,
      "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": "Disk",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_disk",
      "parameters": {
        "mount": "/"
      },
      "sort_order": 7,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "mount": "/"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 90,
      "threshold_warn": 80,
      "interval_seconds": 300,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    }
  ],
  "profile": {
    "icon": "server",
    "name": "3CX Phone System (Linux)",
    "tags": [
      "3cx",
      "linux",
      "pbx",
      "voip",
      "ssh"
    ],
    "vendor": "3cx",
    "category": "phone",
    "os_family": "linux",
    "description": "3CX PBX auf Linux (Debian): Dienste, Ports, WireGuard.",
    "ip_required": true,
    "port_layout": null,
    "visual_type": null,
    "snmp_enabled": false,
    "agent_capable": false,
    "requires_snmp": false,
    "description_md": "3CX PBX auf Linux (Debian): Dienste, Ports, WireGuard.",
    "requires_agent": false,
    "sysoid_patterns": null,
    "sysdescr_patterns": null,
    "requires_collector": true
  },
  "scripts": [
    {
      "name": "3CX core service running",
      "script_id": "194195bd-3151-5501-b3ff-fa6f4a40d05e",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "systemctl is-active 3CXPhoneSystem 2>/dev/null | grep -c '^active$' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "3CX Service",
      "script_id": "29997c6d-a848-513f-8014-79e3b8c42ad2",
      "is_builtin": true,
      "description": "Auto-registered from builtin profile-check '3CX Service'.",
      "interpreter": "bash",
      "script_body": "systemctl is-active 3CXPhoneSystem || systemctl is-active 3cxpbx",
      "expected_output": "nagios"
    },
    {
      "name": "Database service (Postgres)",
      "script_id": "07bad161-9b2e-561a-9393-b020866a31fa",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "systemctl is-active postgresql 2>/dev/null | grep -c '^active$' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "Disk usage / (%) [71f961]",
      "script_id": "9286e7b8-cc35-5d18-8d00-024da4a72b86",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "df -P / | tail -1 | awk '{gsub(/%/,\\\"\\\",$5); print $5+0}'",
      "expected_output": "nagios"
    },
    {
      "name": "WireGuard Interface",
      "script_id": "a28916cc-9111-5848-a6a4-64a356b7f1ef",
      "is_builtin": true,
      "description": "Auto-registered from builtin profile-check 'WireGuard Interface'.",
      "interpreter": "bash",
      "script_body": "ip link show wg0 2>/dev/null | grep -c 'state UP'",
      "expected_output": "nagios"
    }
  ],
  "schema_version": 1
}