Skip to content

Commit

Permalink
enable start/stop/restart via monit
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Jun 15, 2019
1 parent b932ffe commit 7624179
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon_files/redmatic/etc/monit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ CHECK PROCESS redmatic-nodered MATCHING '^node-red\s*$|red\.js'
MODE PASSIVE
ONREBOOT NOSTART

start = "/etc/config/rc.d/redmatic start"
restart = "/etc/config/rc.d/redmatic restart"
stop = "/etc/config/rc.d/redmatic stop"

if memory usage > 224 MB then alert
if cpu > 90% for 2 cycles then alert
if disk write rate > 1 MB/s for 2 cycles then alert
Expand Down

0 comments on commit 7624179

Please sign in to comment.