PFSense - VPN IPSEC
Dashboard for monitoring VPN ipsec tunnels in PFSENSE. 
Dashboard for monitoring VPN ipsec tunnels in PFSENSE. This dashboard use zabbix and zabbix database(mysql) as data source. You can the docs here:  https://github.com/alanwds/zabbix_ipsec_pfsense
{
  "__inputs": [
    {
      "name": "DS_MYSQL_ZABBIX",
      "label": "mysql_zabbix",
      "description": "You must have a mysql datasource with access to zabbix DB",
      "type": "datasource",
      "pluginId": "mysql",
      "pluginName": "MySQL"
    },
    {
      "name": "DS_ZABBIX_PRD_API",
      "label": "zabbix_prd_api",
      "description": "Zabbix integration (plugin by Alexander Zobnin)",
      "type": "datasource",
      "pluginId": "alexanderzobnin-zabbix-datasource",
      "pluginName": "Zabbix"
    }
  ],
  "__requires": [
    {
      "type": "datasource",
      "id": "alexanderzobnin-zabbix-datasource",
      "name": "Zabbix",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "alexanderzobnin-zabbix-triggers-panel",
      "name": "Zabbix Triggers",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "5.1.4"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": "5.0.0"
    },
    {
      "type": "datasource",
      "id": "mysql",
      "name": "MySQL",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": "5.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 8008,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "${DS_MYSQL_ZABBIX}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 7,
        "x": 0,
        "y": 0
      },
      "id": 5,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "count(name)",
      "targets": [
        {
          "alias": "",
          "application": {
            "filter": "IPSec"
          },
          "format": "table",
          "functions": [
            {
              "added": false,
              "def": {
                "category": "Aggregate",
                "defaultParams": [
                  "1m"
                ],
                "name": "sum",
                "params": [
                  {
                    "name": "interval",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "2m"
              ],
              "text": "sum(2m)"
            },
            {
              "added": false,
              "def": {
                "category": "Transform",
                "defaultParams": [
                  "1m",
                  "avg"
                ],
                "name": "groupBy",
                "params": [
                  {
                    "name": "interval",
                    "type": "string"
                  },
                  {
                    "name": "function",
                    "options": [
                      "avg",
                      "min",
                      "max",
                      "sum",
                      "count",
                      "median"
                    ],
                    "type": "string"
                  }
                ]
              },
              "params": [
                "2m",
                "median"
              ],
              "text": "groupBy(2m, median)"
            }
          ],
          "group": {
            "filter": "/.*/"
          },
          "host": {
            "filter": "pfsenseAZc-Slave"
          },
          "item": {
            "filter": "/.*Tunnel.*/"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "rawSql": "select count(name) from items WHERE key_ like '%ipsec.tunnel%con%';\n",
          "refId": "A",
          "slaProperty": {
            "name": "SLA",
            "property": "sla"
          },
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 4
          }
        }
      ],
      "thresholds": "",
      "title": "Number of monitored tunnels",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "avg"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "${DS_ZABBIX_PRD_API}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 7,
        "x": 7,
        "y": 0
      },
      "id": 11,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "Host group",
      "targets": [
        {
          "application": {
            "filter": "IPSec"
          },
          "functions": [],
          "group": {
            "filter": "/.*/"
          },
          "host": {
            "filter": "pfsenseAZc-Slave"
          },
          "item": {
            "filter": ""
          },
          "mode": 4,
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 4
          }
        }
      ],
      "thresholds": "",
      "timeFrom": "24h",
      "timeShift": null,
      "title": "Number of VPN issues",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "total"
    },
    {
      "ackEventColor": "rgb(56, 219, 156)",
      "customLastChangeFormat": false,
      "datasources": [
        "zabbix_prd_api"
      ],
      "descriptionAtNewLine": false,
      "descriptionField": true,
      "fontSize": "100%",
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 3
      },
      "highlightBackground": false,
      "highlightNewEvents": true,
      "highlightNewerThan": "1h",
      "hostField": true,
      "hostGroups": false,
      "hostTechNameField": false,
      "hostsInMaintenance": true,
      "id": 7,
      "lastChangeFormat": "",
      "limit": 100,
      "links": [],
      "okEventColor": "rgb(56, 189, 113)",
      "pageSize": 10,
      "schemaVersion": 4,
      "severityField": true,
      "showEvents": {
        "text": "Problems",
        "value": "1"
      },
      "showTags": true,
      "showTriggers": "all triggers",
      "sortTriggersBy": {
        "text": "last change",
        "value": "lastchange"
      },
      "statusField": true,
      "targets": {
        "zabbix_prd": {
          "application": {
            "filter": ""
          },
          "group": {
            "filter": ""
          },
          "host": {
            "filter": ""
          },
          "tags": {
            "filter": ""
          },
          "trigger": {
            "filter": ""
          }
        },
        "zabbix_prd_api": {
          "application": {
            "filter": "IPSec"
          },
          "group": {
            "filter": "/.*/"
          },
          "host": {
            "filter": "/.*pfsense.*/"
          },
          "tags": {
            "filter": ""
          },
          "trigger": {
            "filter": ""
          }
        }
      },
      "title": "Current VPN issues",
      "triggerSeverity": [
        {
          "color": "rgb(108, 108, 108)",
          "priority": 0,
          "severity": "Not classified",
          "show": true
        },
        {
          "color": "rgb(120, 158, 183)",
          "priority": 1,
          "severity": "Information",
          "show": true
        },
        {
          "color": "rgb(175, 180, 36)",
          "priority": 2,
          "severity": "Warning",
          "show": true
        },
        {
          "color": "rgb(255, 137, 30)",
          "priority": 3,
          "severity": "Average",
          "show": true
        },
        {
          "color": "rgb(255, 101, 72)",
          "priority": 4,
          "severity": "High",
          "show": true
        },
        {
          "color": "rgb(215, 0, 0)",
          "priority": 5,
          "severity": "Disaster",
          "show": true
        }
      ],
      "type": "alexanderzobnin-zabbix-triggers-panel"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ZABBIX_PRD_API}",
      "fill": 1,
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 13
      },
      "id": 2,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "sort": "total",
        "sortDesc": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "application": {
            "filter": "IPSec"
          },
          "functions": [],
          "group": {
            "filter": "/.*/"
          },
          "host": {
            "filter": "pfsenseAZc-Slave"
          },
          "item": {
            "filter": "/.*PKTS.*/"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Packets",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ZABBIX_PRD_API}",
      "fill": 1,
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 23
      },
      "id": 3,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "sort": "total",
        "sortDesc": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "application": {
            "filter": "IPSec"
          },
          "functions": [],
          "group": {
            "filter": "/.*/"
          },
          "host": {
            "filter": "pfsenseAZc-Slave"
          },
          "item": {
            "filter": "/.*Bytes.*/"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Traffic (bytes)",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "Bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 16,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now/d",
    "to": "now/d"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "PFSense - VPN IPSEC",
  "uid": "w9AFoYoik",
  "version": 5,
  "description": "Dashboard for monitoring VPN ipsec tunnels in PFSENSE. "
}