Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update monitrc to email alert details.

  • Loading branch information...
commit 2a8cc0eb3ee728a2295ec37f8d6ed07204505c1d 1 parent a5f8958
@igal igal authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 dist/etc/monit/monitrc
View
6 dist/etc/monit/monitrc
@@ -14,9 +14,9 @@ set httpd port 2812 and use address localhost
allow admin:monit
check system localhost
- if loadavg(1m) > 4 then exec "/usr/bin/top -b -n1 | /usr/bin/mail -s '1m load average too high' root"
- if loadavg(5m) > 2 then exec "/usr/bin/top -b -n1 | /usr/bin/mail -s '5m load average too high' root"
- if memory usage > 90% then exec "/usr/bin/top -b -n1 | /usr/bin/mail -s 'Available memory too low' root"
+ if loadavg(1m) > 4 then exec "/bin/sh -c '/usr/bin/top -b -n1 | /usr/bin/mail -s monit_load_average_too_high_1m root'"
+ if loadavg(5m) > 2 then exec "/bin/sh -c '/usr/bin/top -b -n1 | /usr/bin/mail -s monit_load_average_too_high_5m root'"
+ if memory usage > 90% then exec "/bin/sh -c '/usr/bin/top -b -n1 | /usr/bin/mail -s monit_memory_too_low root'"
check device rootfs with path /
if space usage > 90% then alert
Please sign in to comment.
Something went wrong with that request. Please try again.