ReleaseEngineering/PuppetAgain/Modules/nrpe: Difference between revisions
(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...") |
No edit summary |
||
Line 2: | Line 2: | ||
= Usage = | = Usage = | ||
The available checks are | Include the checks you need, noting that the "check_" is replaced by "check::", e.g., | ||
include nrpe::check::buildbot | |||
include nrpe::check::procs_regex | |||
The available checks are in [http://hg.mozilla.org/build/puppet/file/tip/modules/nrpe/manifests/check modules/nrpe/manifests/check]. | |||
= Defining New Checks = | = Defining New Checks = | ||
Line 15: | Line 14: | ||
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. | 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. | ||
Add a new manifest file in ''modules/nrpe/manifests/check'', named after the check without the leading "check_". Add a ''nrpe::check'' resource for your check, with a ''cfg'' attribute specifying the configuration for the check (the portion following "command[whatever]="). To add a plugin, include a ''nrpe::plugin'' resource naming the plugin, and drop the plugin script into ''modules/nrpe/files''. The existing classes provide excellent examples to follow. |
Revision as of 02:03, 15 May 2012
This module installs NRPE, as well as configuring plugins and checks flexibly.
Usage
Include the checks you need, noting that the "check_" is replaced by "check::", e.g.,
include nrpe::check::buildbot include nrpe::check::procs_regex
The available checks are in modules/nrpe/manifests/check.
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.
Add a new manifest file in modules/nrpe/manifests/check, named after the check without the leading "check_". Add a nrpe::check resource for your check, with a cfg attribute specifying the configuration for the check (the portion following "command[whatever]="). To add a plugin, include a nrpe::plugin resource naming the plugin, and drop the plugin script into modules/nrpe/files. The existing classes provide excellent examples to follow.