ReleaseEngineering/PuppetAgain/Modules/nrpe

< ReleaseEngineering‎ | PuppetAgain‎ | Modules
Revision as of 00:52, 15 May 2012 by Djmitche (talk | contribs) (Created page with "This module installs [http://exchange.nagios.org/directory/Addons/Monitoring-Agents/NRPE--2D-Nagios-Remote-Plugin-Executor/details NRPE], as well as configuring plugins and check...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.