####Table of Contents
- Overview - What is the nrpe module?
- Module Description - What does the module do?
- Setup - The basics of getting started with nrpe
- Usage - The parameters available for configuration
- Implementation - An under-the-hood peek at what the module is doing
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
- Release Notes - Notes on the most recent updates to the module
Puppet module for managing nrpe and service checks.
Manages nrpe and the extra service for nrpe. It also uses my sudo module to setup sudo rules for the commands that need it.
what nrpe affects:
- the nrpe sericve
- installs standard nagios plugin packages
- /etc/nagios/nrpe.cfg
- /etc/nrpe.d/ and services in that directory
This will manage a basic setup for nrpe.
include nrpe
Defaults for vars to set if you need them. These are class params so use hiera or and ENC to set them up easily.
$nrpe::params::user = 'nrpe'
# user nrpe runs as
$nrpe::params::group = 'nrpe'
# group nrpe will run as
$nrpe::params::nagios_ips
# comma separated list of ip addresses that can talk to this nrpe server
$nrpe::params::command_timeout = 180
# timeout for nrpe checks
$nrpe::params:: firewall = false
# whether to use puppetlabs/firewall to setup the iptables rule
nrpe::plugin { "blah":
ensure => present,
plugin => 'main',
check_command => '',
command_args => '',
sudo => false,
}
This type manages plugins for nrpe.
The name/title of the plugin is the name of the check for check_nrpe
Parameters within nrpe::plugin
Whether the plugin should exist or not (present is the default)
where to find the plugin. main is the standard nagios plugin directory
anything else will use the location defined in the hiera variable monitoring::nagios_extra_plugins
the command to run (args for the command go in command_args
)
This is so I can setup sudo rules for the commands that need it
Arguments for the command.
Whether to run the command as root with sudo
Uses files based on templates to manage the nrpe commands
There may be some. Don't hesitate to let me know if you find any.
All development, testing and releasing is done by me at this stage. If you wish to join in let me know.
1.1.2
fixing packages for Fedora 19
1.1.1
fixing class chaining
1.1.0
Updated to use sudo module for managing sudo rules
1.0.2
switched back to old way of doing class chaining
1.0.1
switching to puppetlabs/firewall new class chaining scheme added monitoring for nrpe using my monitoring module adding fixes to service plays nice on Fedora using systemd
1.0.0
Initial release