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 02:46] – [Installation] 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> | ||
| + | sudo nano / | ||
| + | </ | ||
| + | |||
| + | ''/ | ||
| < | < | ||
| # This file is systemd template for monit service. To | # This file is systemd template for monit service. To | ||
| Line 36: | 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 54: | Line 59: | ||
| ===== Konfiguration ===== | ===== Konfiguration ===== | ||
| - | '' | + | Monit Config File bearbeiten: |
| + | <code bash> | ||
| + | sudo nano /etc/monit/monitrc | ||
| + | </ | ||
| + | |||
| + | ''/ | ||
| < | < | ||
| # reporting to mmonit | # reporting to mmonit | ||
| Line 64: | Line 74: | ||
| allow localhost | allow localhost | ||
| allow admin: | allow admin: | ||
| + | </ | ||
| + | |||
| + | give the appropriate permissions | ||
| + | < | ||
| + | sudo chmod 600 / | ||
| </ | </ | ||
linux/monit.1679535990.txt.gz · Last modified: (external edit)