cookbook 'nrpe_project', '~> 0.1.0'
nrpe_project (1) Versions 0.1.0 Follow0
Installs/Configures nrpe_project
cookbook 'nrpe_project', '~> 0.1.0', :supermarket
knife supermarket install nrpe_project
knife supermarket download nrpe_project
nrpe_project
This cookbook was developed to help those that are new to chef get started through a easy to understand video tutorial. It is designed to make the default values of the nrpe.cfg dynamic without adding the complication of implementing additional plugins or other cookbooks. This repository has been created so that those following the tutorial can reference the finished code.
This cookbook:
* Updates Ubuntu
* Install NRPE and Nagios plugins using the apt repository
* Use a template to write the nrpe.cfg file
* Restart the NRPE service
To use this cookbook modify the values of the attributes in the nrpe_project/attributes/default.rb file. These attributes configure the nrpe.cfg. Once the desired values are entered the cookbook is ready to be run.
These attributes will configure the nrpe.cfg settings:
- node.default['nrpe']['settings']['log_facility'] = 'daemon'
- node.default['nrpe']['settings']['pid_file'] = '/var/run/nagios/nrpe.pid'
- node.default['nrpe']['settings']['server_port'] = '5666'
- node.default['nrpe']['settings']['nrpe_user'] = 'nagios'
- node.default['nrpe']['settings']['nrpe_group'] = 'nagios'
- node.default['nrpe']['settings']['allowed_hosts'] = '192.168.1.111'
- node.default['nrpe']['settings']['dont_blame_nrpe'] = '0'
- node.default['nrpe']['settings']['allow_bash_command_substitution'] = '0'
- node.default['nrpe']['settings']['debug'] = '0'
- node.default['nrpe']['settings']['command_timeout'] = '60'
- node.default['nrpe']['settings']['connection_timeout'] = '300'
These attributes will configure the nrpe service check commmands:
users
- node.default['nrpe']['commands']['check_users_warn'] = '5'
- node.default['nrpe']['commands']['check_users_crit'] = '10'
load
- node.default['nrpe']['commands']['check_load_warn'] = '15,10,5'
- node.default['nrpe']['commands']['check_load_crit'] = '30,25,20'
hard drive
- node.default['nrpe']['commands']['check_disk_path'] = '/dev/sda1'
- node.default['nrpe']['commands']['check_disk_warn'] = '20%'
- node.default['nrpe']['commands']['check_disk_crit'] = '10%'
zombi procs
- node.default['nrpe']['commands']['check_zombie_procs_s'] = 'Z'
- node.default['nrpe']['commands']['check_zombie_procs_warn'] = '5'
- node.default['nrpe']['commands']['check_zombie_procs_crit'] = '10'
total procs
- node.default['nrpe']['commands']['check_procs_warn'] = '150'
- node.default['nrpe']['commands']['check_procs_crit'] = '200'
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
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
FC008: Generated cookbook metadata needs updating: nrpe_project/metadata.rb:2
FC008: Generated cookbook metadata needs updating: nrpe_project/metadata.rb:3
FC034: Unused template variables: nrpe_project/templates/nrpe_cfg.erb:1
FC064: Ensure issues_url is set in metadata: nrpe_project/metadata.rb:1
FC065: Ensure source_url is set in metadata: nrpe_project/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: nrpe_project/metadata.rb:1
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
0.1.0 failed this 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
FC008: Generated cookbook metadata needs updating: nrpe_project/metadata.rb:2
FC008: Generated cookbook metadata needs updating: nrpe_project/metadata.rb:3
FC034: Unused template variables: nrpe_project/templates/nrpe_cfg.erb:1
FC064: Ensure issues_url is set in metadata: nrpe_project/metadata.rb:1
FC065: Ensure source_url is set in metadata: nrpe_project/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: nrpe_project/metadata.rb:1
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
0.1.0 failed this metric
FC008: Generated cookbook metadata needs updating: nrpe_project/metadata.rb:3
FC034: Unused template variables: nrpe_project/templates/nrpe_cfg.erb:1
FC064: Ensure issues_url is set in metadata: nrpe_project/metadata.rb:1
FC065: Ensure source_url is set in metadata: nrpe_project/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: nrpe_project/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
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
0.1.0 failed this 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