Monit ubuntu 14.046/29/2023 ![]() My group - according to /etc/php5/fpm/pool. I went with the suggested start and stop recommendations despite always restarting with "service php5-fpm restart". If 3 restarts within 5 cycles then timeout ![]() If failed unixsocket /var/run/php-fpm/php-fpm.sock then restart Stop program = "/etc/init.d/php5-fpm stop" This guide is intended to provide you with simple instructions on how to install Nagios from source (code) on Ubuntu and have it monitoring your local machine. Start program = "/etc/init.d/php5-fpm start" Munin produces nice graphs about nearly every aspect of your server, whereas Monit checks the availability of services like Apache, MySQL, Postfix and takes the appropriate action such as a restart if it finds a service is not behaving as expected. Start program = "/etc/init.d/nginx start"Ĭheck process php-fpm with pidfile /var/run/php-fpm/php-fpm.pid This tutorial will show you how to monitor an Ubuntu 14.04 server with Munin and Monit. Here is my Monit configuration for both Nginx and PHP-FPM: # Check NginxĬheck process nginx with pidfile /var/run/nginx.pid ![]() Include fastcgi_params # See /etc/nginx/fastcgi_params We will cover some basic configuration, so you will be able to monitor network services and host resources via the web interface. Here is my Nginx configuration for PHP-FPM that is running on a socket: location ~ \.php$ # Catch 404s that try_files missĮxpires off # Do not cache dynamic contentįastcgi_pass unix:/var/run/php5-fpm.sock įastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name Monitoring By Mitchell Anicas Introduction In this tutorial, we will go over the installation of Icinga, an open source monitoring system, on Ubuntu 14.04. Apparently I'm having it check the wrong location. ![]() It is correctly monitoring Nginx however Monit says it will "Not Monitor". I'm trying to configure the tool Monit to restart Nginx or PHP-FPM if ever there is a problem. ![]()
0 Comments
Leave a Reply. |