Defined Type: zabbix::template

Defined in:
manifests/template.pp

Summary

This will upload an Zabbix Template (XML format)

Overview

Examples:

zabbix::template { 'Template App MySQL':
   templ_source => 'puppet:///modules/zabbix/MySQL.xml'
}

Parameters:

  • templ_name (Any) (defaults to: $title)

    The name of the template. This name will be found in the Web interface

  • templ_source (Any) (defaults to: '')

    The location of the XML file wich needs to be imported.

  • zabbix_version (String[1]) (defaults to: $zabbix::params::zabbix_version)

    The Zabbix version on which the template will be installed on.

  • delete_missing_applications (Boolean) (defaults to: false)

    Deletes applications from zabbix that are not in the template when set to true

  • delete_missing_drules (Boolean) (defaults to: false)

    Deletes discovery rules from zabbix that are not in the template when set to true

  • delete_missing_graphs (Boolean) (defaults to: false)

    Deletes graphs from zabbix that are not in the template when set to true

  • delete_missing_httptests (Boolean) (defaults to: false)

    Deletes web-scenarios from zabbix that are not in the template when set to true

  • delete_missing_items (Boolean) (defaults to: false)

    Deletes items from zabbix that are not in the template when set to true

  • delete_missing_templatescreens (Boolean) (defaults to: false)

    Deletes template-screens from zabbix that are not in the template when set to true

  • delete_missing_triggers (Boolean) (defaults to: false)

    Deletes triggers from zabbix that are not in the template when set to true

Author:

  • Vladislav Tkatchev <vlad.tkatchev@gmail.com>



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

define zabbix::template (
  $templ_name                             = $title,
  $templ_source                           = '',
  String[1] $zabbix_version               = $zabbix::params::zabbix_version,
  Boolean $delete_missing_applications    = false,
  Boolean $delete_missing_drules          = false,
  Boolean $delete_missing_graphs          = false,
  Boolean $delete_missing_httptests       = false,
  Boolean $delete_missing_items           = false,
  Boolean $delete_missing_templatescreens = false,
  Boolean $delete_missing_triggers        = false,
) {
  zabbix::resources::template { $templ_name:
    template_name                  => $templ_name,
    template_source                => $templ_source,
    zabbix_version                 => $zabbix_version,
    delete_missing_applications    => $delete_missing_applications,
    delete_missing_drules          => $delete_missing_drules,
    delete_missing_graphs          => $delete_missing_graphs,
    delete_missing_httptests       => $delete_missing_httptests,
    delete_missing_items           => $delete_missing_items,
    delete_missing_templatescreens => $delete_missing_templatescreens,
    delete_missing_triggers        => $delete_missing_triggers,
  }
}