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
- Host: GitHub
- URL: https://github.com/smashedr/nagios-rbl-check3
- Owner: smashedr
- License: gpl-3.0
- Created: 2017-01-31T06:38:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-31T08:10:27.000Z (over 9 years ago)
- Last Synced: 2025-02-25T08:15:36.642Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nagios RBL / DNSBL Check
[](https://travis-ci.org/smashedr/nagios-rbl-check3)
[](https://coveralls.io/github/smashedr/nagios-rbl-check3?branch=master)
[](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.