projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11d3070
)
restart stale icinga automatically
author
Peter Palfrader
<peter@palfrader.org>
Fri, 1 Jun 2018 08:51:02 +0000
(10:51 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Fri, 1 Jun 2018 08:51:02 +0000
(10:51 +0200)
modules/nagios/manifests/server.pp
patch
|
blob
|
history
diff --git
a/modules/nagios/manifests/server.pp
b/modules/nagios/manifests/server.pp
index
1bbd576
..
a634220
100644
(file)
--- a/
modules/nagios/manifests/server.pp
+++ b/
modules/nagios/manifests/server.pp
@@
-102,4
+102,12
@@
class nagios::server {
source => 'puppet:///modules/nagios/dsa-nagios/generated/auto-services.cfg',
notify => Service['nagios3'],
}
+
+ concat::fragment { 'dsa-puppet-stuff--nagios--restart-stale-icinga':
+ target => '/etc/cron.d/dsa-puppet-stuff',
+ order => '010',
+ content => @(EOF)
+ */15 * * * * root find /var/lib/icinga/status.dat -mmin +20 | grep -q . && service icinga restart
+ | EOF
+ }
}