No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
attributes
providers
recipes
resources
templates/default
.gitignore
.kitchen.yml
.rubocop.yml
CHANGELOG.md
LICENSE
README.md
chefignore
metadata.rb

README.md

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 'my_cookbook'
  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