Select Badges

Select Supported Platforms

Select Status

RSS

nrpe_project (1) Versions 0.1.0

Installs/Configures nrpe_project

Policyfile
Berkshelf
Knife
cookbook 'nrpe_project', '~> 0.1.0', :supermarket
cookbook 'nrpe_project', '~> 0.1.0'
knife supermarket install nrpe_project
knife supermarket download nrpe_project
README
Dependencies

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.

Copyright © 2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.

Progress and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.
See Trademarksfor appropriate markings. All rights in any other trademarks contained herein are reserved by their respective owners and their inclusion does not imply an endorsement, affiliation, or sponsorship as between Progress and the respective owners.

Code of Conduct Terms and Conditions of Use Privacy Policy Cookie Policy Trademark Policy Status