Skip to content

Instantly share code, notes, and snippets.

@acobaugh
Created October 17, 2012 17:33
Show Gist options
  • Save acobaugh/3906912 to your computer and use it in GitHub Desktop.
Save acobaugh/3906912 to your computer and use it in GitHub Desktop.
# ./check_v46 --wrapper-hostname ns1.ems.psu.edu --plugin-hostname-arg="-s" /usr/lib64/nagios/plugins/check_dns --no-proto-arg --debug -H smith.ait.psu.edu -a 128.118.58.69
debug: Doing protocol IPv6
debug: Lookup of ns1.ems.psu.edu for 10 returned: 2610:8:7800:20::66
debug: checking address 2610:8:7800:20::66
debug: Running '/usr/lib64/nagios/plugins/check_dns -H smith.ait.psu.edu -a 128.118.58.69 -s 2610:8:7800:20::66
debug: Plugin output 1st line: 'DNS OK: 1.914 second response time. smith.ait.psu.edu returns 128.118.58.69|time=1.914483s;;;0.000000'
debug: Reformatted performance data: 'ipv6_a1_time=1.914483s;;;0.000000'
debug: Plugin result: 0 (OK)
debug: Doing protocol IPv4
debug: Lookup of ns1.ems.psu.edu for 2 returned: 146.186.163.66
debug: checking address 146.186.163.66
debug: Running '/usr/lib64/nagios/plugins/check_dns -H smith.ait.psu.edu -a 128.118.58.69 -s 146.186.163.66
debug: Plugin output 1st line: 'DNS OK: 1.726 second response time. smith.ait.psu.edu returns 128.118.58.69|time=1.725801s;;;0.000000'
debug: Reformatted performance data: 'ipv4_a1_time=1.725801s;;;0.000000'
debug: Plugin result: 0 (OK)
OK: IPv6/2610:8:7800:20::66 OK, IPv4/146.186.163.66 OK | ipv6_a1_time=1.914483s;;;0.000000 ipv4_a1_time=1.725801s;;;0.000000
Status details:
IPv6/2610:8:7800:20::66:
DNS OK: 1.914 second response time. smith.ait.psu.edu returns 128.118.58.69
IPv4/146.186.163.66:
DNS OK: 1.726 second response time. smith.ait.psu.edu returns 128.118.58.69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment