ReleaseEngineering/PuppetAgain/Modules/nrpe
This module installs NRPE, as well as configuring plugins and checks flexibly.
Usage
Include nrpe in the relevant toplevel class, then realize any Nrpe::Check instances that you need on that host, e.g.,
include nrpe realize(Nrpe::Check['check_buildbot']) realize(Nrpe::Check['check_ide_smart']) realize(Nrpe::Check['check_procs_regex']) realize(Nrpe::Check['check_child_procs_regex'])
The available checks are listed in modules/nrpe/manifests/checks.pp.
Defining New Checks
Remember that NRPE has _checks_, which are defined in the configuration, and _plugins_, which are scripts to which checks can refer. Often, but not always, they have the same name.
To add a new check, you'll need to add another virtual resource to modules/nrpe/manifests/checks.pp, like the others there. The title of the resource is the check name, and the cfg attribute is the entry for nrpe.cfg. If you also need to install a plugin, add a plugin attribute giving its name. The plugin will be automatically installed from a file in modules/nrpe/files by the same name.