Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Puppet Module to manage installing and configuring NRPE
Puppet Ruby
branch: plugin

This branch is 4 commits ahead, 36 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
manifests
templates
README

README

Puppet class to manage NRPE.

Examples:
node node.domain.tld {
    # install and configure NRPE
    class { 'nrpe': }

    # accept connections from localhost and 10.13.37.1
    nrpe::config { 'nrpe.cfg':
        allowed_hosts => '127.0.0.1,10.13.37.1,
    }

    # add our base checks
    case $architecture {
        'x86_64': { $libdir='/usr/lib64/nagios/plugins' }
        default:  { $libdir='/usr/lib/nagios/plugins' }
    }

    nrpe::command {
        'check_users': cmd => "${libdir}/check_users -w 5 -c 10";
        'check_load':  cmd => "${libdir}/check_load -w 15,10,5 -c 30,25,20";
        'check_disks': cmd => "${libdir}/check_disk -w 20% -c 10%";
        'check_zombie_procs': cmd => "${libdir}/check_procs -w 5 -c 10 -s Z";
        'check_total_procs':  cmd => "${libdir}/check_procs -w 150 -c 250";
    }
}
Something went wrong with that request. Please try again.