运维开发网

zabbix报错:Error of query maxQueryMetrics

运维开发网 https://www.qedev.com 2021-02-24 12:11 出处:51CTO 作者:TangYGao
shell>tail-f/var/log/zabbix/zabbix_server.log18294:20210223:152507.321ErrorofquerymaxQueryMetrics:'config.vpxd.stats.maxQueryMetrics'isinvalidorexceedsthemaximumnumberofcharacterspermitted.

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

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号