it:server:monitoring:monit

Monit

apt-get install monit 

Nastavení v souboru /etc/monit/monitrc:

set mailserver smtp.gmail.com port 587                                                                                                                                                       
                username "petr.nosek@gmail.com" password "supertajneheslo" using tlsv1,                                                                                                   
                localhost                   # fallback relay                                                                                                                                  
                with timeout 30 seconds                                                                                                                                                       

set alert petr.nosek@gmail.com

set httpd port 2812 and
    use address 192.168.0.1  # only accept connection from localhost (drop if you use M/Monit)
    allow localhost        # allow localhost to connect to the server and
    allow 192.168.0.1/24
    #allow 84.42.251.238/32

monit status http://192.168.0.1:2812/

zdroje:

  • it/server/monitoring/monit.txt
  • Poslední úprava: 2022/11/20 11:15
  • autor: Petr Nosek