sysc0d / nagios-plugin Goto Github PK
View Code? Open in Web Editor NEWNagios plugin - check docker (cpu / mem / bandwidth)
License: GNU General Public License v3.0
Nagios plugin - check docker (cpu / mem / bandwidth)
License: GNU General Public License v3.0
Hi,
--format is not an existing parameter for docker stats (I use a Docker 1.10 on customer server), and without the pretty print format even shortid grep does not catch anything.
So, which is the lower version your script is compatible with ?
Regards
Cédric
Hi,
[ec2-user@ip-172-31-44-152 ~]$ sudo bash check_docker.sh --name voo4-collecte --status --cpulimitperc=00,90
Unknown argument: --cpulimitperc=00,90
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
[ec2-user@ip-172-31-44-152 ~]$ sudo bash check_docker.sh --name voo4-collecte --status --cpulimitperc 00,90
voo4-collecte OK , running
Reading the code, the equal sign is not useful, but documentation still give it
-c, --cpulimitperc**=PERC_WARNING_CPU,PERC_CRITCAL_CPU
-m, --memlimitperc=**PERC_WARNING_MEM,PERC_CRITICAL_MEM
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.