nagios: Added nagios::target::dns to check DNS servers.

This commit is contained in:
Timo Mkinen 2013-05-10 23:32:45 +03:00
parent e1f85fa427
commit 16b3f0d71e
2 changed files with 24 additions and 0 deletions

View file

@ -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.
#
class nagios::target::ssh inherits nagios::target {