====== Monit Installation ====== ==== Quellen ==== * https://packages.debian.org/jessie-backports/monit * http://www.binarytides.com/install-monit-debian/ * https://mmonit.com/wiki/Monit/Apache * https://thomas-leister.de/apache-reverse-proxy-mit-ssl-support-einrichten/ ==== Grundinstallation ==== apt install -t jessie-backports monit -y nano /etc/monit/conf.d/basics * set daemon 60 set mailserver external-relay.de, external-relay2.de set mail-format { from: monit@meinekleinefarm.net } set alert xenadmin@meinekleinefarm.net # receive all alerts set httpd port 2812 and use address localhost # only accept conne$ allow localhost # allow localhost t$ allow admin:monit # require user 'adm$ \\ a2enmod proxy proxy_http cd /etc/apache2/sites-available/ nano monit.meinekleinefarm.net.conf * ServerName monit.meinekleinefarm.net Redirect permanent / https://monit.meinekleinefarm.net/ ServerAdmin webmaster@meinekleinefarm.net ServerName monit.meinekleinefarm.net ServerAlias monit.meinekleinefarm.net ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLProxyEngine On ProxyPass / http://localhost:2812/ ProxyPassReverse / http://localhost:2812/ Order deny,allow Allow from all # ProxyPassReverseCookiePath / /monit/ SSLEngine on SSLCertificateFile /etc/letsencrypt/live/meinekleinefarm.net/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/meinekleinefarm.net/privkey.pem SSLOptions +StdEnvVars SSLOptions +StdEnvVars BrowserMatch "MSIE [2-6]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown \\ a2ensite monit.meinekleinefarm.net.conf service apache2 reload Weiter zur -> [[monit_config|Monit Konfiguration]]