IF FAILED (url and content = 'test content' and timeout 20 seconds) Therefore, I would apprechiate some advice very much.Īfter spending some mot time with the monit man page (it's much better structured than the online manual, in my opinion), I found this optimization: CHECK HOST webserver WITH ADDRESS 127.0.0.1 I tried to find the answers from the official monit reference, but obviously, I do not understand the possibilities as decribed in that source. Is there any way to run one request per cycle and perform different activities after a different number of fails? ![]() To do different actions after 1 fail, 2 fails, and 4 fails, I need three if failed conditions, resulting in three server requests.Can I use any other check instead of check process? Actually, I do not want to monitor the nginx process here, but the ports/URLs.That's not entirely wrong, but some questions remain: If failed (url and content = 'test string' and timeout 20 seconds) Here's my monit configuration file (in conf.d): check process webserver with pidfile /var/run/nginx.pid To do so, I create two bash scripts /etc/monit/ and /etc/monit/. ![]() I am not so much interested in the cause of a current problem, but want to restart both processes. When something happens, the both processes (ad their threads) usually exist and need a restart. ![]() Of course, I never know, if nginx may crash as well, some day. If some trouble occurs, usually php5-fpm hung up, resulting in a "bad gateway" server error.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |