Monitoring plugin check_rancher2 1.7.1 released: Fix in cluster status check

Written by - 0 comments

Published on - Listed in Docker Kubernetes Rancher Internet Network Cloud Monitoring


A new version of check_rancher2, a monitoring plugin to monitor Kubernetes environments managed by Rancher 2.x, is available!

The newest version is 1.7.1 and fixes the cluster status check (-t cluster). Prior to 1.7.1, the check_rancher2 plugin would only look for the different component statuses of a cluster. However if the whole cluster is in an error state, the component statuses cannot be retrieved from the cluster.

This resulted in a false indication, that all clusters are OK even though when at least one cluster is in an error state:

$ ./check_rancher2.sh -H rancher.example.com -U token-xxxxx -P secret -t cluster
CHECK_RANCHER2 OK - All clusters (20) are healthy|'clusters_total'=20;;;; 'clusters_errors'=0;;;;

Now with the fix in 1.7.1 at hand, the cluster's state is parsed correctly and immediately alerts:

$ ./check_rancher2.sh -H rancher.example.com -U token-xxxxx -P secret -t cluster
CHECK_RANCHER2 CRITICAL - cluster cluster-33 is in error state -|'clusters_total'=20;;;; 'clusters_errors'=1;;;;

As this bugfix is considered important, everyone should update to the newest version of check_rancher2. 

More details can be found in issue #26 on GitHub. Thanks a lot to user txj-xyz for reporting the issue.


Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.

RSS feed

Blog Tags:

  AWS   Android   Ansible   Apache   Apple   Atlassian   BSD   Backup   Bash   Bluecoat   CMS   Chef   Cloud   Coding   Consul   Containers   CouchDB   DB   DNS   Database   Databases   Docker   ELK   Elasticsearch   Filebeat   FreeBSD   Galera   Git   GlusterFS   Grafana   Graphics   HAProxy   HTML   Hacks   Hardware   Icinga   Influx   Internet   Java   KVM   Kibana   Kodi   Kubernetes   LVM   LXC   Linux   Logstash   Mac   Macintosh   Mail   MariaDB   Minio   MongoDB   Monitoring   Multimedia   MySQL   NFS   Nagios   Network   Nginx   OSSEC   OTRS   Office   OpenSearch   PGSQL   PHP   Perl   Personal   PostgreSQL   Postgres   PowerDNS   Proxmox   Proxy   Python   Rancher   Rant   Redis   Roundcube   SSL   Samba   Seafile   Security   Shell   SmartOS   Solaris   Surveillance   Systemd   TLS   Tomcat   Ubuntu   Unix   VMWare   VMware   Varnish   Virtualization   Windows   Wireless   Wordpress   Wyse   ZFS   Zoneminder