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_hostname (windows)

Rating
0 votes
Favoured:
0
Last Release Date
2014-09-12
Compatible With
  • Nagios 3.x
Hits
16677
Files:
FileDescription
check_hostname.plcheck_hostname.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_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