aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2011-11-28 05:10:07 +1000
committerDavid Walter Seikel2011-11-28 05:10:07 +1000
commit3595cf79d5ab9303ca2cbf4cecf2f3fa986eae07 (patch)
treecde487b649a3fb42f386fabe77b6194c125e7202
parentOops, forgot to create the backup directory. (diff)
downloadIGnoble-3595cf79d5ab9303ca2cbf4cecf2f3fa986eae07.zip
IGnoble-3595cf79d5ab9303ca2cbf4cecf2f3fa986eae07.tar.gz
IGnoble-3595cf79d5ab9303ca2cbf4cecf2f3fa986eae07.tar.bz2
IGnoble-3595cf79d5ab9303ca2cbf4cecf2f3fa986eae07.tar.xz
Less CPU usage for a restart. Not every one has enough CPUs that over 100% usage is not noticable.
-rw-r--r--opensim-monit.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/opensim-monit.conf b/opensim-monit.conf
index 7d26a82..60ab632 100644
--- a/opensim-monit.conf
+++ b/opensim-monit.conf
@@ -23,7 +23,7 @@ check process sim01 with pidfile /var/run/opensim/sim01.pid
23 start program = "/bin/bash -c 'cd /opt/opensim/config/sim01 && /opt/opensim/config/sim01/start-sim -q'" 23 start program = "/bin/bash -c 'cd /opt/opensim/config/sim01 && /opt/opensim/config/sim01/start-sim -q'"
24 as uid opensim and gid opensim 24 as uid opensim and gid opensim
25 stop program = "/bin/bash -c 'cd /opt/opensim/config/sim01 && /opt/opensim/config/sim01/stop-sim'" with timeout 600 seconds 25 stop program = "/bin/bash -c 'cd /opt/opensim/config/sim01 && /opt/opensim/config/sim01/stop-sim'" with timeout 600 seconds
26 if cpu usage > 200% for 4 cycles then restart 26 if cpu usage > 50% for 4 cycles then restart
27 if 5 restarts within 5 cycles then timeout 27 if 5 restarts within 5 cycles then timeout
28# if failed url http://127.0.0.1:9005/jsonSimStats/ 28# if failed url http://127.0.0.1:9005/jsonSimStats/
29# and content != '"SimFPS":0.0,' for 4 cycles 29# and content != '"SimFPS":0.0,' for 4 cycles