nagios-check_bl is a Nagios plugin that checks whether a server is in any known anti-spam block lists.
| Tags | Networking Monitoring |
|---|---|
| Licenses | GPL |
| Implementation | Perl |
Recent comments
08 Jun 2010 22:23
Nice Plugin! Thanks!
spudding - I had the exact same problem you did with the NULL being returned. I could run the check_bl command without issue on the command line and get a "Not Blacklisted" result back, but once I tried to add it to my config as a service I got a null in the web page. In order to fix the problem I had to modify the check_bl file itself and change a path inside of the file. Here's what I changed:
use lib "/usr/lib/nagios/plugins";
I changed it to this...
use lib "/usr/local/nagios/libexec/";
all of my plugins are located in the libexec directory. Once I did that, the nagios web page returned a correct result instead of NULL. Hope this helps!
24 Feb 2010 21:34
What FQDN does it test against? All my host_names are internal names or IP's. Do I need to create an additional host with my external or FQDN and assign check_bl to that host?
24 Jun 2008 05:09
Re: works great!
my checkcommands.cfg looks like that:
define command {
command_name check_bl
command_line $USER1$/check_bl -H
$HOSTADDRESS$ -B
sbl.spamhaus.org,list.dsbl.org,dnsbl.njabl.org
}
and my host.cfg:
define service {
host_name proxy1
service_description BLACKLIST
is_volatile 0
check_command
check_bl!80.21.16.14,80.21.16.16
max_check_attempts 3
normal_check_interval 60
retry_check_interval 60
active_checks_enabled 1
passive_checks_enabled 1
check_period 24x7
parallelize_check 1
obsess_over_service 1
check_freshness 0
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
contact_groups admins
notification_interval 240
notification_period 24x7
notification_options c,r
notifications_enabled 1
register 1
}
hope this helps a little bit!
23 Jun 2008 21:09
Re: works great!
Great work
I have one slight problem. I have add to my main config but how do i define in a host file at the moment when i define it i get back null and it see it as a error in nagios
16 Jun 2005 05:12
works great!
great idea!
thank you for building this script, it works great for me.
i just had to install Net::DNS with this command it's just
as easy as drinking...
perl -MCPAN -e 'install Net::DNS'