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_zone.pl

Rating
0 votes
Favoured:
0
Hits
96040
Files:
FileDescription
check_zone.plLatest version (v104) of check_zone.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_zone.pl will query each published nameserver for a domain, reporting any problem it finds. It checks for serial # mismatches, non-authoritative answers, unreachable or other lameness.
Usage:
check_zone.pl [-v[v]] domain

For command:
define command{
command_name check_zone
command_line /usr/bin/perl $USER1$/check_zone.pl $ARG1$
}

Note the use of /usr/bin/perl in front of the command - this is because check_zone.pl is not currently (as of 4/12/2009) compatible with ePN.

For service definition (this checks example.com):

define service {
host_name ahost
service_description ZONES
check_command check_zone!example.com
....
}

ahost could be no-host (or a host assigned the check_command check_dummy) since the check is not dependent on the host it is assigned to in any way (e.g. it doesn't use $HOSTADDRESS$).