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/contacts.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/contacts.pp')
-rw-r--r-- | modules/profile/manifests/monitoring/contacts.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/profile/manifests/monitoring/contacts.pp b/modules/profile/manifests/monitoring/contacts.pp new file mode 100644 index 0000000..284d51c --- /dev/null +++ b/modules/profile/manifests/monitoring/contacts.pp | |||
@@ -0,0 +1,15 @@ | |||
1 | class profile::monitoring::contacts { | ||
2 | Nagios_contactgroup { | ||
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_contactgroup { "admins": | ||
12 | alias => "System administrators", | ||
13 | } | ||
14 | |||
15 | } | ||