# check_docker_running

### Description ####

The plugin checks the following:     

- Is docker installed?                                             
- Are docker Container existing on the server?
- Do all container running?
- It also checks the RAM and CPU usage of the containers

The plugin uses in docker included commands, but 
also the check_docker Plugin from "https://github.com/timdaman/check_docker".

### Possible results of the plugin ###

- If docker is not installed, the plugin will exit with status code 0 (ok)
- If all container are running and have a runtime of at least 10 minutes the plugin will exit with status code 0 (ok)
- If all container are running but one or more container have a runtime of less than 30 seconds, the plugin will exit with the status code 2 (critical)
- If all container are running but one or more container have a runtime of less than 10 minutest, the plugin will exist with the status code 1(warning)
- If not all docker container are running on the server, the plugin will exist with the status code 2 (critical)
- If the CPU an RAM usage of the containers is not higher then the value of the condition for warnings the plugin will exit with the status code 0 (ok)
- If the CPU and RAM usage of one or more containers is higher than the condition for warnings, the plugin will exit with status code 1 (warning).
