Zabbix监控Kubernets获取节点模板报错

Preprocessing failed for: {“error”:"Request failed with status code 401: {“kind”:“Status”,“apiVersion”:“v1”,"met ad …1. Failed: Discovery error: TypeError: cannot read property 1 of null.

Zabbix 监控 Kubernetes 出现采集错误,导致一直不能自动发现Node,移动到红色感叹号会出现如下错误:
....cannot read property 1 of null.

在这里插入图片描述

通过Zabbix自带的 Test item 就可以确认这个问题。如图所示:
在这里插入图片描述

原因:
在这里插入图片描述

解决方式:
在 宏变量中携带端口号即可,即使已经标明 https,也需要带 443 端口

在这里插入图片描述

Reference

https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/459446-aks-monitoring-problem

猜你喜欢

转载自blog.csdn.net/qq_25854057/article/details/132295718