Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
pods_on_node.py
1
2016-03-23
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
Other
9950
File | Description |
---|---|
pods_on_node.py | pods_on_node.py |
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 is simple python script which sends api request to openshift (or kubernetes) master server: /api/v1/pods and parse json response.
usage:
pods_on_node.py --ulr openshift_master --node node_name --token bearer_token
--warn int_of_pods --crit int_of_pods
Nagios plugin to get number of pods in node
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL url:[port] of openshfit or kubernetes master server
-n NODE, --node NODE node name for which you need info
-t TOKEN,--token TOKEN token for connection to openshift master
-w WARN, --warn WARN warning level of quantity pods
-c CRIT, --crit CRIT critical level of quantity pods
to use it you have to get token from secret for service account with cluster-reader permissions. If you have configured origin-metrics you can use heapster token
usage:
pods_on_node.py --ulr openshift_master --node node_name --token bearer_token
--warn int_of_pods --crit int_of_pods
Nagios plugin to get number of pods in node
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL url:[port] of openshfit or kubernetes master server
-n NODE, --node NODE node name for which you need info
-t TOKEN,--token TOKEN token for connection to openshift master
-w WARN, --warn WARN warning level of quantity pods
-c CRIT, --crit CRIT critical level of quantity pods
to use it you have to get token from secret for service account with cluster-reader permissions. If you have configured origin-metrics you can use heapster token
Reviews (0)
Be the first to review this listing!