나는 사이트를 좋아한다. 답변을 찾는 것이 좋습니다. 고마워.체크가 실패 할 때 URL을 여는 Monit
테스트 서버에서 munin의 기능과 씨름하고 있습니다. lighttpd, mysql, ssh, proftpd, postfix 및 dovecot을 실행합니다.
그 중 하나가 실패하면 '기본'이메일 옆에 문자 메시지를 수신하고 싶습니다. VoipBuster와 함께 사용중인 SMS 게이트웨이가 있습니다. 아래에 명시된 바와 같이 URL을 요청하면 문자 메시지를 받게됩니다. https://www.voipbuster.com/myaccount/sendsms.php?username=xxxxxx&password=xxxxxx&from=xxxxxx&to=xxxxxx&text=xxxxxx
저는 이것을 내 monit 구성에 포함 시키려고했지만, 작동시키지 못했습니다.
다음은 내가 시도한 것입니다. 포함 같이, 모든 검사에서 '다음 실패 할 경우'
check process lighttpd with pidfile /var/run/lighttpd.pid
group lighttpd
start program = "/etc/init.d/lighttpd start"
stop program = "/etc/init.d/lighttpd stop"
if failed host 178.21.118.206 port 80
protocol http then restart
if 5 restarts within 5 cycles then timeout
if failed then (url https://www.voipbuster.com/myaccount/sendsms.php?username=xxxxxx&password=xxxxxx&from=xxxxxx&to=xxxxxx&text=CHECK EMAIL -- SERVER ERRORS!)
그러나 나는 다시 시작하고 때 다음과 같은 오류가 점점 계속.
'if failed then'절을 사용하여 이동하려했지만 문자 그대로이 문제를 해결할 방법을 모르겠습니다.
% 20의 공백을 대체 할 수 있습니까? 예 : ... & text = CHECK % 20EMAIL % 20 - % 20SERVER % 20ERRORS! – chawarong