나는 Icinga2로 모니터링하고자하는 플렉스와 다른 두 가지 서비스를 실행하는 서버를 가지고 있으며, 내 인생에서 어떻게 작동하는지 알아낼 수 없습니다. 다음 내가 직접 죽일 플렉스 반환icinga2 리눅스 서비스가 실행 중임을 모니터
./check_procs -c 1:1 -a '/usr/lib/plexmediaserver/Plex Media Server'
: 나는 다음과 같은 명령을 실행하면
PROCS CRITICAL: 0 processes with args '/usr/lib/plexmediaserver/Plex Media Server' | procs=0;;1:1;0;
난 그냥 서버에이 검사를 추가하는 방법을 알아낼 수 없습니다를 ... 할 내가 뒀어?
apply Service "procs"
{
import "generic-service"
check_command = "procs"
assign where host.name == NodeName
arguments =
{
"-a" =
{
value = "/usr/lib/plexmediaserver/Plex Media Server"
description = "service name"
required = true
}
}
}
을하지만 에이전트는 전혀 시작되지 것입니다 :
나는 다음과 같이 /etc/icinga2/conf.d/services.conf 다른 선언을 추가했습니다.