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

RSS

nscp (1) Versions 0.1.0

Installs/Configures NSClient++ for Windows operating system

Policyfile
Berkshelf
Knife
cookbook 'nscp', '~> 0.1.0', :supermarket
cookbook 'nscp', '~> 0.1.0'
knife supermarket install nscp
knife supermarket download nscp
README
Dependencies
Changelog
Quality 17%

Nscp Chef Cookbook

Description

NSClient++ is used as a monitoring agent on Windows. This cookbook installs it in NRPE (legacy) mode. Also it provides LWRP to create additional script checks.

Requirements

Platforms

Tested only on Windows Server 2012 R2.

Attributes

Root for all attributes is node['nscp'].

Attribute Description Type Default
['config'] Configuration values for nsclient.ini are stored here. Hash Check attributes/default.rb
['template_cookbook'] Name of the cookbook where configuration templates are stored. String 'nscp'
['template_name'] Name of template file for nsclient.ini config. String 'nsclient.ini.erb'
['template_scripts_name'] Name of template file for nsclient_scripts.ini config. String 'nsclient_scripts.ini.erb'
['service_name'] Name of the NSClient++ service. String 'nscp'

Recipes

  • default.rb - Install and configure NSClient++.

Resources

nscp_check

Used to create additional script checks. Every check is saved in node attributes.

Property Description Type Default
command_name Unique command name. This command then called from check_nrpe. String
command Script name to execute. Currently only scripts in <nsclient_folder>/scripts are supported. Put custom scripts there using template or cookbook_file resources. Arguments are supported. String
arguments Arguments array to be used with check. ATTENTION: These values are not for NSClient++ configuration, but for Nagios, Icinga, etc. to run with check_nrpe. Array []

Kitchen

# check style
chef exec rake style
# converge and run tests
chef exec rake integration:vagrant

Examples

For examples see test/fixtures/cookbooks/test cookbook.

Authors

Dependent cookbooks

chocolatey ~> 1.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0 (July 12, 2016)

  • Initial version of the cookbook. Check README.md.

Collaborator Number Metric
            

0.1.0 failed this metric

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

Contributing File Metric
            

0.1.0 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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.0 failed this metric

FC066: Ensure chef_version is set in metadata: nscp/metadata.rb:1
FC069: Ensure standardized license defined in metadata: nscp/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: nscp/resources/nscp_check.rb:39
FC085: Resource using new_resource.updated_by_last_action to converge resource: nscp/resources/nscp_check.rb:53
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.0 passed this metric

Testing File Metric
            

0.1.0 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 https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.0 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number