Monit

From James's Wiki
Revision as of 22:50, 14 January 2018 by Ractive (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 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