Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_kube

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
Apache
Hits
2745
Files:
FileDescription
check_kube.shcheck_kube.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This plugin attempts to provide general monitoring for Kubernetes deployments, daemonsets, replicationcontrollers, nodes, as well as Kubernetes components such as etcd, scheduler, and controller
This plugin attempts to provide general monitoring for Kubernetes deployments, daemonsets, replicationcontrollers, nodes, as well as Kubernetes components such as etcd, scheduler, and controller

Some examples:
Kubelet check on node1 - ./check_kube.sh -t node -c Ready -n default -o node1
Deployment check for deployment1 - ./check_kube.sh -t deployment -c Available -n default -o deployment1
Daemonset check for flannel - ./check_kube.sh -t daemonset -n kube-system -c status -o kube-flannel-ds-amd64
Component check for etcd-0 - ./check_kube.sh -t componentstatuses -n default -c status -o etcd-0

kubectl and jq are required for this plugin to work

IMPORTANT - the variable KUBECONFIG must be set correctly. For some reason kubectl doesn't find the .kube/config file when executed under Nagios

While this plugin will work with the default admin config, it is highly recommended to create a read only user for Nagios