Puppet Class: monitoring

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

Overview

Parameters:

  • 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: {})


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

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