monitoring-plugins/plugins
Jan Wagner df53473d03 check_dig: patch to make dig honor -t option
When a timeout value is specified with the -t option, dig will sometimes
timeout before the timer is actually reached.

The problem occurs because the check_dig plugin does not pass the specified
timeout value to dig, leaving dig to timeout with it's default value which
seems to be around 10-15seconds.

To reproduce:
time ./check_dig -H 127.0.0.2 -l www.google.com -t 30

It will not run for 30secs, which is the expected behaviour.

The following will work, because the timeout is less than the default dig
timeout, so the plugin cancels the dig command:
time ./check_dig -H 127.0.0.2 -l www.google.com -t 2

This fix passes the timeout value to dig, and sets the number of retries which tends to vary from system to system by default.

Closes #1168
2014-01-30 11:07:22 +01:00
..
t Typo 2014-01-29 02:16:47 -05:00
tests Rename MP_STATE_DIRECTORY to MP_STATE_PATH 2014-01-27 08:35:23 -05:00
check_apt.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_by_ssh.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_cluster.c Project rename initial commit. 2014-01-19 14:18:47 -05:00
check_dbi.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_dig.c check_dig: patch to make dig honor -t option 2014-01-30 11:07:22 +01:00
check_disk.c check_disk: precise the help output 2014-01-28 12:07:48 +01:00
check_dns.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_dummy.c Capitalize "Monitoring" when it's the first word 2014-01-20 03:12:50 +01:00
check_fping.c Capitalize "Monitoring" when it's the first word 2014-01-20 03:12:50 +01:00
check_game.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_hpjd.c Capitalize "Monitoring" when it's the first word 2014-01-20 03:12:50 +01:00
check_http.c Merge branch 'maint' 2014-01-21 16:07:38 +01:00
check_ide_smart.c fix smart attribute comparison 2014-01-23 08:56:53 -05:00
check_ldap.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_load.c Capitalize "Monitoring" when it's the first word 2014-01-20 03:12:50 +01:00
check_mrtg.c Capitalize "Monitoring" when it's the first word 2014-01-20 03:12:50 +01:00
check_mrtgtraf.c Capitalize "Monitoring" when it's the first word 2014-01-20 03:12:50 +01:00
check_mysql.c Capitalize "Monitoring" when it's the first word 2014-01-20 03:12:50 +01:00
check_mysql_query.c Merge pull request #1200 from awiddersheim/add_file_options_mysql_query 2014-01-27 22:50:27 -08:00
check_nagios.c Project rename initial commit. 2014-01-19 14:18:47 -05:00
check_nt.c Capitalize "Monitoring" when it's the first word 2014-01-20 03:12:50 +01:00
check_ntp.c Fixing bug in average calculation (Submitted by Lars) 2014-01-24 18:20:08 +01:00
check_ntp_peer.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_ntp_time.c Fixing bug in average calculation (Submitted by Lars) 2014-01-24 18:20:08 +01:00
check_nwstat.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_overcr.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_pgsql.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_ping.c check_ping: Fixing "time of day goes back" 2014-01-24 18:33:37 +01:00
check_procs.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_radius.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_real.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_smtp.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_snmp.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_ssh.c Merge branch 'maint' 2014-01-21 16:07:38 +01:00
check_swap.c Update check_swap usage 2014-01-29 03:59:48 -05:00
check_tcp.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_time.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_ups.c Merge branch 'rename' 2014-01-21 07:59:07 -05:00
check_users.c Capitalize "Monitoring" when it's the first word 2014-01-20 03:12:50 +01:00
common.h Project rename initial commit. 2014-01-19 14:18:47 -05:00
Makefile.am Project rename initial commit. 2014-01-19 14:18:47 -05:00
negate.c Move negate' translate_state() to utils_base.h mp_translate_state() 2014-01-29 03:20:23 -05:00
netutils.c Project rename initial commit. 2014-01-19 14:18:47 -05:00
netutils.h Project rename initial commit. 2014-01-19 14:18:47 -05:00
popen.c Project rename initial commit. 2014-01-19 14:18:47 -05:00
popen.h Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
runcmd.c Project rename initial commit. 2014-01-19 14:18:47 -05:00
runcmd.h Project rename initial commit. 2014-01-19 14:18:47 -05:00
sslutils.c Project rename initial commit. 2014-01-19 14:18:47 -05:00
urlize.c Capitalize "Monitoring" when it's the first word 2014-01-20 03:12:50 +01:00
utils.c Project rename initial commit. 2014-01-19 14:18:47 -05:00
utils.h Remove accidental tabs inserted in macro 2014-01-23 03:06:21 -05:00