Puppet Class: nagios::client::checks
- Defined in:
- manifests/client/checks.pp
Overview
Some standard checks that should be safe on every host Plugins must be provided on every supported OS for these!
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'manifests/client/checks.pp', line 3
class nagios::client::checks (
$nrpe = false,
) {
# Ping
nagios::service { 'check_ping':
service_description => 'Ping',
plugin_source => 'nagios-plugins-ping',
command_definition => 'check_ping -H $HOSTADDRESS$ -w 100,10% -c 1000,50% -p 5',
}
# NRPE
if ($nrpe) {
nagios::service { 'check_nrpe_status':
service_description => 'NRPE',
plugin_source => 'nagios-plugins-nrpe',
command_definition => 'check_nrpe -H $HOSTADDRESS$',
}
}
}
|