adding ganglia checks
This commit is contained in:
@@ -7,7 +7,7 @@ class puppet (
|
||||
$run_hour = '*/1',
|
||||
$run_minute = '10',
|
||||
$run_if_ipmatch = '',
|
||||
$maxsleep = '640'
|
||||
$maxsleep = '640'
|
||||
) {
|
||||
$puppet_service = $::kernel ? {
|
||||
'Darwin' => 'org.macports.puppet',
|
||||
@@ -108,6 +108,17 @@ class puppet (
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
if defined(Class['ganglia::monitor']) {
|
||||
Ganglia::Gmetric::Cron {
|
||||
source => 'puppet/ganglia',
|
||||
ensure => $ensure,
|
||||
}
|
||||
|
||||
ganglia::gmetric::cron { 'puppetd_lastrun.sh': runwhen => '5', }
|
||||
ganglia::gmetric::cron { 'puppetd_runtime.sh': runwhen => '15', }
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
$puppet_user = $operatingsystem ? {
|
||||
|
||||
@@ -24,7 +24,7 @@ class puppet::puppetmaster ($ensure = 'present', $puppetqd = false) {
|
||||
}
|
||||
}
|
||||
|
||||
if defined(Class['ganglia']) {
|
||||
if defined(Class['ganglia::monitor']) {
|
||||
Ganglia::Gmetric::Cron {
|
||||
source => 'puppet/ganglia',
|
||||
ensure => $ensure,
|
||||
|
||||
Reference in New Issue
Block a user