Closed huynq2007 closed 4 years ago
I think this was an errant addition as I do not have it locally. I will remove.
If you can confirm this fixes your issue I will close. Thanks
conf/html/monit/check_nginx
does have that check but conf/php/monit/check_nginx
doesn't
Therefore the issue only happened when we running in html
config
I remove that line and the issue is fixed.
Describe the bug When you run with the
html
config. monit will runconf/html/monit/check_nginx
script to check upstream proxy port. Since the proxy is local to the container but monit run the check withNGINX_SERVER_NAME
address. There is possibility that it will be failed.To Reproduce
conf/html/monit/check_nginx
if failed port 8080 for 3 cycles then exec "/usr/bin/env bash -c '/usr/sbin/nginx -s stop'"
(line 36)Expected behavior remove this line as it is supposed that 8080 port will always be locally opened. Therefore, not necessary to check this port.
Screenshots The monit web interface show 8080 port check will always be failed.