Skip to content

Instantly share code, notes, and snippets.

@greggyNapalm
Created January 12, 2015 09:14
Show Gist options
  • Save greggyNapalm/998285211113fdf62486 to your computer and use it in GitHub Desktop.
Save greggyNapalm/998285211113fdf62486 to your computer and use it in GitHub Desktop.
object Host "pkg7.xxx" {
import "generic-host"
address = "192.168.5.2"
vars.os = "Linux"
vars.os_family = "Centos"
//check_command = "http"
vars.operator = "on_call"
vars.sla = "24x7"
vars.http_vhosts["http_pulp_pkg"] = {
http_uri = "http://pkg7.xxx/pulp/repos/rhel/6/x86_64/"
}
object Service "load_average" {
host_name = "pkg7.xxx"
check_command = "check_nrpe"
vars.remote_nrpe_command = "check_load"
}
object Service "disk_usage" {
host_name = "pkg7.xxx"
check_command = "check_nrpe"
vars.remote_nrpe_command = "check_disk"
}
object Service "mongo_connect" {
host_name = "pkg7.xxx"
check_command = "check_nrpe"
vars.remote_nrpe_command = "mongo_connect"
}
object Service "pulp_workers" {
host_name = "pkg7.xxx"
check_command = "check_nrpe"
vars.remote_nrpe_command = "celery_pulp_workers"
}
object Service "http_pulp_api" {
host_name = "pkg7.xxx"
check_command = "check_http"
vars = {
http_vhost = "pkg7.xxx"
http_uri = "https://pkg7.xxx/pulp/api/v2/actions/login/"
http_auth_pair = "admin:yyy"
http_ssl = "1"
http_method = "POST"
}
}
object Service "ntp_time" {
host_name = "pkg7.xxx"
check_command = "check_ntp_time"
vars.ntp_host = "1.centos.pool.ntp.org"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment