/check_whois

Nagios check for domain expiration

Primary LanguagePerl

== Single check usage ==
usage: ./check_whois [-xdi] [-s str] [-f path] domain
        -d      Debugging
        -x      Don't complain if Registrar cannot be determined.
        -s str  Require that the string 'str' appear in the whois output
        -f path Provide path to text file of WHOIS data, no WHOIS check will be made
	-i 	Ignore whois results with no expiration timestamp (e.g. .ro TLD)


define command {
 command_name    check-whois
 command_line    /path/to/check_whois $HOSTADDRESS$
}

define service {
 name                   whois-service
 check_command          check-whois
 ...
}

define host {
 use dns-zone
 host_name zone.example.com
 alias ZONE example.com
}

define service {
 use whois-service
 host_name zone.example.com
}

== Directory of WHOIS data usage ==
./check_whois_dir /path/to/whois/data /path/to/check_whois