summaryrefslogtreecommitdiff
path: root/manifests/service/ping.pp
blob: c705c683c217ca49352761b8c6db0f589669d2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
define nagios::service::ping(
    $ensure = present
){
    $real_nagios_ping_rate = $nagios_ping_rate ? {
        '' => '!100.0,20%!500.0,60%',
        default => $nagios_ping_rate
    }

    nagios::service{ "check_ping":
        ensure => $ensure,
        check_command => "check_ping${real_nagios_ping_rate}",
    }
}