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
96449
Files:
FileDescription
check_zone.plLatest version (v104) of check_zone.pl
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!
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$).