CPU Usage and Load

check_container_cpu

Description:

This plugin checks the docker container internal CPU usage, it retrieves the values using docker stats. The plugin outputs also the performance data.

Current Version

1.2

Last Release Date

December 22, 2016

Compatible With


Project Notes
This plugin checks the docker container internal CPU usage, it retrieves the values using docker stats. The plugin outputs also the performance data. Requirements - Docker 1.5.0 or higher - The script requires sudo permissions due docker (this can be prevented if nrpe user is added to docker group) Usage sudo ./check_container_cpu.sh -w -c Output OK - if the CPU usage is under the warning and critical thresholds WARNING - if the CPU usage is equal or over the warning threshold and it is under the critical threshold CRITICAL - if the CPU usage is equal or over the critical threshold UNKNOWN - if the container does not exist Examples $ sudo ./check_container_cpu.sh container -w 80 -c 95 OK - CPU Usage = 7% | CPU Usage=7%;80;95;0;100 $ sudo ./check_container_cpu.sh container -w 80 -c 95 CRITICAL - CPU Usage = 97% | CPU Usage=97%;80;95;0;100 $ sudo ./check_container_cpu.sh notexist -w 80 -c 95 UNKNOWN - notexist does not exist. For more info visit: https://github.com/ninoabbate/nrpe-plugins#check_container_cpu
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
9,683