Skip to content

Instantly share code, notes, and snippets.

@stack72
Created November 7, 2014 12:23
Show Gist options
  • Save stack72/95e069f753c62d7a81cc to your computer and use it in GitHub Desktop.
Save stack72/95e069f753c62d7a81cc to your computer and use it in GitHub Desktop.
@@nagios_host { $fqdn:
ensure => present,
alias => $hostname,
address => $ipaddress,
use => "generic-host",
}
@@nagios_service { "check_ping_${hostname}":
check_command => "check_ping!100.0,20%!500.0,60%",
use => "generic-service",
host_name => "$fqdn",
notification_period => "24x7",
service_description => "${hostname}_check_ping"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment