Monit provides functions to start, stop, restart, monitor and unmonitor a group of services. With this statement it is possible to group similar service entries together and manage them as a unit. Service entries in the control file, can be grouped together by the group statement. This is to prevent using system resources on a service that is likely to continue to fail, and thus require further administration. This, of course, will send an email alert. With the timeout option, you tell the system that if the service restarts x amount of times within a time range, to timeout the service. If 5 restarts within 5 cycles then timeout If failed host 127.0.0.1 port 3306 then restart Stop program = "/usr/bin/systemctl stop mariadb" Start program = "/usr/bin/systemctl start mariadb"
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |