Skip to content

Commit 242288b

Browse files
authored
Merge pull request #91 from pall-valmundsson/fix_dns_check
Fix DNS checks for compatibility with new version of check_dns plugin
2 parents 4d19b59 + 0fa08fe commit 242288b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

usr/share/okconfig/templates/misc/autodiscover/commands.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Edited by PyNag on Wed May 30 10:19:20 2012
33
define command {
44
command_name okc-check_dns
5-
command_line $USER1$/check_dns -H $ARG1$ -a $ARG2$
5+
command_line $USER1$/check_dns -H $ARG1$ -a $ARG2$ -q $ARG3$
66
}
77

88

usr/share/okconfig/templates/misc/autodiscover/services.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ define service {
33
use generic-service
44
name okc-check_reverse_lookup
55
service_description Forward Lookup
6-
check_command okc-check_dns!$HOSTNAME$!$HOSTADDRESS$
6+
check_command okc-check_dns!$HOSTNAME$!$HOSTADDRESS$!A
77
register 0
88
}
99
# Edited by PyNag on Wed May 30 14:06:33 2012
1010
define service {
1111
use generic-service
1212
name okc-check_forward_lookup
1313
service_description Reverse Lookup
14-
check_command okc-check_dns!$HOSTADDRESS$!$HOSTNAME$.
14+
check_command okc-check_dns!$HOSTADDRESS$!$HOSTNAME$.!PTR
1515
register 0
1616
}
1717

0 commit comments

Comments
 (0)