{"id":22157697,"url":"https://github.com/link0/puppet-nrpe","last_synced_at":"2025-03-24T14:48:00.527Z","repository":{"id":57668176,"uuid":"67357343","full_name":"link0/puppet-nrpe","owner":"link0","description":"Puppet module for NRPE","archived":false,"fork":false,"pushed_at":"2018-10-11T09:24:50.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T06:23:07.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Puppet","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/link0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-04T16:56:39.000Z","updated_at":"2018-10-11T09:24:51.000Z","dependencies_parsed_at":"2022-09-07T15:50:38.847Z","dependency_job_id":null,"html_url":"https://github.com/link0/puppet-nrpe","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link0%2Fpuppet-nrpe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link0%2Fpuppet-nrpe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link0%2Fpuppet-nrpe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link0%2Fpuppet-nrpe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/link0","download_url":"https://codeload.github.com/link0/puppet-nrpe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294765,"owners_count":20591899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T03:12:56.429Z","updated_at":"2025-03-24T14:48:00.500Z","avatar_url":"https://github.com/link0.png","language":"Puppet","funding_links":[],"categories":[],"sub_categories":[],"readme":"# link0/puppet-nrpe\n[![Build status][build-img]][build-url]\n[![License badge][license-img]][license-url]\n[![Puppet badge][puppet-img]][puppet-url]\n\n## Overview\n\nThe [link0/nrpe](https://forge.puppet.com/link0/nrpe) module installs, configures and manages the NRPE service.\n\n## Usage\n\n### \n\nBasic usage accepting all defaults (installation, configuration, managing the service, etcetera)\n\n```puppet\ninclude ::nrpe\n``` \n\nAlthough, if you would like to have more control over the service, you can pass parameters like this:\n\n```puppet\nclass { '::nrpe':\n  package_ensure =\u003e latest,\n  service_manage =\u003e false,\n}\n```\n\nThese settings can also be overridden by using Hiera\n\n```yaml\nnrpe::service_manage: false\n```\n\n## Defining commands\n\nThis module is all about defining commands to be called remotely.\n\n```puppet\n# This command creates '/etc/nagios/nrpe.d/check_apt.cfg' with the content:\n# command[check_apt]=/usr/lib/nagios/plugins/check_apt\nnrpe::command { 'check_apt':\n}\n```\n\nIf you want to add arguments, those can be defined as well\n\n```puppet\n# This command creates '/etc/nagios/nrpe.d/check_procs.cfg' with the content:\n# command[check_procs]=/usr/lib/nagios/plugins/check_procs -w 175 -c 200\nnrpe::command { 'check_procs':\n  arguments =\u003e '-w 175 -c 200',\n}\n```\n\nYou can even specify a custom command, but keep the name NRPE calls\n\n```puppet\n# This command creates '/etc/nagios/nrpe.d/check_foo.cfg' with the content:\n# command[check_foo]=/usr/bin/foo -w bar -c baz\nnrpe::command { 'check_foo':\n  command =\u003e '/usr/bin/foo',\n  arguments =\u003e '-w bar -c baz',\n}\n```\n\n## Customization\n\n### `package_manage`\nWhether the package should be managed by puppet. Type: `boolean`. Defaults to `true`\neg `package_manage: false` will not install the package from your package manager\n\n### `package_ensure`\nIf the package is managed, how to ensure the package, Type: `installed`, `absent` or `latest`. Defaults to `installed`\n\n### `package_name`\nIf the package is available under a different name, you can specify it here. Type: `string` Defaults to `nagios-nrpe-server`\n\n### `service_manage`\nWhether you want puppet to manage the service. Type: `boolean`, defaults to `true`\n\n### `service_ensure`\nIf the service is managed by puppet, what should be ensured. Type: `running` or `stopped`. Defaults to `running`\n\n### `service_name`\nIf the service is managed by puppet, what the name of the service should be. Type: `string` Defaults to 'nagios-nrpe-server'.\n\n### `config_manage`\nWhether you want puppet to manage nrpe.cfg. Type: `boolean`, defaults to `true`\n\n### `config_file`\nIf the configuration is managed by puppet, which file should be managed. Type: `absolute_path`. Defaults to `/etc/nagios/nrpe.cfg`\n\n### `config_template`\nIf the configuration is managed by puppet, which template should be used. Type: `string`. Defaults to `nrpe/nrpe.cfg.erb`\n\n### `allowed_hosts`\nWhich hosts are allowed to connect to NRPE. Type: `array`. Defaults to `['127.0.0.1']`.\n\n### `port`\nWhich port should NRPE be listening on. Type: `integer`. Defaults to `5666`.\n\n### `user`\nWhich user should NRPE be running under. Type: `string`. Defaults to `nagios`.\n\n### `group`\nWhich group should NRPE be running under. Type: `string`. Defaults to `nagios`.\n\n### `pid_file`\nWhich file should be used to store the PID. Type `absolute_path`. Defaults to `/var/run/nagios/nrpe.pid`.\n\n### `log_facility`\nWhich log facility should NRPE be logging to. Type: `string`. Defaults to `daemon`.\n\n### `command_timeout`\nWhat timeout should be set for commands. Type: `integer`. Defaults to `60`.\n\n### `connection_timeout`\nWhat timeout should be set for connection issues. Type: `integer`. Defaults to `300`.\n\n### `debug`\nShould NRPE be logging debug output. Type: `boolean`. Defaults to `false`.\n\n[build-img]: https://travis-ci.org/link0/puppet-nrpe.svg\n[build-url]: https://travis-ci.org/link0/puppet-nrpe\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg\n[license-url]: https://github.com/link0/puppet-nrpe/blob/master/LICENSE\n[puppet-img]: https://img.shields.io/puppetforge/dt/link0/nrpe.svg\n[puppet-url]: https://forge.puppetlabs.com/link0/nrpe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink0%2Fpuppet-nrpe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flink0%2Fpuppet-nrpe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink0%2Fpuppet-nrpe/lists"}