Skip to content

Instantly share code, notes, and snippets.

View danmandle's full-sized avatar

Dan Mandle danmandle

View GitHub Profile
@ekristen
ekristen / check_docker_container.sh
Last active January 16, 2024 16:15
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_
#
# Depending on your docker configuration, root might be required. If your nrpe user has rights
# to talk to the docker daemon, then root is not required. This is why root privileges are not
/*
Convert numbers to words
copyright 25th July 2006, by Stephen Chapman http://javascript.about.com
permission to use this Javascript on your web page is granted
provided that all of the code (including this copyright notice) is
used exactly as shown (you can change the numbering system if you wish)
*/
var numberToWords = function(s){