![]() ![]() Start program = "/etc/init.d/apache2 start" #Below is actions taken by monit when service got stuck. tough apache2 is running.Ĭheck process apache2 with pidfile /var/run/apache2.pid # If process name or pidfile path is wrong then monit will # It will check process apache2 with given pid file. So you can access it from web browser.Īllow localhost # allow localhost to connect to the server andĪllow 172.19.1.2 # allow 172.19.1.2 to connect to the server,Īllow admin:monit # user name and password for authentication.Īllow debianhelp:debianhelp # set multiple user to access through browser. Message: Monit $ACTION $SERVICE at $DATE on $HOST, # You can define your mail-notification format. # All alert mail will be sent to below mail address. # Set a default mail from-address for all alert messages emitted by monit. Here we are going to see the some example configuration file Monit configuration file is located at /etc/monit/monitrc.If you want to see the default configuration file click hereīy default all the lines in configuration file is commented out you can uncomment the lines which ever you want to monitor Please configure monit and then edit /etc/default/monitĪnd set the "startup" variable to 1 in order to allow Starting daemon monitor: monit won't be started/stopped 15512 files and directories currently installed.) Selecting previously deselected package monit. The following NEW packages will be installed:Ġ upgraded, 1 newly installed, 0 to remove and 3 not upgraded.Īfter unpacking 643kB of additional disk space will be used. If you want to install monit in Debian just follow this Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. Monit is a utility for managing and monitoring, processes, files, directories and devices on a UNIX system. Monitoring Your Server Services With Monit ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |