linux:monit
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:monit [2023/03/23 03:06] – [Monit als Dienst einrichten] admin | linux:monit [2024/02/17 19:03] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
==== Monit als Dienst einrichten ==== | ==== Monit als Dienst einrichten ==== | ||
+ | Unit File erstellen: | ||
<code bash> | <code bash> | ||
sudo nano / | sudo nano / | ||
</ | </ | ||
+ | ''/ | ||
< | < | ||
# This file is systemd template for monit service. To | # This file is systemd template for monit service. To | ||
Line 39: | Line 41: | ||
Type=simple | Type=simple | ||
KillMode=process | KillMode=process | ||
- | ExecStart=/usr/local/bin/monit -I | + | ExecStart=/ |
- | ExecStop=/usr/local/bin/monit quit | + | ExecStop=/ |
- | ExecReload=/usr/local/bin/monit reload | + | ExecReload=/ |
Restart = on-abnormal | Restart = on-abnormal | ||
StandardOutput=null | StandardOutput=null | ||
Line 57: | Line 59: | ||
===== Konfiguration ===== | ===== Konfiguration ===== | ||
- | '' | + | Monit Config File bearbeiten: |
+ | <code bash> | ||
+ | sudo nano /etc/monit/monitrc | ||
+ | </ | ||
+ | |||
+ | ''/ | ||
< | < | ||
# reporting to mmonit | # reporting to mmonit | ||
Line 67: | Line 74: | ||
allow localhost | allow localhost | ||
allow admin: | allow admin: | ||
+ | </ | ||
+ | |||
+ | give the appropriate permissions | ||
+ | < | ||
+ | sudo chmod 600 / | ||
</ | </ | ||
linux/monit.1679537218.txt.gz · Last modified: 2024/02/17 19:03 (external edit)