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

Zabbix在监控Kubernetes时遇到401错误,导致Node无法自动发现。解决方法是在宏变量中添加端口号(如443),即使使用HTTPS。参考链接:[Zabbix论坛](https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/459446-aks-monitoring-problem)

7万+

被折叠的 条评论
为什么被折叠?



