This commit is contained in:
cutemeli
2025-12-22 10:35:30 +00:00
parent 0bfc6c8425
commit 5ce7ca2c5d
38927 changed files with 0 additions and 4594700 deletions

View File

@@ -1,42 +0,0 @@
# Copyright 1999-2024. WebPros International GmbH. All rights reserved.
set daemon <poll_interval>
set logfile /var/log/plesk/modules/monit.log
set statefile /run/monit.state
set httpd port <monit_tcp_port> and use address 127.0.0.1
allow 127.0.0.1
allow <monit_login>:<monit_password>
set mmonit https://<monit_login>:<monit_password>@127.0.0.1:<wdcollect_port>/
# Plesk apache
check process plesk_apache
with pidfile "/run/sw-cp-server.pid"
start = "<plesk_apache_start>"
stop = "<plesk_apache_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 <plesk_apache_connection_timeout> seconds then restart
if <plesk_apache_timeout_restarts> restarts within <plesk_apache_timeout_cycles> cycles then timeout
every <plesk_apache_cycles> cycles
mode <plesk_apache_mode>
# sw-engine
check process sw_engine
with pidfile "/run/sw-engine.pid"
start = "<sw_engine_start>"
stop = "<sw_engine_stop>"
if failed unixsocket /run/sw-engine.sock with timeout <sw_engine_connection_timeout> seconds then restart
if <sw_engine_timeout_restarts> restarts within <sw_engine_timeout_cycles> cycles then timeout
every <sw_engine_cycles> cycles
mode <sw_engine_mode>
# Apache
check process apache
with pidfile "/run/apache2/apache2.pid"
start = "<apache_start>"
stop = "<apache_stop>"
if failed host <apache_monitoring_ip> port <apache_port> send "GET / HTTP/1.1\r\nHost: <apache_monitoring_host>\r\n\r\n" expect "HTTP/1\.[01x] [1-4][0-9]{2} .*\r\n" with timeout <apache_connection_timeout> seconds then restart
if <apache_timeout_restarts> restarts within <apache_timeout_cycles> cycles then timeout
every <apache_cycles> cycles
mode <apache_mode>

View File

@@ -1,42 +0,0 @@
# Copyright 1999-2024. WebPros International GmbH. All rights reserved.
set daemon <poll_interval>
set logfile /var/log/plesk/modules/monit.log
set statefile <plesk_dir>/var/modules/watchdog/run/monit.state
set httpd port <monit_tcp_port> and use address 127.0.0.1
allow 127.0.0.1
allow <monit_login>:<monit_password>
set mmonit https://<monit_login>:<monit_password>@127.0.0.1:<wdcollect_port>/
# Plesk apache
check process plesk_apache
with pidfile "/run/sw-cp-server.pid"
start = "<plesk_apache_start>"
stop = "<plesk_apache_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 <plesk_apache_connection_timeout> seconds then restart
if <plesk_apache_timeout_restarts> restarts within <plesk_apache_timeout_cycles> cycles then timeout
every <plesk_apache_cycles> cycles
mode <plesk_apache_mode>
# sw-engine
check process sw_engine
with pidfile "/run/sw-engine.pid"
start = "<sw_engine_start>"
stop = "<sw_engine_stop>"
if failed unixsocket /run/sw-engine.sock with timeout <sw_engine_connection_timeout> seconds then restart
if <sw_engine_timeout_restarts> restarts within <sw_engine_timeout_cycles> cycles then timeout
every <sw_engine_cycles> cycles
mode <sw_engine_mode>
# Apache
check process apache
with pidfile "/run/apache2/apache2.pid"
start = "<apache_start>"
stop = "<apache_stop>"
if failed host <apache_monitoring_ip> port <apache_port> send "GET / HTTP/1.1\r\nHost: <apache_monitoring_host>\r\n\r\n" expect "HTTP/1\.[01x] [1-4][0-9]{2} .*\r\n" with timeout <apache_connection_timeout> seconds then restart
if <apache_timeout_restarts> restarts within <apache_timeout_cycles> cycles then timeout
every <apache_cycles> cycles
mode <apache_mode>

View File

@@ -1,10 +0,0 @@
### Copyright 1999-2025. WebPros International GmbH. All rights reserved.
check process dovecot with pidfile /run/dovecot/master.pid
start program = "<dovecot_start>"
stop program = "<dovecot_stop>"
if failed port 143 protocol imap with timeout <dovecot_connection_timeout> seconds then restart
if failed port 993 type tcpssl protocol imap with timeout <dovecot_connection_timeout> seconds then restart
if failed port 110 protocol pop with timeout <dovecot_connection_timeout> seconds then restart
if failed port 995 type tcpssl protocol pop with timeout <dovecot_connection_timeout> seconds then restart
every <dovecot_cycles> cycles
mode <dovecot_mode>

View File

@@ -1,10 +0,0 @@
### Copyright 1999-2025. WebPros International GmbH. All rights reserved.
# Local MySQL
check process mysql
with pidfile "<mysql_pid>"
start = "<mysql_start>"
stop = "<mysql_stop>"
if failed unixsocket "/run/mysqld/mysqld.sock" with timeout <mysql_connection_timeout> seconds then restart
if <mysql_timeout_restarts> restarts within <mysql_timeout_cycles> cycles then timeout
every <mysql_cycles> cycles
mode <mysql_mode>

View File

@@ -1,17 +0,0 @@
### Copyright 1999-2025. WebPros International GmbH. All rights reserved.
# Postfix
check process postfix with pidfile /var/spool/postfix/pid/master.pid
start = "<postfix_start>"
stop = "<postfix_stop>"
if <postfix_timeout_restarts> restarts within <postfix_timeout_cycles> cycles then timeout
every <postfix_cycles> cycles
mode <postfix_mode>
# Postfix milter filter (pc-remote)
check host pc_remote with address 127.0.0.1
start = "<pc_remote_start>"
stop = "<pc_remote_stop>"
if failed port 12768 type tcp with timeout <pc_remote_connection_timeout> seconds then restart
if <pc_remote_timeout_restarts> restarts within <pc_remote_timeout_cycles> cycles then timeout
every <pc_remote_cycles> cycles
mode <pc_remote_mode>

View File

@@ -1,10 +0,0 @@
### Copyright 1999-2025. WebPros International GmbH. All rights reserved.
# SpamAssassin
check process psa_spamassassin
with pidfile "/run/spamd.pid"
start = "<psa_spamassassin_start>"
stop = "<psa_spamassassin_stop>"
if failed host localhost port 783 <spamassassin_protocol_check> with timeout <psa_spamassassin_connection_timeout> seconds then restart
if <psa_spamassassin_timeout_restarts> restarts within <psa_spamassassin_timeout_cycles> cycles then timeout
every <psa_spamassassin_cycles> cycles
mode <psa_spamassassin_mode>