Skip to content

Instantly share code, notes, and snippets.

@ppetko
ppetko / cMonitor
Last active June 4, 2022 21:18
cMonitor - Docker monitoring for the state of the containers
#!/bin/bash
set -o pipefail
critical=0
state_replicated=0
state_swarm=0
DATE=`date +%Y-%m-%d-%H:%M:%S`