GitHub

The check_dig Plugin

check_dig v2.2.git (monitoring-plugins 2.2)
Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>
Copyright (c) 2002-2008 Monitoring Plugins Development Team
    <devel@monitoring-plugins.org>

This plugin tests the DNS service on the specified host using dig

Usage:
check_dig -l <query_address> [-H <host>] [-p <server port>]
 [-T <query type>] [-w <warning interval>] [-c <critical interval>]
 [-t <timeout>] [-a <expected answer address>] [-v]

Options:
 -h, --help
    Print detailed help screen
 -V, --version
    Print version information
 --extra-opts=[section][@file]
    Read options from an ini file. See
    https://www.monitoring-plugins.org/doc/extra-opts.html
    for usage and examples.
 -H, --hostname=ADDRESS
    Host name, IP Address, or unix socket (must be an absolute path)
 -p, --port=INTEGER
    Port number (default: 53)
 -4, --use-ipv4
    Force dig to only use IPv4 query transport
 -6, --use-ipv6
    Force dig to only use IPv6 query transport
 -l, --query_address=STRING
    Machine name to lookup
 -T, --record_type=STRING
    Record type to lookup (default: A)
 -a, --expected_address=STRING
    An address expected to be in the answer section. If not set, uses whatever
    was in -l
 -A, --dig-arguments=STRING
    Pass STRING as argument(s) to dig
 -w, --warning=DOUBLE
    Response time to result in warning status (seconds)
 -c, --critical=DOUBLE
    Response time to result in critical status (seconds)
 -t, --timeout=INTEGER
    Seconds before connection times out (default: 10)
 -v, --verbose
    Show details for command-line debugging (output may be truncated by
    the monitoring system)

Examples:
 check_dig -H DNSSERVER -l www.example.com -A "+tcp"
 This will send a tcp query to DNSSERVER for www.example.com

Send email to help@monitoring-plugins.org if you have questions regarding
use of this software. To submit patches or suggest improvements, send email
to devel@monitoring-plugins.org