https://github.com/telekom-mms/check_kubernetes
Nagios/Icinga Checks for Kubernetes Nodes and Pods
https://github.com/telekom-mms/check_kubernetes
Last synced: about 2 months ago
JSON representation
Nagios/Icinga Checks for Kubernetes Nodes and Pods
- Host: GitHub
- URL: https://github.com/telekom-mms/check_kubernetes
- Owner: telekom-mms
- License: apache-2.0
- Created: 2018-07-17T10:02:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T20:21:25.000Z (over 1 year ago)
- Last Synced: 2025-04-13T04:11:45.741Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 13
- Watchers: 6
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Nagios/Icinga Checks for Kubernetes
[](https://travis-ci.org/T-Systems-MMS/check_kubernetes)
You will need a kubeconfig file for both checks.
## Python Compatibility
Python 2.7.x or Python >= 3.4
## check_nodes.py
Checks the State of your nodes via the Kubernetes API. One node with Problems is a warning, two nodes are critical. Perfdata are supplied.
### Usage
```
usage: check_nodes.py [-h] [--kube-config KUBE_CONFIG]optional arguments:
-h, --help show this help message and exit
--kube-config KUBE_CONFIG
Kubernetes Config File
```## check_pods.py
Checks the State of all pods in the Kubernetes Cluster.
### Usage
```
usage: check_pods.py [-h] [--kube-config KUBE_CONFIG]
[--warning-pending WARNING_PENDING]
[--critical-pending CRITICAL_PENDING]
[--warning-running WARNING_RUNNING]
[--critical-running CRITICAL_RUNNING]
[--warning-succeeded WARNING_SUCCEEDED]
[--critical-succeeded CRITICAL_SUCCEEDED]
[--warning-failed WARNING_FAILED]
[--critical-failed CRITICAL_FAILED]
[--warning-unknown WARNING_UNKNOWN]
[--critical-unknown CRITICAL_UNKNOWN]optional arguments:
-h, --help show this help message and exit
--kube-config KUBE_CONFIG
Kubernetes Config File
--warning-pending WARNING_PENDING
--critical-pending CRITICAL_PENDING
--warning-running WARNING_RUNNING
--critical-running CRITICAL_RUNNING
--warning-succeeded WARNING_SUCCEEDED
--critical-succeeded CRITICAL_SUCCEEDED
--warning-failed WARNING_FAILED
--critical-failed CRITICAL_FAILED
--warning-unknown WARNING_UNKNOWN
--critical-unknown CRITICAL_UNKNOWN
```