blob: 7a0fb8f73428aaf0c6189e4b1d69c57f1cf3201c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
class check_mk::server::collect_ps (
$config = "${::check_mk::config::etc_dir}/check_mk/conf.d/ps.mk"
) {
concat { $config:
owner => 'root',
group => 'root',
mode => '0644',
notify => Exec['check_mk-refresh'],
}
concat::fragment{'check_mk_ps_header':
target => $config,
content => "checks += [\n",
order => 10,
}
Check_mk::Ps <<| tag == 'check_mk_ps' |>> {
target => $config,
notify => Exec['check_mk-refresh']
}
concat::fragment{'check_mk_ps_footer':
target => $config,
content => "]\n",
order => 90,
}
}
|