I have created a custom local script to check kubernetes pods. However, i am now baffled as to why when i turn off a pod the local output displays correctly when i run the script locally or run the check_mk_agent command the correct warning is displayed. Here is an example:
2 cl5-jenkins-pods varname=2;crit Warning, pods are inconsistent on namespace cl5-jenkins
However, when i run this from the telnet output im getting that everything is ok still…
0 cl5-jenkins-pods varname=0;ok There are no missing pods on namespace cl5-jenkins
could anyone explain as to why this is happening? I thought maybe it was some permission issue but i dont think thats the reason!