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

check_hostname

Rating
0 votes
Favoured:
0
Last Release Date
2014-09-12
Compatible With
  • Nagios 3.x
Hits
12020
Files:
FileDescription
check_hostname.plcheck_hostname.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_hostname is used to ensure a windows host resolves to the same address on an authoritative name server.

If the reverse-resolve does not match the machines IP address and local host name, critical is returned.

This is written in perl and works under tinyperl. Put the tinyperl runtime and this script in nsclient++/scripts/perl
define service{
service_description host name
check_command check_nrpe!check_hostname
}

nsclient.ini:
[/settings/external scripts/scripts]
check_hostname = scriptsperlcheck_hostname.exe