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"; } }