Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
monit [2019/08/19 13:21]
yassine chaouche
monit [2019/08/21 12:50] (current)
yassine chaouche
Line 59: Line 59:
  
 This line adds a new check to monit, based on pid files. Next, you can specify what actions to do when a specific test fails (or passes). This line adds a new check to monit, based on pid files. Next, you can specify what actions to do when a specific test fails (or passes).
 +If monit tells you that it can't find any process named "infomaniak" then make sure the path to the pid file is correct and that it contains the real pid of infomaniak (for example with ''ps $(</var/run/infomaniak.pid)'')
  
 === Tests and example script explained === === Tests and example script explained ===
Line 76: Line 77:
                with timeout 60 seconds                with timeout 60 seconds
     10        then     10        then
-    11          alert¬†+    11          restart
-    12          restart+
 root@app-server[192.168.100.83] ~ # root@app-server[192.168.100.83] ~ #
  
Line 86: Line 86:
   - line      5 : this is a failure test   - line      5 : this is a failure test
   - lines   6-9 : these are the arguments of the test   - lines   6-9 : these are the arguments of the test
-  - lines 10-12 these are the actions to do when the test passes (remember we are testing for failure, so the test passes when there is a failure in getting an HTTP response from audio-mon.eprs.dz:8000 after a 60 seconds period).+  - lines    11 this is the action to do when the test passes (remember we are testing for failure, so the test passes when there is a failure in getting an HTTP response from audio-mon.eprs.dz:8000 after a 60 seconds period).
  
 ==== Configuring Monit ==== ==== Configuring Monit ====

QR Code
QR Code The concept of cycles (generated for current page)