The vCanopy stack utilizes a custom configuration of the most reliable and effective open-source tools to ensure that your sites are delivered at blazing speeds and your server is both monitored 24/7 and proactively administered.
A crucial part of the stack is Monit, an open source tool that comes complete with all the features needed for system monitoring and error recovery. It is an incredibly lightweight Open Source utility for managing and monitoring Unix-like systems. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.
At vCanopy we have configured Monit’s secure and easily accessible interface so that you can monitor and manage your stack microservices with the click of a button.
This article will introduce the vCanopy implementation of the Monit Service manager.
Step 1. Spin up a server
We have documentation on provisioning up and managing servers here:
Once you have provisioned a server, you will see a Stats icon, if there are no sites on the server the icon will be greyed out and inactive. When you hover over the icon it will prompt you to create a site to activate the stats and service manager feature for the server.
Step 2. Deploy a vCanopy WordPress site
To enable Server stats you will need to deploy a vCanopy WordPress site, we have easy to follow instructions here:
Easily Deploy a vCanopy WordPress Site
Step 3. Open the vCanopy SSO Monit Service Manager
Once a site has been deployed on the server, return to your Active Server list and you will see the Stat icon for the server has turned green and is active.
You can now click on the icon to open the SSO Monit Service Manager.
Step 3. Using SSO Monit Service Manager
The vCanopy Monit configuration monitors each of the microservice processes in the stack, including:
- Fail2Ban
- Redis
- PHP
- MySQL
- Nginx/OpenLiteSpeed
In addition, it monitors the System Load, CPU, Memory and Swap Memory, and has several settings to monitor important files.
We actively monitor the size of your Site directory (/var/www), the size of your local backups (/opt/vCanopy/backups), your MySQL log size (/var/log/mysql), and constantly check that your Nginx configuration is sound.
Using the Monit Service Manager to Enable/Disable services
With Monit we can also restart, enable, or disable services we are not using. To do this we would click on the name of the process we wish to manage.
For example, you may just wish to restart Nginx without logging in to your server. You can easily do this by clicking the restart service at the bottom of the Nginx Monitoring page.
Or if you only use PHP7.2, then you can disable the other version of PHP and free some memory up.
Remember though, if you are going to stop stack microservices, you need to ensure you restart them again before you try to use them.