{
  "checks": [
    {
      "name": "Routing engine CPU usage (%)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "a53eec8b-36c4-598d-9df4-dce48ec65e45",
        "value_unit": "%",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 0,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "a53eec8b-36c4-598d-9df4-dce48ec65e45",
        "value_unit": "%",
        "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": "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": "BGP peers down",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "4c2b54e8-3229-5f41-b1f4-77dcb646f1e0",
        "value_unit": "peers",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 1,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "4c2b54e8-3229-5f41-b1f4-77dcb646f1e0",
        "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": "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": "Chassis alarms (yellow+red)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "13b0c3ad-ea5d-57e7-9300-232597aea8db",
        "value_unit": "alarms",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 2,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "13b0c3ad-ea5d-57e7-9300-232597aea8db",
        "value_unit": "alarms",
        "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": "NETCONF Port",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "port",
      "parameters": {
        "port": 830
      },
      "sort_order": 3,
      "value_type": "status",
      "description": "",
      "check_config": {
        "port": 830
      },
      "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": "OSPF neighbors not Full",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "03dc436e-4c0c-5cd1-9999-a90dd5b15869",
        "value_unit": "neigh",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 3,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "script_id": "03dc436e-4c0c-5cd1-9999-a90dd5b15869",
        "value_unit": "neigh",
        "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": "Interface errors (input+output total since reset)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "ssh_script",
      "parameters": {
        "script_id": "8511dd77-7ed0-5595-a06f-9298fcba016d",
        "value_unit": "errors",
        "extract_value": "^(\\d+)"
      },
      "sort_order": 4,
      "value_type": "counter",
      "description": "",
      "check_config": {
        "script_id": "8511dd77-7ed0-5595-a06f-9298fcba016d",
        "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": "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": 4,
      "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": "Routing Engine CPU",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_oid",
      "parameters": {
        "oid": "1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0",
        "unit": "percent"
      },
      "sort_order": 5,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0",
        "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": "Routing Engine Memory",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_oid",
      "parameters": {
        "oid": "1.3.6.1.4.1.2636.3.1.13.1.11.9.1.0.0",
        "unit": "percent"
      },
      "sort_order": 6,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.2636.3.1.13.1.11.9.1.0.0",
        "unit": "percent"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 90,
      "threshold_warn": 80,
      "interval_seconds": 60,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    },
    {
      "name": "Chassis Temperature (RE)",
      "auto_add": true,
      "check_mode": "passive",
      "check_type": "snmp_oid",
      "parameters": {
        "oid": "1.3.6.1.4.1.2636.3.1.13.1.7.9.1.0.0",
        "unit": "celsius"
      },
      "sort_order": 7,
      "value_type": "gauge",
      "description": "",
      "check_config": {
        "oid": "1.3.6.1.4.1.2636.3.1.13.1.7.9.1.0.0",
        "unit": "celsius"
      },
      "is_telemetry": false,
      "interpretation": null,
      "threshold_crit": 70,
      "threshold_warn": 55,
      "interval_seconds": 60,
      "threshold_direction": "upper",
      "confirmation_attempts": 1,
      "confirmation_interval_seconds": 10
    }
  ],
  "profile": {
    "icon": "network",
    "name": "Juniper Network Device",
    "tags": [],
    "vendor": "juniper",
    "category": "switch",
    "os_family": null,
    "description": "",
    "ip_required": true,
    "port_layout": null,
    "visual_type": null,
    "snmp_enabled": true,
    "agent_capable": false,
    "requires_snmp": true,
    "requires_agent": false,
    "sysoid_patterns": null,
    "sysdescr_patterns": null,
    "requires_collector": true
  },
  "scripts": [
    {
      "name": "Routing engine CPU usage (%)",
      "script_id": "a53eec8b-36c4-598d-9df4-dce48ec65e45",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "cli -c 'show chassis routing-engine' 2>/dev/null | awk '/User\\\\s+[0-9]+/{print $2+0; exit}' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "BGP peers down",
      "script_id": "4c2b54e8-3229-5f41-b1f4-77dcb646f1e0",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "cli -c 'show bgp summary' 2>/dev/null | awk 'NR>5 && $0 ~ /[0-9]/{ if($NF !~ /Establ/) c++} END{print c+0}' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "Chassis alarms (yellow+red)",
      "script_id": "13b0c3ad-ea5d-57e7-9300-232597aea8db",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "cli -c 'show chassis alarms' 2>/dev/null | grep -cE 'Major|Minor|Alarm' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "OSPF neighbors not Full",
      "script_id": "03dc436e-4c0c-5cd1-9999-a90dd5b15869",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "cli -c 'show ospf neighbor' 2>/dev/null | awk 'NR>2 && $0 ~ /[0-9]/{ if($4 != \\\"Full\\\") c++} END{print c+0}' || echo 0",
      "expected_output": "nagios"
    },
    {
      "name": "Interface errors (input+output total since reset)",
      "script_id": "8511dd77-7ed0-5595-a06f-9298fcba016d",
      "is_builtin": true,
      "description": "Auto-registered builtin SSH script.",
      "interpreter": "bash",
      "script_body": "cli -c 'show interfaces extensive' 2>/dev/null | awk '/Input errors|Output errors/{s+=$3} END{print s+0}' || echo 0",
      "expected_output": "nagios"
    }
  ],
  "schema_version": 1
}