Skip to content

Instantly share code, notes, and snippets.

View lgaggini's full-sized avatar

Lorenzo Gaggini lgaggini

View GitHub Profile
@lgaggini
lgaggini / check_docker_container.sh
Last active May 10, 2017 08:33 — forked from ekristen/check_docker_container.sh
Bash Script for Nagios to Check Status of Docker Container
#!/bin/bash
# Author: Erik Kristensen, Lorenzo Gaggini
# Email: erik@erikkristensen.com, lorenzo.gaggini@dada.eu
# 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 and grab performance data
# OK - running
@lgaggini
lgaggini / fabfile_apt_manager.py
Last active August 29, 2015 14:07 — forked from justquick/fabfile.py
Fabfile to manage apt-get updates on multiple machines, with or without confirms required
"""
Ubuntu update manager for Fabric
Checks for updates, installs them across multiple servers
Create a "hosts" file alongside this fabfile and put your hosts in there one per line
Updating package list::
fab update