A new version of check_rancher2, an open source monitoring plugin to monitor Kubernetes environments managed by Rancher 2, is available!
Release 1.3.0 features an additional parameter -i which can be used to define a list of statuses which should be ignored.
A typical use case is when some nodes are in maintenance mode and were set to cordoned or drained status. The plugin's node check would have alerted with a CRITICAL alert:
$ ./check_rancher2.sh -H rancher.example.com -U token-xxxxx -P "secret" -S -t node
CHECK_RANCHER2 CRITICAL - node15 in cluster c-dgtzh is drained - node22 in cluster c-gbzhu is drained -|'nodes_total'=34;;;; 'node_errors'=2;;;;
By using the ignore list, the plugin can be told that nodes in either cordoned or drained status should be ignored. The plugin will in this case return OK but will add an additional information about ignored nodes in the output:
$ ./check_rancher2.sh -H rancher.example.com -U token-xxxxx -P "secret" -S -t node -i "cordoned,drained"
CHECK_RANCHER2 OK - All nodes OK - Info: node15 in cluster c-dgtzh is drained but ignored - node22 in cluster c-gbzhu is drained but ignored -|'nodes_total'=34;;;; 'node_errors'=0;;;; 'node_ignored'=2;;;;
The check_rancher2 documentation was adjusted accordingly.
No comments yet.
AWS Android Ansible Apache Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Coding Consul Container Containers CouchDB DB DNS Database Databases Docker ELK Elasticsearch Filebeat FreeBSD Galera GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Icingaweb Icingaweb2 InfluxDB Internet Java KVM Kibana Kodi Kubernetes LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS Office PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Python Rancher Rant Redis Roundcube SSL Samba Seafile Security Shell SmartOS Solaris Surveillance SystemD Systemd TLS Tomcat Ubuntu Unix VMWare VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder