Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

zabbix_ng (7) Versions 1.0.1

Installs/Configures zabbix_ng

Berkshelf/Librarian
Policyfile
Knife
cookbook 'zabbix_ng', '= 1.0.1'
cookbook 'zabbix_ng', '= 1.0.1', :supermarket
knife cookbook site install zabbix_ng
knife cookbook site download zabbix_ng
README
Dependencies
Changelog
Quality

Description

This cookbook installs and configures zabbix

Attributes

Set the zabbix server

node['zabbix_ng']['agent']['zabbix_server'] # defaults to '127.0.0.1'

Recipes

agent

Installs zabbix-agent, adds package-manager specific update monitoring

Adds the following UserParameters, that return the amount of upgradeable packages

apt.updates # for debian and ubuntu
yum.updates # for scientific, redhat, centos and fedora

server

Installs zabbix-server

sender

Installs zabbix-sender

Providers

To use the providers, make sure you add the following line to your metadata.rb

depends 'zabbix'

zabbix_agent_userparam

This LRWP can be used to maintain zabbix user parameters in the zabbix_agentd.d directory.

Create a new rule like this

zabbix_ng_agent_userparam 'thin' do
  identifier 'my.zabbix_identifier'
  command    'my_zabbix_command --with --arguments'
end

You can also use your own templates

zabbix_ng_agent_userparam 'postgresql' do
  cookbook 'flinc-database'
  source   'zabbix_parameters_postgresql.erb'
  variables :my => 'var'
end

zabbix_agent_ssl

This LWRP monitores the SSL expiration date

zabbix_ng_agent_ssl '/etc/nginx/certs/server.crt'

You can also specify a custom zabbix identifier (defaults to ssl.certificate)

zabbixng__agent_ssl 'my custom certificate monitoring' do
  certificate '/etc/ssl/mycert.pem'
  identifier  'custom.zabbix_identifier'
end

1.0.1

  • Use node['fqdn'] as the default hostname in zabbix_agentd.conf. This resolves issues with zabbix-trapper when using zabbix_sender

1.0.0

  • Introduce new parameter node['zabbix_ng']['zabbix_version']
  • Update default zabbix version to 3.0
  • NOTE: In case you want to stay with zabbix-2.4, make sure to set the following attribute: default['zabbix_ng']['zabbix_version'] = '2.4'

0.1.1

  • Restart zabbix agent after config file was deployed
  • Intrudoce attribute to set zabbix agent timeout

0.1.0

  • Initial release of zabbix_ng

Foodcritic Metric
            

1.0.1 passed this metric