Monit: Difference between revisions

From James's Wiki
(Created page with " sudo nano /etc/monit/monitrc changed: set alert ractive74@gmail.com set httpd port 2812 and use address localhost # only accept connection from localhost check...")
 
No edit summary
Line 6: Line 6:
  set httpd port 2812 and
  set httpd port 2812 and
     use address localhost  # only accept connection from localhost
     use address localhost  # only accept connection from localhost
    allow localhost        # allow localhost to connect to the server and


   check system $HOST
   check system $HOST

Revision as of 22:53, 14 January 2018

sudo nano /etc/monit/monitrc

changed:

set alert ractive74@gmail.com
set httpd port 2812 and
    use address localhost  # only accept connection from localhost
    allow localhost        # allow localhost to connect to the server and


  check system $HOST
    if loadavg (1min) > 4 then alert
    if loadavg (5min) > 2 then alert
    if cpu usage > 95% for 10 cycles then alert
    if memory usage > 75% then alert
    if swap usage > 25% then alert
 check network public with interface eth0
   if failed link then alert