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


zabbix-agent (11) Versions 0.9.0

Installs/Configures Zabbix Agent

cookbook 'zabbix-agent', '= 0.9.0'
cookbook 'zabbix-agent', '= 0.9.0', :supermarket
knife supermarket install zabbix-agent
knife supermarket download zabbix-agent
Quality 100%

Travis-CI Build

Build Status

Open Chat


Chef Cookbook - zabbix-agent

This cookbook installs and configures the zabbix-agent. It is a refactoring of the zabbix cookbook from that strips out the server install dependancies and focuses only on installing the agent.


Update the metadata.rb and change your package type (apt, yum) from "recommends" to "depends."

If you have internet access and a searchable dns alias so "zabbix" will resolve to your zabbix server this cookbook may work with no aditional changes. Just include recipe[zabbix-agent] in your runlist.

Otherwise you will need to modify:




or try one of the other install methods

Default Install, Configure and run zabbix agent

Install packages from and run the Agent:

  "run_list": [

Selective Install or Install and Configure (don't state zabbix-agent)

Alternativly you can just install, or install and configure:

  "run_list": [

or json { "run_list": [ "recipe[zabbix::configure]" ] }


Install Method options are: node['zabbix']['agent']['install_method'] = 'package' # Default

Other options are less tested:

node['zabbix']['agent']['install_method'] = 'source'
node['zabbix']['agent']['install_method'] = 'prebuild'
node['zabbix']['agent']['install_method'] = 'chocolatey' # Default for Windows

Version node['zabbix']['agent']['version']

Don't forget to set : node['zabbix']['agent']['servers'] = ["",""] node['zabbix']['agent']['servers_active'] = [""]

Package install

If you do not set any attributes you will get an install of zabbix agent version 2.2.7 with what should be a working configuration if your DNS has aliases for and your hosts search

Source install

If you do not specify source_url attributes for agent it will be set to download the specified branch and version from the official Zabbix source repository. If you want to upgrade later, you need to either nil out the source_url attributes or set them to the url you wish to download from.

node['zabbix']['agent']['source_url'] = nil
node['zabbix']['agent']['branch'] = "ZABBIX%20Latest%20Stable"

Prebuild install

Currently untested. Pull requests and kitchen tests desired.

Chocolatey install

Currently untested. Pull requests and kitchen tests desired.

Note :

A Zabbix agent running on the Zabbix server will need to : * use a different account than the on the server uses or it will be able to spy on private data. * specify the local Zabbix server using the localhost (, ::1) address.



The default recipe creates the Zabbix user and directories.

You can control the agent install with the following attributes:

node['zabbix']['agent']['install_method'] = 'source'

or node['zabbix']['agent']['install_method'] = 'prebuild' or node['zabbix']['agent']['install_method'] = 'package'


Downloads and installs the Zabbix agent from source

If you are on a machine in the RHEL family of platforms, then you will need to install packages from the EPEL repository. The easiest way to do this is to add the following recipe to your runlist before zabbix::agent_source

recipe "yum::epel"

You can control the agent install with:


Sets up the Zabbix default repository and installs the agent from there


Currently the LWRPs have not been completely ported to the new zabbix-agent cookbook.

zabbix-agent_api_call zabbix-agent_application zabbix-agent_discovery_rule zabbix-agent_graph zabbix-agent_host_group zabbix-agent_hostgroup zabbix-agent_host zabbix-agent_interface zabbix-agent_item zabbix-agent_source zabbix-agent_template zabbix-agent_trigger_dependency zabbix-agent_trigger zabbix-agent_user


  • Support more platform on agent side windows ?
  • LWRP cleanup, port and testing
  • Update documentation



  • Major refactor of all code.
  • Rename cookbook to zabbix-agent, strip out all server, web, java-gateway dependancies.
  • Add default code path chefspec tests
  • Update kitchen tests
  • Added package install from
  • Rename many cookbooks to follow a Install->Configure->Service design pattern.


  • This version is a big change with a lot of bugfix and change. Please be carefull if you are updated from previous version


  • Adds Berkshelf/Vagrant 1.1 compatibility (andrewGarson)
  • Moves recipe[yum::epel] to a documented runlist dependency instead of forcing you to use it via include_recipe


  • Format metadata and add support for Oracle linux (Thanks to tas50 and his love for oracle Linux)
  • Fix about redhat LSB in agent-prebuild recipe (Thanks nutznboltz)
  • Fix Add missing shabang for init file. (Thanks justinabrahms)
  • Fix FC045 foodcritic
  • new dependencies version on database and mysql cookbook
  • Add support for custom config file location to zabbix-agent.init-rh.erb (Thanks charlesjohnson)


  • Refactoring for passing foodcritic with help from dkarpenko
  • Added new attribute for server service : log_level
  • Added new attribute for server service : max_housekeeper_delete & housekeeping_frequency
  • Modified firewall recipe to accept connection to localhost zabbix_server


  • Added zabbix bin patch in init script (deprecate change made in 0.0.38)
  • Changed default zabbix version to 2.0.3


  • Added zabbix_agent bin dir into PATH for Debian/Ubuntu (Some script need zabbix_sender)


  • Having run dir in /tmp is not so good (Guilhem Lettron)


  • added restart option to zabbix-agent service definitions (Paul Rossman Patch)


  • Fix from Amiando about server_alias how should be a Array.
  • Fix from Guilhem about default run_dir be /tmp,it can be a big problem.


  • remove the protocol filter on firewall.


  • Added ServerActive configuration option for Zabbix agents (Paul Rossman Patch)


  • Fix a issue about order in the declaration of service and the template for recipes agent_*


  • Readme typo


  • Thanks to Paul Rossman for this release
  • Zabbix default install version is now 2.0.0
  • Option to install Zabbix database on RDS node (default remains localhost MySQL)
  • MySQL client now installed with Zabbix server
  • Added missing node['zabbix']['server']['dbport'] to templates/default/zabbix_web.conf.php.erb
  • Fixed recipe name typo in recipes/web.rb


  • Thanks to Steffen Gebert for this release
  • WARNING! this can break stuff : typo error on attribute file default['zabbix']['agent']['server'] -> default['zabbix']['agent']['servers']
  • Evaluate node.zabbix.agent.install as boolean, not as string
  • Respect src_dir in mysql_setup


  • Thanks to Steffen Gebert for this release
  • Use generic sourceforge download URLs
  • Fix warning string literal in condition
  • Deploy zabbix.conf.php file for web frontend
  • Add "status" option to zabbix_server init script
  • Make MySQL populate scripts compatible with zabbix 2.0
  • Add example for Chef Solo usage to Vagrantfile


  • Configuration error about include_dir in zabbix_agentd.conf.erb


  • zabbix agent and zabbix server don't want the same include_dir, be carefull if you use include_dir
  • noob error on zabbix::server


  • Don't try to use String as Interger !


  • Markdown Format for


  • Some Foodcritic


  • Bug in metadata dependencies
  • Firewall does not fix the protocol anymore


  • Added Patch from Harlan Barnes his patch include centos/redhat zabbix_server support.
  • Added Patch from Harlan Barnes his patch include directory has attribute.
  • Force a minimum version for apache2 cookbook


  • Added Patch from Harlan Barnes his patch include centos/redhat zabbix_agent support.


  • Fix README


  • Fix sysconfdir to point to /etc/zabbix on recipe server_source
  • Fix right for folder frontends/php on recipe web
  • Hardcode the PATH of conf file in initscript
  • Agent source need to build on a other folder
  • Add --prefix option to default attributes when using *-source recipe


  • Don't mess with te PID, PID are now in /tmp


  • Add depencies for recipe agent_source
  • Add AlertScriptsPath folder and option for server.


  • Add firewall magic for communication between client and server


  • Correction on documentation


  • Fix some issue on web receipe.


  • Change default value of zabbix.server.dbpassword to nil


  • Remove mikoomo
  • Still refactoring


  • Preparation for multiple type installation and some refactoring
  • Support the installation of a beta version when using the install_method == source and changing the attribute branch


  • Tune of mikoomi for running on agent side.


  • Fix some major issu


  • Add some love to php value
  • Now recipe mysql_setup populate the database
  • Minor fix


  • Change the name of the web_app to fit the fqdn

Dependent cookbooks

yum >= 0.0.0
apt >= 0.0.0

Contingent cookbooks

pg_monz Applicable Versions

Foodcritic Metric

0.9.0 passed this metric