class nodo::subsystem::monitor( $TYPE = 'vserver', $use_nagios = hiera('nodo::subsystem::monitor::use_nagios', True), $check_ping = hiera('nodo::subsystem::monitor::check_ping', present), $check_ssh = hiera('nodo::subsystem::monitor::check_ssh', absent), $address = hiera('nodo::subsystem::monitor::address', $::ipaddress), $ping_rate = hiera('nodo::subsystem::monitor::ping_rate', '!100.0,20%!500.0,60%'), $check_command = hiera('nodo::subsystem::monitor::check_command', 'check_ping') ) { if $use_nagios != false { if $type == 'vserver' { include nagios::target::fqdn } if $type == 'host' { class{ 'nagios::target': address => $address, } } nagios::service::ping { "${::fqdn}": ensure => $check_ping, ping_rate => $ping_rate, } nagios::service { "check_ssh4": ensure => $check_ssh, check_command => "check_ssh_4", } } }