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

Directory Tree

check_kube

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
Apache
Hits
11435
Files:
FileDescription
check_kube.shcheck_kube.sh
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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