diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-01 15:35:43 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-08 13:29:25 +0200 |
commit | d8f933bd00a5cc416da00cd26c9d13f7a1c02486 (patch) | |
tree | 6f8773b69418463485d1196389a6c264f3cf3a6e /modules/profile/manifests/monitoring/times.pp | |
parent | 25c99a635507abfe6af4a1f0a9fc5a103d1880c0 (diff) | |
download | Puppet-d8f933bd00a5cc416da00cd26c9d13f7a1c02486.tar.gz Puppet-d8f933bd00a5cc416da00cd26c9d13f7a1c02486.tar.zst Puppet-d8f933bd00a5cc416da00cd26c9d13f7a1c02486.zip |
Add monitoring
Diffstat (limited to 'modules/profile/manifests/monitoring/times.pp')
-rw-r--r-- | modules/profile/manifests/monitoring/times.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/profile/manifests/monitoring/times.pp b/modules/profile/manifests/monitoring/times.pp new file mode 100644 index 0000000..fb61acc --- /dev/null +++ b/modules/profile/manifests/monitoring/times.pp | |||
@@ -0,0 +1,22 @@ | |||
1 | class profile::monitoring::times { | ||
2 | Nagios_timeperiod { | ||
3 | ensure => "present", | ||
4 | owner => "naemon", | ||
5 | group => "naemon", | ||
6 | target => "/etc/naemon/objects.cfg", | ||
7 | notify => Service["naemon"], | ||
8 | before => Service["naemon"], | ||
9 | } | ||
10 | |||
11 | nagios_timeperiod { "24x7": | ||
12 | alias => "24 Hours A Day, 7 Days A Week", | ||
13 | monday => "00:00-24:00", | ||
14 | tuesday => "00:00-24:00", | ||
15 | wednesday => "00:00-24:00", | ||
16 | thursday => "00:00-24:00", | ||
17 | friday => "00:00-24:00", | ||
18 | saturday => "00:00-24:00", | ||
19 | sunday => "00:00-24:00", | ||
20 | } | ||
21 | |||
22 | } | ||