Forge Home

10,803 downloads

10,117 latest version

0.1 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

  • 0.0.4 (latest)
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Sep 22nd 2013

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'fiddyspence-zabbix', '0.0.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add fiddyspence-zabbix
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install fiddyspence-zabbix --version 0.0.4

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

fiddyspence/zabbix — version 0.0.4 Sep 22nd 2013

This is the zabbix module

It uses https://github.com/vadv/zabbixapi to talk to the JSONRpc API presented by Zabbix, but I am going to change that soon.

It is currently only partially featured - it will install a zabbix server on EL, create hosts and hostgroups.

The Zabbix API is, I apologise for this, not awesome.

The base class will install a zabbix server, using either MySQL or Postgresql as the backend

Example usage for MySQL:

node 'zabbixmysql' inherits default {
  class { 'zabbix': server => true, managedb => true, dbserver => 'mysql' }
  Zabbix_host <<| |>>
}

Example usage for Postgres:

node 'zabbixpg' inherits default {
  class { 'zabbix': server => true, managedb => true, dbserver => 'postgresql' }
  Zabbix_host <<| |>>
}


node default {
  # Export a host definition, to be imported by the zabbix server
  @@zabbix_host { $::fqdn:
    ensure     => 'present',
    groups     => ['Linux servers','foogroup'],
    interfaces => [ { type => 1, main => 1, ip => $::ipaddress, dns => $::fqdn, port => 10050, useip => 1 } ],
  }
  
}

License

Apache 2.

Contact

cspence@puppetlabs.com