네트워크 모니터링 · 2 min read · Oct 15, 2025
모니터링 네트워크 지연 시간 Smokeping (Debian Etch) - 페이지 2
3.2 고급 예제
지금까지 우리는 서버에 핑을 보내고 있지만, DNS 서버가 도메인을 얼마나 빠르게 해결하는지 측정하거나 HTTP 지연 시간을 측정하는 등의 다른 테스트도 할 수 있다면 좋을 것입니다. 따라서 /etc/smokeping/config를 다시 열고 Probes 섹션을 수정합니다.
vi /etc/smokeping/config| [...] * Probes * + FPing binary = /usr/bin/fping + DNS binary = /usr/bin/dig lookup = domain-to-lookup.com pings = 5 step = 180 + Curl # probe-specific variables binary = /usr/bin/curl step = 60 # a default for this target-specific variable urlformat = http://%host%/ [...] |
보시다시피, 이제 DNS에 대한 테스트(lookup 줄에는 이름 서버가 조회할 도메인/호스트 이름이 포함되어야 합니다)와 HTTP / FTP(Curl 사용)에 대한 테스트를 추가했습니다.
이제 /etc/smokeping/config의 끝에 모니터링할 이름 서버 / HTTP 서버 / FTP 서버를 추가할 수 있습니다(주석을 해제하거나 주석을 달아 테스트를 활성화/비활성화할 수 있습니다):
vi /etc/smokeping/config| [...] + services menu = Service Latency title = Service Latency (DNS, HTTP) ++ DNS probe = DNS menu = DNS Latency title = DNS Latency +++ dns1 host = ns1.example.com +++ dns2 host = ns2.example.com ++ HTTP probe = Curl menu = HTTP Latency title = HTTP Latency +++ server1 menu = server1 title = HTTP Latency for server1 host = server1.example.com +++ server2 menu = server2 title = HTTP Latency for server2 host = server2.example.com #+++ server3 #menu = server3 #title = HTTP Latency for server3 (port 8080!) #host = server3.example #urlformat = http://%host%:8080/ #++ FTP #probe = Curl #menu = FTP Latency #title = FTP Latency #urlformat = ftp://%host%/ #+++ server1 #menu = server1 #title = FTP Latency for server1 #host = server1.example.com #+++ server2 #menu = server2 #title = FTP Latency for server2 #host = server2.example.com |
보시다시피, 우리는 Probes 섹션에서 구성한 DNS 프로브를 사용하여 이름 서버 ns1.example.com과 ns2.example.com을 모니터링하고 있습니다. 또한 Curl 프로브를 사용하여 server1.example.com과 server2.example.com의 HTTP 지연 시간을 측정하고 있습니다. 원하신다면 Curl 프로브를 사용하여 FTP 지연 시간도 측정할 수 있지만, FTP 섹션에 대한 새로운 urlformat을 지정해야 합니다(기본값인 urlformat = http://%host%/는 Probes 섹션에 구성되어 있으며, FTP의 경우 urlformat = ftp://%host%/이어야 합니다).
변경 후 Smokeping을 재시작합니다:
/etc/init.d/smokeping restart몇 분 후, Smokeping 웹 인터페이스(http://www.example.com/cgi-bin/smokeping.cgi)에서 새로운 테스트에 대한 데이터를 확인할 수 있어야 합니다:




Smokeping 구성 및 추가 구성 예제에 대한 자세한 내용은 여기에서 확인할 수 있습니다: http://oss.oetiker.ch/smokeping/doc/smokeping_examples.en.html
4 디버깅
Smokeping이 예상대로 작동하지 않는다고 생각되면, 디버그 모드에서 Smokeping을 실행하여 문제를 찾을 수 있습니다:
/etc/init.d/smokeping stop
smokeping –debug
5 링크
- Smokeping: http://oss.oetiker.ch/smokeping/index.en.html
- Debian: http://www.debian.org
새 게시물을 받은 편지함에서 받기
스팸은 없습니다. 언제든지 구독 해지 가능합니다.