{
  "checks": [
    {
      "name": "PHP-FPM pool workers active",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "385e5418-21f8-5849-a102-d2d327a0683d",
        "value_unit": "workers",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 0,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "385e5418-21f8-5849-a102-d2d327a0683d",
        "value_unit": "workers",
        "extract_value": "^(\\d+)"
      },
      "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": "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": "PHP-FPM slow requests total",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "8783a003-638f-536f-9d2a-121aacbfb1b3",
        "value_unit": "slow",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 1,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "8783a003-638f-536f-9d2a-121aacbfb1b3",
        "value_unit": "slow",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 10,
      "threshold_warn": 1,
      "interval_seconds": 300,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "PHP-FPM Service",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "142ad3c5-9e52-5438-bc6f-36c03678a9c3",
        "match_regex": "^active$"
      },
      "sort_order": 1,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "142ad3c5-9e52-5438-bc6f-36c03678a9c3",
        "match_regex": "^active$"
      },
      "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": "HTTP Port",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "port",
      "parameters": {
        "port": 80
      },
      "sort_order": 2,
      "value_type": "status",
      "description": "",
      "check_config": {
        "port": 80
      },
      "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": "PHP-FPM pool listen queue",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "11225614-d6f2-5554-b39d-48bac759375f",
        "value_unit": "queued",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 2,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "11225614-d6f2-5554-b39d-48bac759375f",
        "value_unit": "queued",
        "extract_value": "^(\\d+)"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 50,
      "threshold_warn": 5,
      "interval_seconds": 60,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "PHP-FPM service running",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "dd84d829-f87c-5b41-966f-56f38619043d",
        "value_unit": "up",
        "match_regex": "^0$",
        "extract_value": "^(\\d+)",
        "fail_if_match": true
      },
      "sort_order": 3,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "dd84d829-f87c-5b41-966f-56f38619043d",
        "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 Port",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "port",
      "parameters": {
        "port": 443
      },
      "sort_order": 3,
      "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": "CPU",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_cpu",
      "parameters": {},
      "sort_order": 4,
      "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": 5,
      "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
    }
  ],
  "profile": {
    "icon": "server",
    "name": "PHP-FPM Application Server",
    "tags": [
      "php",
      "php-fpm",
      "web",
      "linux",
      "ssh"
    ],
    "vendor": "generic",
    "category": "server",
    "os_family": "linux",
    "description": "Linux + PHP-FPM: Service, Ports, Status-Seite.",
    "ip_required": true,
    "port_layout": null,
    "visual_type": null,
    "snmp_enabled": false,
    "agent_capable": false,
    "requires_snmp": true,
    "description_md": "Linux + PHP-FPM: Service, Ports, Status-Seite.",
    "requires_agent": false,
    "sysoid_patterns": null,
    "sysdescr_patterns": null,
    "requires_collector": true
  },
  "scripts": [
    {
      "name": "PHP-FPM pool workers active",
      "script_id": "385e5418-21f8-5849-a102-d2d327a0683d",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "curl -sf http://localhost/php-fpm-status 2>/dev/null | awk '/active processes/{print $3; exit}' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "PHP-FPM slow requests total",
      "script_id": "8783a003-638f-536f-9d2a-121aacbfb1b3",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "curl -sf http://localhost/php-fpm-status 2>/dev/null | awk '/slow requests/{print $3; exit}' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "PHP-FPM Service",
      "script_id": "142ad3c5-9e52-5438-bc6f-36c03678a9c3",
      "is_builtin": true,
      "description": "Auto-registered from builtin profile-check 'PHP-FPM Service'.",
      "interpreter": "bash",
      "script_body": "systemctl is-active 'php*-fpm' 2>/dev/null || systemctl is-active php-fpm",
      "expected_output": "nagios"
    },
    {
      "name": "PHP-FPM pool listen queue",
      "script_id": "11225614-d6f2-5554-b39d-48bac759375f",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "curl -sf http://localhost/php-fpm-status 2>/dev/null | awk '/listen queue:/{print $3; exit}' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "PHP-FPM service running",
      "script_id": "dd84d829-f87c-5b41-966f-56f38619043d",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "systemctl list-units --type=service --state=active 2>/dev/null | grep -c 'php.*fpm' || echo 0",
      "expected_output": "nagios"
    }
  ],
  "schema_version": 1
}