Zabbix - vCenter - Monitoring
Monitor your VMware vCenter infrastructure using Zabbix and Grafana
All the VMware metrics are collected by Zabbix Server and Zabbix APP plugins must be installed and defined as a data source to fetch information from Zabbix Server. 

All the information you need to know about this Scenario is available on: [http://mjmohebbi.com/en/blog/How-to-monitor-your-VMware-vSphere-infrastructure-using-Zabbix-&-Grafana](http://mjmohebbi.com/en/blog/How-to-monitor-your-VMware-vSphere-infrastructure-using-Zabbix-&-Grafana)
{
  "__inputs": [
    {
      "name": "DS_ZABBIX",
      "label": "Zabbix",
      "description": "Zabbix App Plugin ",
      "type": "datasource",
      "pluginId": "alexanderzobnin-zabbix-datasource",
      "pluginName": "Zabbix"
    }
  ],
  "__requires": [
    {
      "type": "datasource",
      "id": "alexanderzobnin-zabbix-datasource",
      "name": "Zabbix",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.2.5"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 10797,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1567238768756,
  "links": [
    {
      "icon": "external link",
      "tags": [],
      "targetBlank": true,
      "title": "# Grafana",
      "tooltip": "",
      "type": "link",
      "url": "http://mjmohebbi.com/en/hashtag/grafana"
    }
  ],
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 54,
      "panels": [],
      "title": "Hypervisors Overview",
      "type": "row"
    },
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorPostfix": false,
      "colorPrefix": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "${DS_ZABBIX}",
      "decimals": 0,
      "format": "short",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 2,
        "w": 3.4285714285714284,
        "x": 0,
        "y": 1
      },
      "id": 4,
      "interval": null,
      "links": [
        {
          "dashboard": "Zabbix - Hypervisor - Overview",
          "includeVars": true,
          "targetBlank": false,
          "title": "Zabbix - Hypervisor - Overview ($ESXHost)",
          "type": "dashboard",
          "url": "/d/hRGX6vHWz/zabbix-hypervisor-overview"
        }
      ],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": "",
      "maxPerRow": 12,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "repeat": "ESXHost",
      "repeatDirection": "h",
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "application": {
            "filter": "General"
          },
          "functions": [],
          "group": {
            "filter": "Hypervisors"
          },
          "host": {
            "filter": "$ESXHost"
          },
          "item": {
            "filter": "Overall status"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false,
            "skipEmptyValues": false
          },
          "refId": "A",
          "resultFormat": "time_series",
          "table": {
            "skipEmptyValues": false
          },
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": "2,3",
      "timeFrom": null,
      "timeShift": null,
      "title": "$ESXHost - Overal Status",
      "type": "singlestat",
      "valueFontSize": "50%",
      "valueMaps": [
        {
          "op": "=",
          "text": "Gray",
          "value": "0"
        },
        {
          "op": "=",
          "text": "Green",
          "value": "1"
        },
        {
          "op": "=",
          "text": "Yellow",
          "value": "2"
        },
        {
          "op": "=",
          "text": "Red",
          "value": "3"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "${DS_ZABBIX}",
      "decimals": null,
      "format": "s",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 2,
        "w": 3.4285714285714284,
        "x": 0,
        "y": 3
      },
      "id": 115,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "maxPerRow": 12,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "repeat": "ESXHost",
      "repeatDirection": "h",
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "application": {
            "filter": "General"
          },
          "functions": [],
          "group": {
            "filter": "Hypervisors"
          },
          "host": {
            "filter": "$ESXHost"
          },
          "item": {
            "filter": "Uptime"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false,
            "skipEmptyValues": false
          },
          "refId": "A",
          "resultFormat": "time_series",
          "table": {
            "skipEmptyValues": false
          },
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "$ESXHost - Uptime",
      "type": "singlestat",
      "valueFontSize": "50%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 5
      },
      "id": 33,
      "panels": [],
      "title": "Datastore Overview",
      "type": "row"
    },
    {
      "datasource": "${DS_ZABBIX}",
      "gridPos": {
        "h": 6,
        "w": 24,
        "x": 0,
        "y": 6
      },
      "id": 2,
      "links": [],
      "options": {
        "displayMode": "basic",
        "fieldOptions": {
          "calcs": [
            "last"
          ],
          "defaults": {
            "decimals": 2,
            "max": 100,
            "min": 0,
            "title": "$__field_name",
            "unit": "percent"
          },
          "mappings": [],
          "override": {},
          "thresholds": [
            {
              "color": "dark-red",
              "index": 0,
              "value": null
            },
            {
              "color": "#EF843C",
              "index": 1,
              "value": 10
            },
            {
              "color": "#EAB839",
              "index": 2,
              "value": 40
            },
            {
              "color": "#6ED0E0",
              "index": 3,
              "value": 60
            },
            {
              "color": "dark-green",
              "index": 4,
              "value": 80
            }
          ],
          "values": false
        },
        "orientation": "vertical"
      },
      "targets": [
        {
          "application": {
            "filter": "Datastore"
          },
          "functions": [
            {
              "def": {
                "category": "Alias",
                "defaultParams": [
                  "/(.*)/",
                  "$1"
                ],
                "name": "replaceAlias",
                "params": [
                  {
                    "name": "regexp",
                    "type": "string"
                  },
                  {
                    "name": "newAlias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "/.*Free space on datastore (.*) \\(percentage\\)/",
                "$1"
              ],
              "text": "replaceAlias(/.*Free space on datastore (.*) \\(percentage\\)/, $1)"
            }
          ],
          "group": {
            "filter": "VMware vCenter Servers"
          },
          "host": {
            "filter": "vCenter Server"
          },
          "item": {
            "filter": "/Free.*/"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false,
            "skipEmptyValues": false
          },
          "refId": "A",
          "resultFormat": "time_series",
          "table": {
            "skipEmptyValues": false
          },
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Available Free Space on Datastores",
      "type": "bargauge"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "${DS_ZABBIX}",
      "format": "decbytes",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 0,
        "y": 12
      },
      "id": 12,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "maxPerRow": 6,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "repeat": "DS_TotalSize",
      "repeatDirection": "h",
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "application": {
            "filter": "Datastore"
          },
          "functions": [
            {
              "def": {
                "category": "Alias",
                "defaultParams": [
                  "/(.*)/",
                  "$1"
                ],
                "name": "replaceAlias",
                "params": [
                  {
                    "name": "regexp",
                    "type": "string"
                  },
                  {
                    "name": "newAlias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "/.*Total size of datastore (.*)/",
                "$1"
              ],
              "text": "replaceAlias(/.*Total size of datastore (.*)/, $1)"
            }
          ],
          "group": {
            "filter": "VMware vCenter Servers"
          },
          "host": {
            "filter": "vCenter Server"
          },
          "item": {
            "filter": "$DS_TotalSize"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false,
            "skipEmptyValues": false
          },
          "refId": "A",
          "resultFormat": "time_series",
          "table": {
            "skipEmptyValues": false
          },
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "$DS_TotalSize",
      "type": "singlestat",
      "valueFontSize": "50%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 15
      },
      "id": 207,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ZABBIX}",
          "fill": 1,
          "gridPos": {
            "h": 6,
            "w": 12,
            "x": 0,
            "y": 3
          },
          "id": 179,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "connected",
          "options": {},
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "scopedVars": {
            "ESXHost": {
              "selected": false,
              "text": "172.16.50.130",
              "value": "172.16.50.130"
            }
          },
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "application": {
                "filter": "CPU"
              },
              "functions": [],
              "group": {
                "filter": "Hypervisors"
              },
              "host": {
                "filter": "$ESXHost"
              },
              "item": {
                "filter": "CPU usage"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false,
                "skipEmptyValues": false
              },
              "refId": "A",
              "resultFormat": "time_series",
              "table": {
                "skipEmptyValues": false
              },
              "triggers": {
                "acknowledged": 2,
                "count": true,
                "minSeverity": 3
              }
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "CPU Usage",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "hertz",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ZABBIX}",
          "fill": 1,
          "gridPos": {
            "h": 6,
            "w": 12,
            "x": 12,
            "y": 3
          },
          "id": 180,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "connected",
          "options": {},
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "scopedVars": {
            "ESXHost": {
              "selected": false,
              "text": "172.16.50.130",
              "value": "172.16.50.130"
            }
          },
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "application": {
                "filter": "Memory"
              },
              "functions": [],
              "group": {
                "filter": "Hypervisors"
              },
              "host": {
                "filter": "$ESXHost"
              },
              "item": {
                "filter": "Used memory"
              },
              "mode": 0,
              "options": {
                "showDisabledItems": false,
                "skipEmptyValues": false
              },
              "refId": "A",
              "resultFormat": "time_series",
              "table": {
                "skipEmptyValues": false
              },
              "triggers": {
                "acknowledged": 2,
                "count": true,
                "minSeverity": 3
              }
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "RAM Usage",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "decbytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "repeat": "ESXHost",
      "title": "$ESXHost - Usage Overview",
      "type": "row"
    }
  ],
  "refresh": "10s",
  "schemaVersion": 18,
  "style": "dark",
  "tags": [
    "vcenter",
    "zabbix",
    "vsphere"
  ],
  "templating": {
    "list": [
      {
        "allValue": "",
        "current": {},
        "datasource": "${DS_ZABBIX}",
        "definition": "{Hypervisors}{*}",
        "hide": 2,
        "includeAll": true,
        "label": null,
        "multi": false,
        "name": "ESXHost",
        "options": [],
        "query": "{Hypervisors}{*}",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 5,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "",
        "current": {},
        "datasource": "${DS_ZABBIX}",
        "definition": "{Hypervisors}{*}{Datastore}{*}",
        "hide": 2,
        "includeAll": true,
        "label": null,
        "multi": false,
        "name": "DS_TotalSize",
        "options": [],
        "query": "{Hypervisors}{*}{Datastore}{*}",
        "refresh": 1,
        "regex": "/.*Total*/",
        "skipUrlSync": false,
        "sort": 5,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "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": "Zabbix - vCenter - Monitoring",
  "uid": "Wmu_vjSZk",
  "version": 84,
  "description": "Monitor your VMware vCenter infrastructure using Zabbix and Grafana"
}