1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-05 10:03:45 +01:00
nagios-plugins/check_bl/trunk
Páll Guðjón Sigurðsson 599a3f3d11 IP address added to output
2010-08-13 13:14:47 +00:00
..
check_bl IP address added to output 2010-08-13 13:14:47 +00:00
COPYING check_bl added (check blacklist) 2010-03-03 21:42:19 +00:00
nagios-okplugin-mailblacklist.spec Added RPM spec file to blacklist checks 2010-08-11 22:39:22 +00:00
README check_bl added (check blacklist) 2010-03-03 21:42:19 +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.