hello, good year, to everyone on the forum.
I ask for help to those who know ..
I have a problem "Monitoring via Monit" -> nginx
error -> Process - nginx Not monitored.
do restart all, stay the same, with error.
I do relaod all, stay the same, with error.
################ my email ################
monit alert -- Connection failed nginx
Caixa de entrada
monit@servi.jonyhost.eu
05:38 (há 8 horas)
para mim
Connection failed Service nginx
Date: Sat, 09 Jan 2021 06:38:09
Action: restart
Host: hostname server
Description: failed protocol test [HTTP] at [localhost]:80 [TCP/IP] -- Connection refused
Your faithful employee, Monit
############ [root@hostname ~ ] Server VPS Centos 7 ##############
[root@hostname ~]# systemctl status nginx
● nginx.service - nginx - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2021-01-09 06:53:12 CET; 7h ago
Docs:
http://nginx.org/en/docs/ Process: 24278 ExecStop=/bin/sh -c /bin/kill -s TERM $(/bin/cat /var/run/nginx.pid) (code=exited, status=0/SUCCESS)
Process: 24284 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 24285 (nginx)
CGroup: /system.slice/nginx.service
├─24285 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx....
├─24286 nginx: worker process
├─24287 nginx: worker process
├─24288 nginx: worker process
├─24289 nginx: worker process
└─24290 nginx: cache manager process
Jan 09 06:53:12 hostname systemd[1]: Starting nginx - high performa....
Jan 09 06:53:12 hostname systemd[1]: Started nginx - high performan....
Hint: Some lines were ellipsized, use -l to show in full.
################# Monitoring via Monit / Server VPS Centos 7#################
Process - cwp-phpfpm OK Monitored active Monitor
Process - cwpsrv OK Monitored active Monitor
Process - dovecot OK Monitored active Monitor
Process - httpd OK Monitored active Monitor
Process - mysql OK Monitored active Monitor
Process - nginx Not monitored Not monitored active Monitor <<<<<<<<<<<<< ERROR
Process - opendkim OK Monitored active Monitor
Process - php-fpm56 OK Monitored active Monitor
Process - postfix OK Monitored active Monitor
Process - pure-ftpd OK Monitored active Monitor
Process - sshd OK Monitored active Monitor
Program - postfix-queue OK Monitored active Monitor
System - hostname OK Monitored active Monitor
############# Services Status, home CwPanel CWPpro #################
Apache Webserver Active
Nginx Reverse Proxy Active <<<<<--------------- good
FTP Server Active
MySQL Database Server Active
BIND DNS Server Active
SSH Server Active
Crontab Active
thanks to anyone who can help my problem..