#ATTENTION! # #DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY, #SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED. # Copyright 1999-2024. WebPros International GmbH. All rights reserved. set daemon 300 set logfile /var/log/plesk/modules/monit.log set statefile /run/monit.state set httpd port 2911 and use address 127.0.0.1 allow 127.0.0.1 allow monit:f3d327caff89327c844fdf6406121ee9 set mmonit https://monit:f3d327caff89327c844fdf6406121ee9@127.0.0.1:2912/ # Plesk apache check process plesk_apache with pidfile "/run/sw-cp-server.pid" start = "/bin/systemctl start sw-cp-server.service" stop = "/bin/systemctl stop sw-cp-server.service" if failed host localhost port 8443 type tcpssl send "GET /favicon.ico HTTP/1.1\r\n\r\n" expect "HTTP/1\.[01x] [1-4][0-9]{2} .*\r\n" with timeout 5 seconds then restart if 5 restarts within 5 cycles then timeout every 1 cycles mode manual # sw-engine check process sw_engine with pidfile "/run/sw-engine.pid" start = "/opt/psa/admin/sbin/pleskrc sw-engine start" stop = "/opt/psa/admin/sbin/pleskrc sw-engine stop" if failed unixsocket /run/sw-engine.sock with timeout 5 seconds then restart if 5 restarts within 5 cycles then timeout every 1 cycles mode manual # Apache check process apache with pidfile "/run/apache2/apache2.pid" start = "/opt/psa/admin/bin/websrvmng --start" stop = "/opt/psa/admin/bin/websrvmng --stop" if failed host 127.0.0.1 port 80 send "GET / HTTP/1.1\r\nHost: plesk-service.localdomain\r\n\r\n" expect "HTTP/1\.[01x] [1-4][0-9]{2} .*\r\n" with timeout 5 seconds then restart if 5 restarts within 5 cycles then timeout every 1 cycles mode manual INCLUDE "/opt/psa/var/modules/watchdog/etc/service.d/*"