1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-10 04:23:44 +01:00
nagios-plugins/check_bl
2012-08-23 10:58:21 +00:00
..
check_bl moved plugins from subversion-style trunk/ directories 2012-03-12 16:03:21 +00:00
COPYING moved plugins from subversion-style trunk/ directories 2012-03-12 16:03:21 +00:00
nagios-okplugin-mailblacklist.spec Automatic commit of package [nagios-okplugin-mailblacklist] release [1.0-1]. 2012-08-23 10:58:21 +00:00
README moved plugins from subversion-style trunk/ directories 2012-03-12 16:03:21 +00:00

Nagios check_bl plugin (C)Copyright 2005 Bashton Ltd
----------------------------------------------------

A Nagios plugin to check whether a server is in any known anti-spam
blocklists.  Licensed under the GNU GPL v2.0 or later (at your option).  For
full copyright and warranty details, please see the COPYING file included in
this package.

By Sam Bashton, Bashton Ltd - sam@bashton.com www.bashton.com

Comments, bug reports etc are welcome.

Pre-Requisites
--------------

- Working Nagios install
- Perl 5 (tested with Perl 5.6.1 and 5.8)
- Net::DNS Perl library and associated dependencies

Installation
------------

- Copy to your nagios plugins directory (possibly /usr/lib/nagios/plugins)
- Add the following to your checkcommands.cfg:

define command{
        command_name    check_bl
        command_line    $USER1$/check_bl -H $HOSTADDRESS$ -B sbl-xbl.spamhaus.or
g,bl.spamcop.net,t1.dnsbl.net.au
}

- Alter your services.cfg to include a check against the check_bl command

Variables
---------

check_bl requires the following variables:

-H host : Hostname to check
-B blacklist1,blacklist2 : Comma separated list of blacklists to check against

The following optional variable is also available:

-c critnum : Number of blacklists the server must be listed in before the status is 'critical'.  By default, any listing is regarded as critical.