Skip to content

Instantly share code, notes, and snippets.

View Shashank-In's full-sized avatar
🏠
Working from home

Shashank Shashank-In

🏠
Working from home
View GitHub Profile
@Shashank-In
Shashank-In / check_docker_container.sh
Created January 7, 2017 10:45 — forked from ekristen/check_docker_container.sh
Bash Script for Nagios to Check Status of Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# The script checks if a container is running.
# OK - running