Problemléisung vu CWP7 Monitor Iwwerwaachungsfehler: nginx Verbindung beim Iwwerwaachungsfehler feelgeschloen

D'lescht Kéier, wéi de Chen Weiliang d'Monit- Iwwerwaachungssoftware am CWP-Kontrollpanel (CWP7) installéiert huet , huet hien de Problem geléist, datt de Monit-Iwwerwaachungsprozess beim Start verschwonne ass (monit.service failed).
Elo hunn ech en neie Problem - Monit Iwwerwachung Nginx Verbindung gescheitert ...
Wéi léisen ech nginx Connection am Monit gescheitert?
D'Methode fir d'nginx Connection ze léisen ass am Monit Fehlerproblem gescheitert:
Als éischt, SSH an de folgende Kommando ▼
ps -ef|grep nginxFannt d'nginx Konfiguratiounsdatei:
[root@ten ~]# ps -ef|grep nginx root 11550 1 0 02:12 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf nobody 11551 11550 0 02:12 ? 00:00:04 nginx: worker process nobody 11552 11550 0 02:12 ? 00:00:08 nginx: worker process nobody 11553 11550 0 02:12 ? 00:00:02 nginx: worker process nobody 11554 11550 0 02:12 ? 00:00:01 nginx: worker process nobody 11555 11550 0 02:12 ? 00:00:00 nginx: cache manager process root 19827 9820 0 02:37 pts/0 00:00:00 grep --color=auto nginx
Öffnen d'nginx Konfiguratiounsdatei :
/etc/nginx/nginx.conf
Fannt de Wee Standuert vun nginx.pid:
pid /var/run/nginx.pid;
An der Konfiguratiounsdatei vum Monit Iwwerwaachungsprogramm gitt déi folgend Konfiguratioun fir d'Iwwerwaachung nginx▼
check process nginx with pidfile /var/run/nginx.pid
start program "/usr/bin/systemctl start nginx.service"
stop program "/usr/bin/systemctl stop nginx.service"
if failed port 8181 protocol http then restart
if 4 restarts within 8 cycles then timeoutif 4 restarts within 8 cycles then timeoutRestart de Monit Iwwerwaachungsprogramm▼
systemctl restart monit.serviceView Monit Iwwerwachung Programm Status▼
systemctl status monit.serviceWann dëse Schrëtt erreecht ass, erschéngt d'Fehlermeldung nach ëmmer:nginx Connection failed in monit
Probéiert w.e.g. d'Portnummer vun der Iwwerwaachungs-nginx Konfiguratioun op "8181" oder "80" z'änneren:
if failed port 8181 protocol http then restart if failed port 80 protocol http then restart
Da starten de Monit Iwwerwaachungsprogramm▼
systemctl restart monit.serviceView Monit Iwwerwachung Programm Status▼
systemctl status monit.serviceDe Problem vun der nginx Connection gescheitert am Monit ass endlech geléist!
Hoffentlech ass den Artikel "Solving the nginx Connection failed in monit error", deen um Blog vum Chen Weiliang ( https://www.chenweiliang.com/ ) gedeelt gouf, Iech hëllefräich.
Deelt gären de Link vun dësem Artikel: https://www.chenweiliang.com/cwl-1423.html
