Puppet module to manage nrpe
OTHER License
===
This module allows you to manage NRPE and its plugins. It does not name any of the plugins, so you can use whatever you like by specifying a hash of plugins and their associated parameters.
===
This module supports Puppet v3 (with and without the future parser), v4,
v5 and v6 with Ruby versions 1.8.7, 1.9.3, 2.0.0, 2.1.9, 2.4.1 and 2.5.1.
See .travis.yml
for an exact matrix.
It is tested on the following platforms.
===
nrpe
Name of package(s) for NRPE.
String to pass to ensure attribute for the NRPE package.
Path to admin file for NRPE package.
Source to NRPE package.
Name of the package provider for the NRPE package.
Name of package(s) for nagios-plugins.
String to pass to ensure attribute for the nagios plugins package.
Path to admin file for nagios-plugins package.
Source to nagios-plugins package.
Path to nrpe.cfg file.
Owner of nrpe.cfg file.
Group of nrpe.cfg file.
Mode of nrpe.cfg file.
Directory in which nrpe plugins are stored.
The syslog facility that should be used for logging purposes.
File in which the NRPE daemon should write it's process ID number. To disable the use of the pid_file parameter, specify the value as 'absent'.
Integer port number for nrpe between 0 and 65535, inclusive.
Boolean to include server_address in nrpe.cfg.
Address that nrpe should bind to in case there are more than one interface and you do not want nrpe to bind on all interfaces.
This determines the effective user that the NRPE daemon should run as.
This determines the effective group that the NRPE daemon should run as.
Array of IP address or hostnames that are allowed to talk to the NRPE daemon.
This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed. 0=do not allow arguments, 1=allow command arguments.
Determines whether or not the NRPE daemon will allow clients to specify arguments that contain bash command substitutions. 0=do not allow, 1=allow. Allowing is a HIGH SECURITY RISK.
Boolean to include command_prefix in nrpe.cfg.
Prefix all commands with a user-defined string. Must be a fully qualified path.
If debugging messages are logged to the syslog facility. Values: 0=debugging off, 1=debugging on
Maximum number of seconds that the NRPE daemon will allow plugins to finish executing before killing them off.
Maximum number of seconds that the NRPE daemon will wait for a connection to be established before exiting.
Allows SSL even if your system does not have a /dev/random or /dev/urandom. Values: 0=only seed from /dev/[u]random, 1=also seed from weak randomness
Include definitions from config files (with a .cfg extension) recursively from specified directory.
Value of ensure parameter for nrpe service. Valid values are 'running' and 'stopped'.
Value of name parameter for nrpe service.
Boolean value of enable parameter for nrpe service.
Boolean to control merges of all found instances of nrpe::plugins in Hiera. This is useful for specifying file resources at different levels of the hierarchy and having them all included in the catalog.
This will default to 'true' in future versions.
Hash of plugins to be passed to nrpe::plugin with create_resources().
Boolean to purge the nrpe.d directory of entries not managed by Puppet.
===
nrpe::plugin
Creates a fragment in the sudoers.d directory with $name.cfg
. Each matches the following layout, where $args
are optional.
You can optionally specify a hash of nrpe plugins in Hiera.
Ensure the plugin exists. Valid values are present
and absent
.
Arguments to pass to the plugin.
Directory in which nrpe plugin is stored.
Prefix an individual plugin command with a user-defined string. Must be a fully qualified path. Set to USE_DEFAULTS
to use the value from $nrpe::command_prefix
(defaults to /usr/bin/sudo
).
Please be careful when enabling $nrpe::command_prefix_enable
and also setting nrpe::plugin::command_prefix
.
Name of the plugin to be executed.