0
Icinga2 마스터 노드에서 check_load 플러그인의 임계 값을 변경할 위치를 찾는 데 문제가 있습니다.마스터 노드의 Icinga2 check_load 임계 값
Icinga2 마스터 노드에서 check_load 플러그인의 임계 값을 변경할 위치를 찾는 데 문제가 있습니다.마스터 노드의 Icinga2 check_load 임계 값
가장 좋은 방법은 conf.d 디렉토리의 commands.conf 파일에 다음을 추가하여이 명령을 다시 정의하는 것입니다. 추가 다음과 같은 명령 호출 할 무엇 이건 <load>
교체 :
object CheckCommand "<load>" {
import "plugin-check-command"
command = [ PluginDir + "/check_load" ]
timeout = 1m
arguments += {
"-c" = {
description = "Exit with CRITICAL status if load average exceed CLOADn; the load average format is the same used by 'uptime' and 'w'"
value = "$load_cload1$,$load_cload5$,$load_cload15$"
}
"-r" = {
description = "Divide the load averages by the number of CPUs (when possible)"
set_if = "$load_percpu$"
}
"-w" = {
description = "Exit with WARNING status if load average exceeds WLOADn"
value = "$load_wload1$,$load_wload5$,$load_wload15$"
}
}
vars.load_cload1 = 10
vars.load_cload15 = 4
vars.load_cload5 = 6
vars.load_percpu = false
vars.load_wload1 = 5
vars.load_wload15 = 3
vars.load_wload5 = 4
}
변경할 수 있습니다 값은 vars.load_cload1-15 있습니다
및 vars.wload1-15하거나 사용자가 설정할 수있는 varibles로 설정 서비스 정의에서 $variablename$
.
그런 다음 services.conf에서 check 명령의 새 이름을 사용하십시오.