shell> tail -f /var/log/zabbix/zabbix_server.log
18294:20210223:152507.321 Error of query maxQueryMetrics: 'config.vpxd.stats.maxQueryMetrics' is invalid or exceeds the maximum number of characters permitted..

VMware 官方需修改maxQueryMetrics参数,但是我使用vcenter6.7并无该产生,vcenter6.7默认就是最大256,zabbix报无效,那就修改成128

SSH登录到vcenter
shell> cd /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/WEB-INF

修改web.xml
shell> vim web.xml

 </context-param>
   <context-param>
      <description>Specify the maximum query size (number of metrics) for a single report. Non-positive values are ignored.</description>
      <param-name>maxQuerySize</param-name>
      <param-value>128</param-value>
   </context-param>
   <context-param>

重启VMware服务
shell> service-control --stop vmware-perfcharts
shell> service-control --start vmware-perfcharts