![]() ![]() Start program = "/etc/init.d/httpd start" with timeout 60 seconds Find and uncomment the process httpd line, this is a sample config: check process httpd with pidfile /var/run/httpd/httpd.pid The paths might be different in your system, make sure to check them before. Monit can monitor multiple processes and execute actions based on some conditions like CPU and memory usage. This is a sample capture of our server web interface: It will ask your for the username and password you have defined in the config file. You can test the web interface in a browser using the provided IP address or hostname (e.g. Start the monit service: sudo service monit start Use address 192.192.192.192 # Your IP address (private/public) for connections.Īllow 0.0.0.0/0.0.0.0 # What networks are allowed? Any network.Īllow admin:password # Set username and passwordĪllow # allow users of group 'monit' to connectĪllow readonly # allow users of group 'users' to connect readonlyĪdd monit to the system startup: sudo chkconfig monit on ![]() sudo vi /etc/nfįind the set httpd port line, uncomment and update the configuration, here is a sample configuration: set httpd port 2812 and Install Monit sudo yum install monit Monit Web Interfaceįirst open the configuration file, you can also use the nano editor. The steps to install the monitoring tool Monit under CentOS 6 are similar to other service like Apache, you can also follow this tutorial or this one (Monit part) if you are under CentOS 7 and this might help for Ubuntu. Yes, Apache and MySQL are running in the same server with the current configuration. This would manifest when bots like googlebot started scanning intensively the server. This happened as the number of web services and websites in the server increased. Thus, MySQL was eventually killed as well as the ElasticSearch service. The problemĮssentially, the Apache server was consuming most of the RAM leaving little for other processes. It also explains how to avoid the Apache server from exhausting the memory. This blog post describes how to set up a monitoring tool ( Monit) under CentOS 6 to monitor processes and to restart them when necessary. Even after a memory increase to a total of 3+ GB, the problem persisted. The MySQL server at the SysCrunch server was always being killed, the reason was due to lack of resources (RAM). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |