Created
January 7, 2025 18:54
-
-
Save DavesCodeMusings/b4159829fc931a88463d1ecf6603447f to your computer and use it in GitHub Desktop.
Monit alerts for down Docker containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| check program containers with path "/usr/bin/docker ps --format '{{ .Names }}' --filter 'status=exited'" | |
| every 120 cycles | |
| if content != "" then alert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment