Skip to content

Instantly share code, notes, and snippets.

@greggyNapalm
Created January 12, 2015 11:37
Show Gist options
  • Save greggyNapalm/2fc883ed8647724220b9 to your computer and use it in GitHub Desktop.
Save greggyNapalm/2fc883ed8647724220b9 to your computer and use it in GitHub Desktop.
object Host "pkg7.xxx" {
import "generic-host"
address = "192.168.1.1"
vars.os = "Linux"
vars.os_family = "Centos"
vars.operator = "on_call"
vars.sla = "24x7"
object Service "load_average" {
//host_name = "pkg7.xxx"
//host_name = "pkg7.xxx"
host_name = "$host.name$"
//host_name = "$host$"
check_command = "check_nrpe"
vars.remote_nrpe_command = "check_load"
}
}
@tobiasvdk
Copy link

object Host "pkg7.xxx" {
import "generic-host"
address = "192.168.1.1"
vars.os = "Linux"
vars.os_family = "Centos"

vars.operator = "on_call"
vars.sla = "24x7"
}

object Service "load_average" {
host_name = "pkg7.xxx"
check_command = "check_nrpe"
vars.remote_nrpe_command = "check_load"
}

apply Service "load_average" {
check_command = "check_nrpe"
vars.remote_nrpe_command = "check_load"

assign where host.vars.os == "Linux"

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment