monit:instalacao
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anteriorRevisão anteriorPróxima revisão | Revisão anterior | ||
monit:instalacao [2021/10/17 18:56] – asadelta | monit:instalacao [2021/10/17 19:34] (atual) – asadelta | ||
---|---|---|---|
Linha 42: | Linha 42: | ||
</ | </ | ||
+ | < | ||
set daemon 60 # check services at 2-minute intervals | set daemon 60 # check services at 2-minute intervals | ||
+ | </ | ||
< | < | ||
- | # set httpd port 2812 and | + | check process apache with pidfile / |
+ | start program = " | ||
+ | stop program | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | < | ||
+ | set httpd port 2832 and | ||
# use address localhost | # use address localhost | ||
- | # allow localhost | + | |
- | # allow admin:monit # require user ' | + | allow " |
- | # #with ssl { # enable SSL/TLS and set path to server certificate | + | |
- | # # | + | |
- | # #} | + | |
</ | </ | ||
Linha 59: | Linha 66: | ||
</ | </ | ||
+ | < | ||
+ | # cd / | ||
+ | </ | ||
+ | |||
+ | ==== MariDB ==== | ||
< | < | ||
- | set httpd port 2832 and | + | check process mysqld with pidfile |
- | # use address localhost | + | start program = "systemctl start mariadb start" |
- | allow 0.0.0.0/0.0.0.0 # allow localhost to connect to the server and | + | stop program = "systemctl stop mariadb" |
- | | + | if failed unixsocket / |
+ | </ | ||
+ | ==== Verificar / ==== | ||
+ | |||
+ | < | ||
+ | check filesystem rootfs with path / | ||
+ | if space usage > 90% then alert | ||
+ | </ | ||
+ | |||
+ | ==== sshd ==== | ||
+ | |||
+ | < | ||
+ | check process sshd with pidfile / | ||
+ | start program | ||
+ | stop program = " | ||
+ | if failed port 2228 protocol ssh then restart | ||
</ | </ | ||
monit/instalacao.1634507762.txt.gz · Última modificação: 2021/10/17 18:56 por asadelta