|
From: | Ajay Agrawal |
Subject: | [monit] Nginx + monit: Connection failed nginx |
Date: | Mon, 4 Jan 2010 15:26:03 +0530 |
I'm having trouble getting monit to work properly with nginx.
From past few days monit is e-mails me the following error even though nginx is running and is accepting connections:
Subject of the mail: monit
alert -- Connection failed nginx Body: Connection failed Service
nginx Date:
Mon, 04 Jan 2010 07:20:50 +0000 Action:
alert Host:
www.mydomain.com Description:
'nginx' failed protocol test [HTTP] at INET[www.mydomain.com:80] via TCP
The relevant stanza in my monit.conf file is:
check process nginx with pidfile /usr/local/nginx/logs/nginx.pid if failed host www.mydomain.com port 80 protocol http and request "/" then alert if cpu is greater than 60% for 2 cycles then alert if cpu > 90% for 5 cycles then alert if children > 50 then alert if loadavg(5min) greater than 10 for 8 cycles then alert
I have seen the similar reports from other members but not able to fix it.
I am using monit version 4.10.1
Thanks, Ajay
|
[Prev in Thread] | Current Thread | [Next in Thread] |