Modify Gonit configuration

The configuration files for the servers monitored by Gonit are located in the /opt/bitnami/config/monit/conf.d/ directory.

Test Gonit

Gonit continuously monitors server status. When a service goes down, Gonit automatically initiates the recovery of the affected services.

To test Gonit, try to kill one of its monitored processes and check, after a few minutes, the status of the service as shown below. The following examples are executed on a WordPress instance deployed in the cloud:

Execute the sudo gonit status command to identify all the running processes, and note the pid of the server process you want to stop. This example uses Apache.

Execute the sudo kill command to abruptly stop the selected process:

$ sudo kill 2000

Execute the sudo gonit status command to check that Apache is stopped:

After a few minutes, check Apache again. The status should have changed from Stopped to Running: