2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'manifests/service/swap.pp', line 2
class monitoring::service::swap {
include ::monitoring
$ensure = $::monitoring::ensure
monitoring::service { 'swap':
service_description => 'SWAP',
servicegroups => 'system',
check_command => 'check_nrpe!check_swap',
contact_groups => 'admins',
}
monitoring::servicedependency { 'swap':
dependent_service_description => 'SWAP',
service_description => 'NRPE',
}
nrpe::plugin { 'swap':
ensure => $ensure,
plugin => 'main',
check_command => 'check_swap',
command_args => '-w 40% -c 20%',
}
}
|