nagios: Added nagios::target::dns to check DNS servers.
This commit is contained in:
parent
e1f85fa427
commit
16b3f0d71e
2 changed files with 24 additions and 0 deletions
|
@ -155,6 +155,13 @@ define command{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# 'check_dig' command definition
|
||||||
|
define command{
|
||||||
|
command_name check_dig
|
||||||
|
command_line $USER1$/check_dig -H $HOSTADDRESS$ -l $ARG1$
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# 'check_dhcp' command definition
|
# 'check_dhcp' command definition
|
||||||
define command{
|
define command{
|
||||||
command_name check_dhcp
|
command_name check_dhcp
|
||||||
|
|
|
@ -40,6 +40,23 @@ class nagios::target($parent=undef) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Configure dig service target.
|
||||||
|
#
|
||||||
|
# === Parameters
|
||||||
|
#
|
||||||
|
# $query:
|
||||||
|
# Address to query from DNS server. Defaults to localhost.
|
||||||
|
#
|
||||||
|
class nagios::target::dns ($query="localhost") inherits nagios::target {
|
||||||
|
|
||||||
|
@@nagios::service { "${::homename}_dig":
|
||||||
|
command => "check_dig!${query}",
|
||||||
|
description => "DNS",
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Configure ssh service target.
|
# Configure ssh service target.
|
||||||
#
|
#
|
||||||
class nagios::target::ssh inherits nagios::target {
|
class nagios::target::ssh inherits nagios::target {
|
||||||
|
|
Loading…
Add table
Reference in a new issue