Webuzo does not have built in monitoring. But you can add monit. Here is an example on centos7
Code yum -y install epel-release; yum -y install monit; systemctl enable monit.service && systemctl start monit.service
cat <<EOF>> /etc/monit.d/webuzo
# nginx webuzo control panel
# /usr/local/emps/var/log/nginx/nginx.pid
# /usr/local/emps/bin/nginxctl
#
# /usr/local/emps/var/php-fpm.pid
# /usr/local/emps/bin/fpmctl
check process webuzo_nginx with pidfile /usr/local/emps/var/log/nginx/nginx.pid
start program = "/usr/local/emps/bin/nginxctl start" with timeout 60 seconds
stop program = "/usr/local/emps/bin/nginxctl stop"
check process webuzo_fpm with pidfile /usr/local/emps/var/php-fpm.pid
start program = "/usr/local/emps/bin/fpmctl start" with timeout 60 seconds
stop program = "/usr/local/emps/bin/fpmctl stop"
EOF
monit reload
monit status
the config file can be expended to other services, like apache 2.4
Code
# apache24
# /usr/local/apps/apache2/logs/httpd.pid
# /usr/local/apps/apache2/bin/apachectl
check process apache with pidfile /usr/local/apps/apache2/logs/httpd.pid
start program = "/usr/local/apps/apache2/bin/apachectl start" with timeout 60 seconds
stop program = "/usr/local/apps/apache2/bin/apachectl stop"
|