Puppet Class: monitoring

Defined in:
modules/monitoring/manifests/init.pp

Overview

Parameters:

  • contact_group (String[1]) (defaults to: 'admin')
  • mgmt_contact_group (String[1]) (defaults to: 'admin')
  • cluster (String[1]) (defaults to: 'misc')
  • nagios_group (String[1]) (defaults to: 'misc')
  • notifications_enabled (Boolean) (defaults to: true)
  • do_paging (Boolean) (defaults to: true)
  • hosts (Hash) (defaults to: {})
  • services (Hash) (defaults to: {})
  • mgmt_parents (Hash[String, String]) (defaults to: {})


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/monitoring/manifests/init.pp', line 1

class monitoring (
    String[1]            $contact_group         = 'admin',
    String[1]            $mgmt_contact_group    = 'admin',
    String[1]            $cluster               = 'misc',
    String[1]            $nagios_group          = 'misc',
    Boolean              $notifications_enabled = true,
    Boolean              $do_paging             = true,
    Hash                 $hosts                 = {},
    Hash                 $services              = {},
    Hash[String, String] $mgmt_parents          = {},
) {
    $hosts.each |$host, $config| {
        monitoring::host { $host:
            * => $config,
        }
    }
    $services.each |$service, $config| {
        monitoring::service { $service:
            * => $config,
        }
    }
}