내가 ContextBroker의 새 버전을 설치 존재하지 않는 내가 설치 한 다음 1026/버전pidfile '/var/log/contextBroker/contextBroker.pid가'
{
"orion" :
{
"version" : "1.2.1",
"uptime" : "0 d, 0 h, 7 m, 58 s",
"git_hash" : "af44fd1fbdbbfd28d79ef4f929e871e515b5452e",
"compile_time" : "Thu Jun 16 15:46:51 CEST 2016",
"compiled_by" : "fermin",
"compiled_in" : "centollo"
}
}
을 watchdog 및
error : 'contextBroker' failed to start (exit status 1) -- /etc/init.d/contextBroker: Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=19.5 kB]
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist
감시의 작동을 방지 : 파일 /var/log/contextBroker/monitBROKER.log 확인, 나는 다음과 같은 오류가 발생합니다.
수정 방법을 알려주세요.
EDIT 1
이것은합니다 (PID 파일이 만들어 굵은 폴더에) 명령 실행 contextBroker :
는/usr/빈은/contextBroker가 -port 1026 -logDir는/var/log/contextBroker -pidpath는 /var/run/contextBroker/contextBroker.pid -dbhost 로컬 호스트 -db 오리온 -multiservice 나는 그것이해야 PID 파일을 생성하기 위해 수정할 수있는 방법
?
또는 해당 폴더를 가리 키도록 워치 독 구성을 수정해야합니까?
편집 2
내가 fgalan로 표시되는 단계에 따라/contextBroker/
를 실행 폴더의/var /를 가리 키도록 monitBROKER.conf 파일을 수정 감시의 구성을 수정, 내가 만든 " 전체 재설정 ".
info : Starting Monit 5.14 daemon
info : 'ServidorCaptura.guest.domain' Monit 5.14 started
debug : Socket test failed for [::1]:1026 -- Connection refused
debug : Socket test failed for [127.0.0.1]:1026 -- Connection refused
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- Connection refused
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=464 B]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... [ OK ]
debug : 'contextBroker' started
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=1.9 kB]
info : 'contextBroker' process is running with pid 1493
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=3.3 MB]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=3.1 kB]
debug : 'contextBroker' process is running with pid 1493
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=3.8 MB]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=4.3 kB]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' failed to start (exit status 1) -- /etc/init.d/contextBroker: Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=9.0 kB]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
...
또는 먼저 컨텍스트 브로커를 시작하는 경우 : 시작 /etc/init.d/contextBroker는 PID 파일이 생성됩니다 스크립트 감시를 실행하고 자신의 로그를 관찰 처음에 경우
후자의 로그를 관찰 폴더는/var/실행/contextBroker/후 실행 스크립트 감시 및 : 나는 "전체 재설정을"할 게 좋을 것
debug : pidfile '/var/log/contextBroker/monit.pid' does not exist
info : Starting Monit 5.14 daemon
info : 'ServidorCaptura.guest.domain' Monit 5.14 started
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=664 B]
debug : 'contextBroker' process is running with pid 2299
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=5.3 MB]
debug : 'contextBroker' cpu usage check skipped (initializing)
debug : 'contextBroker' cpu usage check skipped (initializing)
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=1.7 kB]
debug : 'contextBroker' process is running with pid 2299
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=5.8 MB]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=2.9 kB]
debug : 'contextBroker' process is running with pid 2299
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=5.9 MB]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : Socket test failed for [::1]:1026 -- Connection refused
debug : Socket test failed for [127.0.0.1]:1026 -- Connection refused
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- Connection refused
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=4.0 kB]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... [ OK ]
debug : 'contextBroker' started
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=5.5 kB]
info : 'contextBroker' process is running with pid 2386
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=3.3 MB]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=6.7 kB]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' failed to start (exit status 1) -- /etc/init.d/contextBroker: Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=11.5 kB]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
...
답변에 추가 된 PID 파일 위치를 변경하는 방법에 대한 정보. – fgalan