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

Select Status


snmp (16) Versions 1.0.0

Installs/Configures snmp on redhat, centos, ubuntu, debian

cookbook 'snmp', '= 1.0.0', :supermarket
cookbook 'snmp', '= 1.0.0'
knife supermarket install snmp
knife supermarket download snmp
Quality -%

SNMP Build Status


Installs and configures snmpd.

The SNMP multiplex (smuxpeer) line will be set for Dell OpenManage, if Dell
manufactured hardware is detected by Ohai.


This cookbook provides an SNMP Extend example to collect DNS RNDC statistics.
The SNMP Extend script is written in Perl and depends on the CPAN module "version",
and Getopt::Declare.

There is a loose dependency recommending the "perl" cookbook.
If you have no need for the SNMP Extend example included, you may remove the
"depends perl" line from metadata.rb. Then run 'knife cookbook metadata snmp'
before uploading to the Chef server.


  • snmp::default

    • Installs and configures SNMP
  • snmp::snmptrapd

    • Configures snmptrapd
  • snmp::extendbind

    • Example recipe to deploy a Perl based extend script to collect stats from a BIND 9 server.


Notable overridable attributes are as follows. It is recommended to override
these following attributes to best suit your own environment.

  • snmp[:community]

    • SNMP Community String, default is "public".
  • snmp[:trapcommunity]

    • SNMP Community Trap String, default is "public".
  • snmp[:trapsinks]

    • Array of trapsink hosts, and optionall Community Trap strings. This is an empty array by default.
  • snmp[:syscontact]

    • String to set a name, and e-mail address for systems. Default is "Root root@localhost"
  • snmp[:syslocationPhysical]

    • String to set the location for physical systems. Default is "Server Room".
  • snmp[:syslocationVirtual]

    • String to set the location for Virtual Machines. Default is "Virtual Server".
  • snmp[:full_systemview]

    • Boolean to include the full systemview. This defaults to "false" as many distributions ship this way to speed up snmpwalk. However, if you're running SNMP Network Management System, you'll want to override this as "true" on your systems.
  • snmp['snmpd']['mibdirs']

    • MIB directories. "/usr/share/snmp/mibs" is the default
  • snmp['snmpd']['snmpd_run']

    • snmpd control (default of "yes" means start daemon)
  • snmp]['snmpd']['snmpd_opts']

    • snmpd options
  • snmp['snmpd']['trapd_run']

    • snmptrapd control (default of "no" means do not start daemon) master agentx support must be enabled in snmpd before snmptrapd can be run. See snmpd.conf(5) for how to do this.
  • snmp['snmpd']['trapd_opts']

    • snmptrapd options
  • snmp['snmpd']['snmpd_compat']

    • Create symlink on Debian legacy location to official RFC path Default is "yes".


Here is a full example featuring all the overridable attributes.
You can apply these override attributes in a role, or node context.

  override_attributes "snmp" => {
    "community" => "secret",
    "full_systemview" => true,
    "trapsinks" => [ "", "" ],
    "syslocationPhysical" => "Server Room",
    "syslocationVirtual" => "Cloud - Virtual Pool",
    "syscontact" => ""


Thanks to Sami Haahtinen <zanaga> on Freenode/#chef for testing,
and feedback pertinent to the Debian/Ubuntu platforms.


Author:: Eric G. Wolfe (

Copyright 2010-2012

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

No quality metric results found