1
0
mirror of https://github.com/Luzifer/elb-instance-status.git synced 2024-09-08 01:39:07 +00:00
elb-instance-status/elb-instance-status.yml

22 lines
816 B
YAML

---
root_free_inodes:
name: Ensure there are at least 30% free inodes on /
command: test $(df -i | grep "/$" | xargs | cut -d ' ' -f 5 | sed "s/%//") -lt 70
docker_free_inodes:
name: Ensure there are at least 30% free inodes on /var/lib/docker
command: test $(df -i | grep "/var/lib/docker$" | xargs | cut -d ' ' -f 5 | sed "s/%//") -lt 70
docker_free_diskspace:
name: Ensure there is at least 30% free disk space on /var/lib/docker
command: test $(df | grep "/var/lib/docker$" | xargs | cut -d ' ' -f 5 | sed "s/%//") -lt 70
docker_mounted:
name: Ensure volume on /var/lib/docker is mounted
command: mount | grep -q /var/lib/docker
docker_start_container:
name: Ensure docker can start a small container
command: docker run --rm alpine /bin/sh -c "echo testing123" | grep -q testing123