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
#!/usr/bin/env zsh | |
# MK's Remote Plugin Executor NG ;-) | |
# | |
# Workaround for check_mks inability to use scripts from a mrpe.d directory | |
# http://lists.mathias-kettner.de/pipermail/checkmk-en/2013-February/008646.html | |
# | |
# Make sure mrpe.cfg doesn't exist, or you will end up with two <<<mrpe>>> | |
# output sections. | |
# |
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
#!/bin/bash | |
directory='/var/lib/graphite/whisper' | |
for file in $(find $directory -type f -name '*.wsp' -print); do | |
whisper-info $file > /dev/null 2>&1 | |
[ $? -ne 0 ] && rm -v $file | |
done |
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
#!/usr/bin/env bash | |
# | |
# Retrieves MX and A records for the 'Alexa Top 1 Million' list | |
# and prints them as nicely formatted JSON objects to stdout. | |
# | |
# Authors: Aaron Zauner <[email protected]> | |
# License: CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0) | |
# | |
set -e |