Monit/ko

은 유닉스 시스템의 프로세스, 프로그램, 파일, 디렉터리, 파일 시스템을 관리하고 감시하는 도구입니다.

monit 설치
프로그램은 다음 USE 플래그를 활용합니다.

USE 플래그를 적절하게 결정했으면 명령으로 을 설치하십시오:

Monit 설정 파일
The Monit application uses as its configuration file.

To make adding and removing monitoring definitions easy, monit supports including files inside a specified directory (usually . To enable this, edit like so:

When a Monit related configuration file is altered, tell monit to reread its configuration settings:

부팅할 때 monit 자동 시작
It is recommended to start monit through the so that init itself launches the monit application, and will automatically relaunch it when monit would suddenly die. Starting monit through an init script would not provide this functionality.

After updating, monit can be immediately started through telinit q.

사용자 관리
Users added to the monit</tt> or users</tt> group will be able to manipulate monit</tt> through its web interface.

To add users to one of these groups, use gpasswd :

Inside the file, the   statement should refer to these groups, like so:

It is also possible to hard-code usernames and passwords in the file, but this is not recommended. Check the file for default passwords and remove those, or alter them to use a strong, unique password. The syntax used then is.

monit 웹 서비스
The default location of the web interface is at localhost:2812, with admin</tt> as admin username and monit</tt> as default password. Make sure to change this!

monit으로 프로그램 감시
The Monit application uses PID file checks to see if an application is still running or not. That implies that a PID file must be available for an application, otherwise monit</tt> cannot guard it. If a daemon does not create a PID file, use a wrapper to create one.

Through using the location, it is easy to add in additional monitoring rules.

For instance, to automatically restart MySQL when it would die:

Another example is to manage the memory usage of a process and create an alert when it grows beyond a certain threshold:

monit 전면 실행
To run monit</tt> in the foreground and provide feedback on everything it is detecting, use the -Ivv option:

외부 자료
For more information about Monit, the following resources can help out.


 * Monit official documentation
 * Monit Wiki
 * Configuring Monit for Avahi