Skip to content

Instantly share code, notes, and snippets.

@Scifire
Scifire / check_docker_container.sh
Last active January 6, 2021 16:51 — forked from ekristen/check_docker_container.sh
Bash Script for PRTG to Check Status of Docker Container
#!/bin/bash
# Original Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Original script: https://gist.github.com/ekristen/11254304
# PRTG Usage: place this in '/var/prtg/scripts/check_docker_container.sh' and create a new Sensore "SSH Script".
# The parameter have to be the container name.
#
# Depending on your docker configuration, root might be required or at least user have to be in docker group. If your prtg user has rights
@Scifire
Scifire / sample-puppetserver-metrics-dashboard.json
Created September 18, 2019 14:07
Puppetserver metrics grafana dashboard with victoriametrics source
//forked from: https://puppet.com/docs/puppetserver/6.0/sample-puppetserver-metrics-dashboard.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
@Scifire
Scifire / PVE-LE with dehydrated.sh
Last active June 3, 2018 08:39
Create and renew a TLS certificate from Let’s Encrypt via DNS challenge with dehydrated and use it for Proxmox cluster
#!/usr/bin/env bash
#Script uses dehydrated to get Let´s Encyrpt TLS Certs via DNS.
#These Certs are copied into Proxmox node dir and restart pve proxy service to enbale them.
set -e
set -u
#name nodes same as in the /etc/hosts
node1=host001
node2=host002
@Scifire
Scifire / inwx-acme
Last active April 18, 2017 14:31 — forked from gubiq/inwx-acme
#!/bin/bash
# Copyright (c) Joakim Reinert. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
API_URL='https://api.domrobot.com/xmlrpc/'
TMPDIR='/tmp/inwx-acme'