# Copyright 1999-2024. WebPros International GmbH. All rights reserved. set daemon set logfile /var/log/plesk/modules/monit.log set statefile /run/monit.state set httpd port and use address 127.0.0.1 allow 127.0.0.1 allow : set mmonit https://:@127.0.0.1:/ # Plesk apache check process plesk_apache with pidfile "/run/sw-cp-server.pid" start = "" stop = "" 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 seconds then restart if restarts within cycles then timeout every cycles mode # sw-engine check process sw_engine with pidfile "/run/sw-engine.pid" start = "" stop = "" if failed unixsocket /run/sw-engine.sock with timeout seconds then restart if restarts within cycles then timeout every cycles mode # Apache check process apache with pidfile "/run/apache2/apache2.pid" start = "" stop = "" if failed host port send "GET / HTTP/1.1\r\nHost: \r\n\r\n" expect "HTTP/1\.[01x] [1-4][0-9]{2} .*\r\n" with timeout seconds then restart if restarts within cycles then timeout every cycles mode