저는 monit을 사용하여 두 개의 사용자 정의 레일 데몬을 모니터합니다. 그들은 나무 딸기 파이 (거기 놀람 없음)에 천천히 구두를 신 긴다. 그러나 monit 요약 명령은 waiting
과 execution failed
사이에서 끊임없이 번갈아 나타납니다. 로그에는 데몬이 실행 중임을 나타내지 만 경고 전자 메일도 마찬가지입니다. 데몬이 계속 다시 시작되지 않습니다. MONIT 데몬 사이클 시간은 60 초입니다 monit 상태가 자체 현실을 반영하지 않습니다.
check process setpoint_manager with pidfile /opt/thermyos.com/server/current/tmp/pids/setpoint_manager.pid every 2 cycles
start program = "/etc/init.d/setpoint_manager start" as uid thermyos and gid thermyos
stop program = "/etc/init.d/setpoint_manager stop"
if 5 restarts within 5 cycles then timeout
처럼
내 MONIT 설정 파일 보인다. 로그 파일은
[EDT Aug 30 17:38:35] info : 'setpoint_manager' process is running with pid 2984
보여줍니다 그리고 MONIT 이메일은
Exists Service setpoint_manager
Date: Fri, 30 Aug 2013 17:38:35
Action: alert
Host: thermdev
Description: process is running with pid 2984
내가 확인한 말한다 pid를 파일과 ps ax
일치합니다. monit을 통해 데몬을 다시 시작하면 상태가 올바르게됩니다.
왜 monit 상태가 스스로 정정되지 않습니까?