Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This is a Nagios plugin that monitors CPU / MEM / BANDWIDTH and status Docker.
Current Version
1.1
Last Release Date
2017-03-14
Owner
sysc0d
Website
https://github.com/sysC0D
Download URL
https://github.com/sysC0D/nagios-plugin/blob/master/check_docker.sh
License
GPL
Compatible With
Minimum Docker version -> 1.10.0 Nagios user need permission to use Docker, please add user "nagios" in docker group -> usermod -aG docker ${USER} For use this script, user need shell "/bin/bash", please execute next command -> chsh -s /bin/bash ${USER}
Usage: ./check_docker_stats.sh [-v] [-h] [-n [-s -c -m -N]] -h, --help print this help message -v, --version print version program -n, --name name docker to check -c, --cpulimitperc PERC_WARNING_CPU,PERC_CRITCAL_CPU number in percent alert for CPU -m, --memlimitperc PERC_WARNING_MEM,PERC_CRITICAL_MEM number in percent alert for MEM usage -N, --ntwlimit WARNING_NET_RX,WARNING_NET_TX,CRITCAL_NET_RX,CRITCAL_NET_TX bandwidth (RX -> DL,TX -> UL) in kBps for docker selected -s, --status check if docker is alive
./check_docker.sh -n container_name -c PERC_WARNING_CPU,PERC_CRITCAL_CPU -m PERC_WARNING_MEM,PERC_CRITICAL_MEM -N WARNING_NET_RX,WARNING_NET_TX,CRITCAL_NET_RX,CRITCAL_NET_TX
./check_docker.sh -n dockername -c 80,90 -m 25,30 -N 1000,500,2000,1000
Troubleshooting: If docker stats have zero value for current|limit memory stats, please execute this command : cd help_script; ./enable_memswap_stats.sh
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!