Forge Home

zabbix_agent

Puppet module for zabbix_agent

12,751 downloads

982 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 3.2.1 (latest)
  • 3.2.0
  • 3.0.3
  • 3.0.2
  • 3.0.1
  • 2.0.12
  • 2.0.11
released May 3rd 2021
This version is compatible with:
  • Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 8.0.0
  • , , , , , ,
This module has been deprecated by its author since Nov 11th 2021.

The reason given was: No longer maintained

The author has suggested puppet-zabbix as its replacement.

Start using this module

Documentation

example42/zabbix_agent — version 3.2.1 May 3rd 2021

Puppet module: zabbix_agent

Travis {}[https://travis-ci.org/example42/puppet-zabbix_agent]

This is a Puppet module for zabbix_agent compatible with Puppet 4 and newer.

Made by Alessandro Franceschi / Lab42 and Martin Alfke / example42

Official site: http://www.example42.com

Official git repository: http://github.com/example42/puppet-zabbix_agent

Released under the terms of Apache 2 License.

USAGE - Basic management

  • Install zabbix_agent with default settings, that is installation from OS default packages

      class { 'zabbix_agent': }
    
  • Install a specific version of zabbix_agent package.

      class { 'zabbix_agent':
        version => '2.0.6',
      }
    
  • Install zabbix_agent from upstream tarball (you MUST provide a version with this option)

      class { 'zabbix_agent':
        install => 'source',
        version => '2.0.6',
      }
    
  • Install zabbix_agent from upstream tarball and provide a custom template for the service's init script

      class { 'zabbix_agent':
        install => 'source',
        version => '2.0.6',
        init_script_template  => 'site/zabbix_agent/zabbix_agent.init.erb',
      }
    
  • Install zabbix_agent from a custom source to a custom destination

      class { 'zabbix_agent':
        install             => 'source',
        install_source      => 'http://download.example42.com/software/zabbix_agents_2.0.6.solaris10.amd64.tar.gz',
        install_destination => '/usr/local', # Default: '/opt'
      }
    
  • Install from source without creating a dedicated zabbix user

      class { 'zabbix_agent':
        install     => 'source',
        version     => '2.0.6',
        create_user => false,
      }
    
  • Provide a custom class for the module's prerequisites (check if they apply to your case)

      class { 'zabbix_agent':
        dependency_class => 'site::pre_zabbix_agent',
      }
    
  • Disable zabbix_agent service.

      class { 'zabbix_agent':
        disable => true
      }
    
  • Remove zabbix_agent package

      class { 'zabbix_agent':
        absent => true
      }
    

USAGE - Overrides and Customizations

  • Use custom sources for main config file

      class { 'zabbix_agent':
        source => [ "puppet:///modules/example42/zabbix_agent/zabbix_agent.conf-${hostname}" , "puppet:///modules/example42/zabbix_agent/zabbix_agent.conf" ], 
      }
    
  • Use custom source directory for the whole configuration dir

      class { 'zabbix_agent':
        source_dir       => 'puppet:///modules/example42/zabbix_agent/conf/',
        source_dir_purge => false, # Set to true to purge any existing file not present in $source_dir
      }
    
  • Use custom template for main config file. Note that template and source arguments are alternative.

      class { 'zabbix_agent':
        template => 'example42/zabbix_agent/zabbix_agent.conf.erb',
      }
    
  • Automatically include a custom subclass

      class { 'zabbix_agent':
        my_class => 'example42::my_zabbix_agent',
      }