Improved puppet check cron job to check memory consumption.
This commit is contained in:
parent
17a3381e82
commit
d2a35e980c
2 changed files with 25 additions and 1 deletions
|
@ -60,12 +60,23 @@ class puppet::client {
|
|||
}
|
||||
}
|
||||
|
||||
file { "/usr/local/sbin/puppet-check":
|
||||
ensure => present,
|
||||
source => "puppet:///puppet/puppet-check",
|
||||
mode => 0755,
|
||||
owner => root,
|
||||
group => $operatingsystem ? {
|
||||
openbsd => wheel,
|
||||
default => root,
|
||||
},
|
||||
}
|
||||
cron { "puppet-check":
|
||||
ensure => present,
|
||||
command => "pgrep -f 'puppetd' > /dev/null || echo 'puppetd not running on host ${fqdn}'",
|
||||
command => "/usr/local/sbin/puppet-check",
|
||||
user => root,
|
||||
hour => 5,
|
||||
minute => 0,
|
||||
require => File["/usr/local/sbin/puppet-check"],
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue