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


pnp4nagios (7) Versions 0.2.9

Installs/Configures pnp4nagios

cookbook 'pnp4nagios', '~> 0.2.9', :supermarket
cookbook 'pnp4nagios', '~> 0.2.9'
knife supermarket install pnp4nagios
knife supermarket download pnp4nagios
Quality 17%

pnp4nagios Cookbook

CookbookBuild Status

This is a Chef cookbook to manage PNP4Nagios using LWRP.



  • rrdtool
  • apache2

RRDTool / RRDCached

This cookbook does not manage rrdtool, instead utilize cookbook rrdtool to setup
rrdcached service.


  • pnp4nagios::default - default recipe (used for run_list)

  • pnp4nagios::install - install pnp4nagios

  • pnp4nagios::config - configures pnp4nagios

  • pnp4nagios::apache - install apache and manage pnp4nagios apache vhost


Cnofig Attributes are yet to be updated here. Kindly check attributes file for available attributes.

  • default['pnp4nagios']['version'] (default: 0.6.25): pnp4nagios version

  • default['pnp4nagios']['source_url'] (default: ): pnp4nagios download source url

  • default['pnp4nagios']['user'] (default: nagios): pnp4nagios user

  • default['pnp4nagios']['group'] (default: nagios): pnp4nagios group

  • default['pnp4nagios']['perms'] (default: 0664): pnp4nagios permissions

  • default['pnp4nagios']['users']['pnp4nagios'] (default: pnp4nagios:pnp4nagios): pnp4nagios default users

  • default['pnp4nagios']['manage_auth_file'] (default: false): whether to manage http auth file

  • default['pnp4nagios']['auth_file'] (default: /etc/pnp4nagios/pnp4nagios.users): auth file for /pnp4nagios

  • default['pnp4nagios']['source_dir'] (default: /usr/local/src/pnp4nagios-x.y.z): pnp4nagios source directory to install

  • default['pnp4nagios']['install_dir'] (default: /usr/local/pnp4nagios): pnp4nagios install directory

  • default['pnp4nagios']['tmp_dir'] (default: /usr/local/pnp4nagios/tmpdir): pnp4nagios install tmp directory

  • default['pnp4nagios']['var_dir'] (default: /usr/local/pnp4nagios/var): pnp4nagios var directory

  • default['pnp4nagios']['conf_dir'] (default: /etc/pnp4nagios): pnp4nagios configuration directory

  • default['pnp4nagios']['home_dir'] (default: /var/lib/pnp4nagios): pnp4nagios home/lib directory

  • default['pnp4nagios']['spool_dir'] (default: /var/spool/icinga2/perfdata): pnp4nagios spool directory for icinga/nagios performance data

  • default['pnp4nagios']['log_dir'] (default: /var/log/pnp4nagios): pnp4nagios log directory

  • default['pnp4nagios']['perf_data_dir'] (default: /var/rrdtool/cache): rrdcached / rrdtool cache directory

  • default['pnp4nagios']['rrd_listener'] (default: ``): pnp4nagios rrdtool / rrdcached listener / socket

  • default['pnp4nagios']['rrd_stats_dir'] (default: /var/rrdtool/stats): rrdtool stats dir

  • default['pnp4nagios']['use_rrds'] (default: 0):

  • default['pnp4nagios']['nagios_base'] (default: /nagios/cgi-bin): nagios / icinga cgi-bin base http url

  • default['pnp4nagios']['multisite_base_url'] (default: /nagios): nagios / icinga base url

  • default['pnp4nagios']['livestatus_socket'] (default: unix:/usr/local/nagios/var/rw/live): nagios / icinga livestatus socket

  • default['pnp4nagios']['log_type'] (default: file): pnp4nagios log type

  • default['pnp4nagios']['log_level'] (default: 0): pnp4nagios log level

  • default['pnp4nagios']['max_log_file_size'] (default: 10485760): pnp4nagios max log size

  • default['pnp4nagios']['perfdata_run_cmd_args'] (default: --bulk): pnp4nagios perfdata args for npcd

  • default['pnp4nagios']['npcd_max_threads'] (default: 5): npcd process threads

  • default['pnp4nagios']['npcd_sleep_time'] (default: 15): npcd process sleep time

  • default['pnp4nagios']['perfdata_file_processing_interval'] (default: 15): perfdata processing interval


  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests (rake), ensuring they all pass
  6. Write new resource/attribute description to
  7. Write description about changes to PR
  8. Submit a Pull Request using Github

Authors:: Virender Khatri and Contributors

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.

pnp4nagios CHANGELOG

This file is used to list changes made in each version of the pnp4nagios cookbook.


  • Virender Khatri - Issue #8, set default value for default[pnp4nagios][rra]

  • Virender Khatri - Issue #9, update pnp4nagios version to 0.6.25

  • Virender Khatri - Added lint/tests


  • Virender Khatri - Fix for issue #7, updated apache2 modules

  • Virender Khatri - Added source_url and issues_url

  • Virender Khatri - Fix rubocop


  • Virender Khatri - #6, added ubuntu platform

  • Virender Khatri - #5, added support for apache 2.4


  • Virender Khatri - added config node attributes

  • Virender Khatri - added missing directory node[pnp4nagios][rrd_stats_dir] resource

  • Virender Khatri - fixed lint errors


  • Virender Khatri - fix for #1, changed tmpdir location from /tmp


  • Virender Khatri - applied temp fix for rrdcache socket connect error

  • Virender Khatri - added notify to files / templates resources

  • Virender Khatri - default to nagios spool directory


  • Virender Khatri - fixed incorrect dir management for spool dir

  • Virender Khatri - added rra.cfg file


  • Virender Khatri - Initial release of pnp4nagios

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Collaborator Number Metric

0.2.9 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

0.2.9 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Foodcritic Metric

0.2.9 failed this metric

FC066: Ensure chef_version is set in metadata: pnp4nagios/metadata.rb:1
FC069: Ensure standardized license defined in metadata: pnp4nagios/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

0.2.9 passed this metric

Testing File Metric

0.2.9 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Version Tag Metric

0.2.9 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must include a tag that matches this cookbook version number