Puppet Class: zabbix::resources::agent

Defined in:
manifests/resources/agent.pp

Overview

Class zabbix::resources::agent

This will create an resources into puppetdb for automatically configuring agent into zabbix front-end.

Requirements

Nothing.

When manage_resource is set to true, this class will be loaded from ‘zabbix::agent’. So no need for loading this class manually.

Parameters:

  • hostname (Any) (defaults to: undef)
  • ipaddress (Any) (defaults to: undef)
  • use_ip (Any) (defaults to: undef)
  • port (Any) (defaults to: undef)
  • group (Any) (defaults to: undef)
  • group_create (Any) (defaults to: undef)
  • templates (Any) (defaults to: undef)
  • proxy (Any) (defaults to: undef)


16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'manifests/resources/agent.pp', line 16

class zabbix::resources::agent (
  $hostname      = undef,
  $ipaddress     = undef,
  $use_ip        = undef,
  $port          = undef,
  $group         = undef,
  $group_create  = undef,
  $templates     = undef,
  $proxy         = undef,
) {

  @@zabbix_host { $hostname:
    ipaddress      => $ipaddress,
    use_ip         => $use_ip,
    port           => $port,
    group          => $group,
    group_create   => $group_create,
    templates      => $templates,
    proxy          => $proxy,
    zabbix_url     => '',
    zabbix_user    => '',
    zabbix_pass    => '',
    apache_use_ssl => '',
  }
}