Skip to content

Instantly share code, notes, and snippets.

View grootsadmin's full-sized avatar

grootsadmin

View GitHub Profile
@grootsadmin
grootsadmin / dnsbl.sh
Created February 16, 2020 17:24 — forked from agarzon/dnsbl.sh
DNS Black List - Linux shell script (improved from: http://www.daemonforums.org/showthread.php?t=302)
#!/bin/sh
# Check if an IP address is listed on one of the following blacklists
# The format is chosen to make it easy to add or delete
# The shell will strip multiple whitespace
BLISTS="
b.barracudacentral.org
bb.barracudacentral.org
bl.deadbeef.com
bl.mailspike.net
@grootsadmin
grootsadmin / slack_nagios.sh
Created February 16, 2020 17:20 — forked from matt448/slack_nagios.sh
Script to post Nagios notifications into a Slack channel
#!/bin/bash
# This script is used by Nagios to post alerts into a Slack channel
# using the Incoming WebHooks integration. Create the channel, botname
# and integration first and then add this notification script in your
# Nagios configuration.
#
# All variables that start with NAGIOS_ are provided by Nagios as
# environment variables when an notification is generated.
# A list of the env variables is available here: