Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_container_memory
Current Version
1.4
Owner
Hits
9860
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 checks the docker container internal memory 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 the nrpe user is added to docker group)
Usage
sudo ./check_container_memory.sh -w -c
Output
OK - if the Memory usage is under the warning and critical thresholds
WARNING - if the Memory usage is equal or over the warning threshold and it is under the critical threshold
CRITICAL - if the Memory usage is equal or over the critical threshold
UNKNOWN - if the container does not exist
Examples
$ sudo ./check_container_memory.sh container -w 80 -c 95
OK - MEMORY Usage = 4.82% | Memory Usage=0.05%;80;95;0;100
$ sudo ./check_container_memory.sh container -w 80 -c 95
CRITICAL - MEMORY Usage = 96.79% | Memory Usage=96.79%;80;95;0;100
$ sudo ./check_container_memory.sh notexist -w 80 -c 95
UNKNOWN - notexist does not exist.
For more info visit: https://github.com/ninoabbate/nrpe-plugins#check_container_memory
Requirements
- Docker 1.5.0 or higher
- The script requires sudo permissions due docker (this can be prevented if the nrpe user is added to docker group)
Usage
sudo ./check_container_memory.sh
Output
OK - if the Memory usage is under the warning and critical thresholds
WARNING - if the Memory usage is equal or over the warning threshold and it is under the critical threshold
CRITICAL - if the Memory usage is equal or over the critical threshold
UNKNOWN - if the container does not exist
Examples
$ sudo ./check_container_memory.sh container -w 80 -c 95
OK - MEMORY Usage = 4.82% | Memory Usage=0.05%;80;95;0;100
$ sudo ./check_container_memory.sh container -w 80 -c 95
CRITICAL - MEMORY Usage = 96.79% | Memory Usage=96.79%;80;95;0;100
$ sudo ./check_container_memory.sh notexist -w 80 -c 95
UNKNOWN - notexist does not exist.
For more info visit: https://github.com/ninoabbate/nrpe-plugins#check_container_memory
Reviews (0)
Be the first to review this listing!