soralley
V2EX  ›  问与答

网络监控

  •  
  •   soralley · Jan 23, 2015 · 3180 views
    This topic created in 4156 days ago, the information mentioned may be changed or developed.
    请问大家有什么功具能监控到服务器到全国各地的网络质量(延迟,稳定性,。。。)
    1 replies    2015-01-23 22:46:34 +08:00
    bellchu
        1
    bellchu  
       Jan 23, 2015   ❤️ 1
    #!/bin/sh
    awk '{print $1}' < ip10-255.txt | while read ip; do
    if ping -c1 $ip >/dev/null 2>&1; then
    echo $ip IS UP
    else
    echo $ip IS DOWN
    fi
    done


    你也可以配合sendmail发邮件提醒,或者自己加几条延迟的阀值,也可以输出到多个html映射到服务器上,还能干别的,多写几个if也不花钱反正。 自己写吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4167 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 04:13 · PVG 12:13 · LAX 21:13 · JFK 00:13
    ♥ Do have faith in what you're doing.