Control Web Panel

WebPanel => Apache => Nginx => Topic started by: luis web on May 02, 2020, 08:28:04 PM

Title: Nginx works well Apparently But it has a "Monitoring via Monit" error
Post by: luis web on May 02, 2020, 08:28:04 PM
Thanks to everyone in the forum for helping

Linux 7 | CWPpro version: 0.9.8.967
Nginx works well Apparently But it has a "Monitoring via Monit" error "Services list"



(https://1.bp.blogspot.com/-EEf7teso4-c/Xq3UjVf-XNI/AAAAAAAAB-k/K-DfbaA6pVMAgbdM8SfovzOcrKCln3cvACK4BGAsYHg/w640-h294/hhh.png)

What should I do to resolve the error ?. already restarted but back to the error! :-\

thank you
Title: Re: Nginx works well Apparently But it has a "Monitoring via Monit" error
Post by: rcschaff on May 03, 2020, 02:12:35 AM
What happens when you click the "Monitor" button on that line?
Title: Re: Nginx works well Apparently But it has a "Monitoring via Monit" error
Post by: luis web on May 04, 2020, 04:04:20 AM
What happens when you click the "Monitor" button on that line?


reconnect and return error ... I don't know if it causes a problem in Nginx .. in the reports email I don't receive anything

I don't know what to do with this error. in Nginx log there's nothing

thanks again.
Title: Re: Nginx works well Apparently But it has a "Monitoring via Monit" error
Post by: rcschaff on May 04, 2020, 05:39:56 AM
Check out this link. https://www.itzgeek.com/how-tos/linux/centos-how-tos/monitor-and-manage-services-with-monit-on-centos-7-rhel-7.html (https://www.itzgeek.com/how-tos/linux/centos-how-tos/monitor-and-manage-services-with-monit-on-centos-7-rhel-7.html).  Make sure nginx is properly configure in /etc/monit.d
Title: Re: Nginx works well Apparently But it has a "Monitoring via Monit" error
Post by: studio4host on May 04, 2020, 07:51:18 AM
Code: [Select]
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 80 protocol http then restart
if 4 restarts within 8 cycles then timeout
Title: Re: Nginx works well Apparently But it has a "Monitoring via Monit" error
Post by: rcschaff on May 05, 2020, 03:17:23 AM
Did you try checking the webservice for monit to see if maybe cwp's just not reporting it correctly.  Cause that seems to be correct.