blob: d88f37351bff7ef4c378640a255eff5de15423ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# add a special host and monitor
# it's dns service
define nagios::service::dns_host(
$check_domain,
$host_alias,
$parent,
$ip
){
@@nagios_host{$name:
address => $ip,
alias => $host_alias,
use => 'generic-host',
parents => $parent,
}
nagios::service::dns{$name:
host_name => $name,
comment => 'public_ns',
check_domain => $check_domain,
ip => $ip,
}
}
|