차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
tech:watchdog [2013/05/13 08:29] – 새로 만듦 V_L | tech:watchdog [2016/07/12 00:56] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 1: | 줄 1: | ||
+ | {{tag> | ||
+ | ======워치독 (Watchdog; 감시견)====== | ||
+ | |||
+ | 시스템이 비정상 작동하여 먹통이 된 경우에 그 시스템 스스로 복구하지 못하면, 일정 시간이 지난 후 자동으로 특정 연산을 수행하도록 프로그램된 장치 또는 전자 카드 등을 말한다. | ||
+ | |||
+ | 기계장치나 운영체계에 있어 가장 흔한 문제로는 두 개 이상의 부품이나 프로그램이 충돌을 일으켜 교착 상태에 빠져 있는 경우, 또는 운영체계에서 메모리 관리에 문제가 발생했을 경우 등을 들 수 있다. 가끔은 그 시스템 스스로가 정상적인 상태로 복구되는 경우도 있겠지만, | ||
+ | |||
+ | WDT에는 미리 정해놓은 숫자로부터 일정한 속도로 카운트 다운할 수 있는 디지털 계수기가 달려있으며, | ||
+ | |||
+ | |||
+ | |||
+ | sudo apt-get install watchdog | ||
+ | sudo nano / | ||
+ | |||
+ | |||
+ | 시스템 로딩, 핑 메모리 등등 여러가지 조건을 이용하여 모니터링을 할 수 있다. | ||
+ | |||
+ | ping 192.168.0.2 | ||
+ | |||
+ | =====설정===== | ||
+ | |||
+ | <code shell> | ||
+ | interface | ||
+ | file = / | ||
+ | # | ||
+ | # Uncomment to enable test. Setting one of these values to ' | ||
+ | # These values will hopefully never reboot your machine during normal use | ||
+ | # (if your machine is really hung, the loadavg will go much higher than 25) | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # Note that this is the number of pages! | ||
+ | # To get the real size, check how large the pagesize is on your machine. | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | watchdog-device = / | ||
+ | # Defaults compiled into the binary | ||
+ | # | ||
+ | # | ||
+ | # Defaults compiled into the binary | ||
+ | admin = [email protected] | ||
+ | # | ||
+ | # | ||
+ | # This greatly decreases the chance that watchdog won't be scheduled before | ||
+ | # your machine is really loaded | ||
+ | realtime | ||
+ | priority | ||
+ | # Check if syslogd is still running by enabling the following line | ||
+ | # | ||
+ | |||
+ | * [[http:// | ||
+ | |||
+ | |||
+ | ^ 누구나 수정하실 수 있습니다. [[http:// | ||
+ | |||