Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_dnsbl

Rating
3 votes
Favoured:
3
Hits
117072
Files:
FileDescription
check_dnsblcheck_dnsbl
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Perl plugin that checks a specified DNS blacklist such as bl.spamcop.net to see whether a host is listed. Depends on Net::DNS.
Perl plugin that checks a specified DNS blacklist such as bl.spamcop.net to see whether a host is listed. Blacklists can be used to identify misbehaving servers, zombie PCs, and other machines worthy of a sysadmin's attention.

Depends on Net::DNS.

Usage:
>
> check_dnsbl -H host -B blacklist -T target -t timeout -v -v
> check_dnsbl --help
>

If you only care about a specific sub-list (see your blacklist's information page for these result addresses), you can specify it with the -T option.

For testing purposes, try 127.0.0.2 as the host:
>
> check_dnsbl -H 127.0.0.2 -B bl.spamcop.net -v -v
>

You might want to put this in {{checkcommands.cfg}}:


define command{
command_name check_sorbs
command_line $USER1$/check_dnsbl -H $HOSTADDRESS$ -B dnsbl.sorbs.net
}

define command{
command_name check_spamcop
command_line $USER1$/check_dnsbl -H $HOSTADDRESS$ -B bl.spamcop.net
}


Then in {{services.cfg}}, all you need is {{check_command check_sorbs}} or {{check_command check_spamcop}} in the right place.
Reviews (1)
Can you update script to work with ipv6 hosts?