New release 1.2.3 of monitoring plugin check_rancher2 is available

Written by - 0 comments

Published on May 25th 2020 - Listed in Kubernetes Rancher Containers Monitoring


A new version of check_rancher2, a monitoring plugin to monitor Kubernetes clusters managed by Rancher2, is available!

Version 1.2.3 contains a fix which now handles HTTP 403 errors from the Rancher2 API correctly. Prior to that, the plugin simply returned json read errors but exited with status OK:

# ./check_rancher2.sh -H rancher.example.com -S -U token-xxxxx -P secret -t info
json read error: line 1 column 1: '[' or '{' expected near '<'
json read error: line 1 column 1: '[' or '{' expected near '<'
json read error: line 1 column 1: '[' or '{' expected near '<'
json read error: line 1 column 1: '[' or '{' expected near '<'
CHECK_RANCHER2 OK - Found 0 clusters:  and 0 projects: |'clusters'=0;;;; 'projects'=0;;;;

The plugin now correctly identifies and alerts when access to the API is forbidden:

# ./check_rancher2.sh -H rancher.example.com -S -U token-xxxxx -P secret -t info
CHECK_RANCHER2 CRITICAL - Access to API forbidden



Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.