Monit is a lightweight open-source utility designed for monitoring and managing Unix systems. It provides automatic and proactive monitoring of various system resources, processes, and services, allowing administrators to detect and address issues promptly. Monit can monitor parameters such as CPU usage, memory, disk space, and system processes, and it can take predefined actions in response to specified conditions, such as restarting a service or sending alerts. Its simplicity and flexibility make it a valuable tool for ensuring the stability, performance, and reliability of servers, contributing to effective system administration and maintenance.
There are times when Monit Service Monitoring may need to be installed on a CWP server to allow Process Monitoring to be enabled. We will cover the Monit installation process in this guide.
Related Articles
SSH into VPS or Dedicated Server
Install/Enable
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- SSH into the server as root
-
Install Monit by running the command
/opt/cwprads/setup_monit.sh
NOTE: Once installed, follow the process in Enable Process Monitoring in CWP to ensure that monitoring is active for services. Services should be monitored automatically after the installation is completed.
EXAMPLE:# /opt/cwprads/setup_monit.sh Installing IMH Monit configuration Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: forksystems.mm.fcix.net * epel: mirror.cogentco.com * extras: mirror.cogentco.com * updates: mirror.us-midwest-1.nexcess.net Resolving Dependencies --> Running transaction check ---> Package monit.x86_64 0:5.30.0-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================================================================== Installing: monit x86_64 5.30.0-1.el7 epel 343 k Transaction Summary ================================================================================================================================================================================== Install 1 Package Total download size: 343 k Installed size: 890 k Downloading packages: monit-5.30.0-1.el7.x86_64.rpm | 343 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : monit-5.30.0-1.el7.x86_64 1/1 Verifying : monit-5.30.0-1.el7.x86_64 1/1 Installed: monit.x86_64 0:5.30.0-1.el7 Complete! Created symlink from /etc/systemd/system/multi-user.target.wants/monit.service to /usr/lib/systemd/system/monit.service.
Comments
0 comments
Article is closed for comments.