An open API service indexing awesome lists of open source software.

https://github.com/smashedr/nagios-rbl-check3

Python 3 Duplicate of https://github.com/egeland/nagios-rbl-check
https://github.com/smashedr/nagios-rbl-check3

Last synced: 11 months ago
JSON representation

Python 3 Duplicate of https://github.com/egeland/nagios-rbl-check

Awesome Lists containing this project

README

          

# Nagios RBL / DNSBL Check

[![Build Status](https://travis-ci.org/smashedr/nagios-rbl-check3.svg?branch=master)](https://travis-ci.org/smashedr/nagios-rbl-check3)
[![Coverage Status](https://coveralls.io/repos/github/smashedr/nagios-rbl-check3/badge.svg?branch=master)](https://coveralls.io/github/smashedr/nagios-rbl-check3?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bc9734b678fb46899836967d301a4642)](https://www.codacy.com/app/smashedr/nagios-rbl-check3?utm_source=github.com&utm_medium=referral&utm_content=smashedr/nagios-rbl-check3&utm_campaign=Badge_Grade)

A Python-based Nagios/Icinga plugin to check whether a host is listed on any known DNS-based spam blacklists.

# Requirements
The plugin requires Python version 2.6 or higher. If you are using a system with more than one version of Python installed, edit the first line of the `check_rbl.py` script to point to the locally-installed version of Python you wish to use. On RHEL systems, for example, this might look like:

#! /usr/bin/env python26

# Usage
You can run the plugin using either a **hostname** (which will be resolved to an IP address) or an **IP address**:

./check_rbl.py -w -c -h
./check_rbl.py -w -c -a

For example, to test whether hostname `mail.google.com` is listed on any known blacklist, with a **Warning** level of 1 blacklist and a **Critical** level of 3 blacklists, do:

./check_rbl.py -w 1 -c 3 -h mail.google.com

To test the plugin, check `127.0.0.2` which should always come back as "listed" on every known blacklist. For example:

./check_rbl.py -w 1 -c 3 -a 127.0.0.2

# Known Blacklists
A list of known blacklists included in the `check_rbl.py` script is located on this Wiki page:

https://github.com/egeland/nagios-rbl-check/wiki

If you know of other DNS-based blacklists that should be considered for inclusion, please open an "Enhancement" issue.

# Contributors
* Frode Egeland - https://github.com/egeland
* Steve Jenkins - https://github.com/stevejenkins
* Tim Stoop - https://github.com/timstoop
* Guillaume Subiron - https://github.com/maethor

# License
Licensed under the GPL v3. Enjoy.