Skip to content
koboltmarky edited this page Aug 28, 2014 · 6 revisions

Welcome to the check_mesos wiki!

Config snippets for icinga2 configuraton files. Define a mem,cpu and disk check for a mesos cluster. In the example the check is assigned to localhost.

checks.conf

object CheckCommand "check_mesos" {
import "plugin-check-command"
command = [ PluginDir + "/check_mesos.pl" ]
arguments = {
"-w" = "$percent_wfree$"
"-c" = "$critical_cfree$"
"-C" = "$use_check$"
}

vars.percent_wfree = 20
vars.percent_cfree = 10
}

services.conf

apply Service "check_mesos_mem" {
import "generic-service"

check_command = "check_mesos"
vars.sla = "24x7"
vars.use_check = "mem"

assign where host.vars.mesos == "Master"
ignore where host.address6 == ""
}

apply Service "check_mesos_cpu" {
import "generic-service"

check_command = "check_mesos"
vars.sla = "24x7"
vars.use_check = "cpus"

assign where host.vars.mesos == "Master"
ignore where host.address6 == "" 
}  

apply Service "check_mesos_disk" {
import "generic-service"

check_command = "check_mesos"
vars.sla = "24x7"
vars.use_check = "disk"

assign where host.vars.mesos == "Master"
ignore where host.address6 == ""
}

localhost.conf

object Host "localhost" {
import "generic-host"

address = "127.0.0.1"
address6 = "::1"

vars.mesos = "Master"
vars.os = "Linux"
vars.sla = "24x7"
}

Clone this wiki locally