2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'manifests/metrics/collectd/apache.pp', line 2
class monitoring::metrics::collectd::apache {
if defined(Class['apache']) {
# Assuming puppetlabs/apache
if defined('::apache::mod::status') and !defined(Class['::apache::mod::status']) {
class { '::apache::mod::status':
allow_from => ['127.0.0.1', '::1'],
extended_status => 'On',
}
}
}
if ($::apache_statuspage_present) {
class { '::collectd::plugin::apache':
instances => {
'apache80' => {
'url' => 'http://localhost/server-status?auto',
},
},
}
}
}
|