(转)SmartPing:一个服务器Ping值监测工具

官网:https://docs.smartping.org/

借鉴:https://www.moerats.com/archives/710/

说明:之前博主发过一个雨落大神写的Ping值监测工具uPing,不过有点单一,也缺少Web界面,今天再分享个SmartPing工具,可以同时Ping多个IP,支持正向Ping绘制,反向Ping绘制,互Ping拓扑绘制及报警功能。支持自定义延迟、丢包阈值报警。

截图

请输入图片描述
请输入图片描述

安装

Github地址:https://github.com/gy-games/smartping

运行命令:

mkdir smartping && cd smartping
#请去https://github.com/gy-games/smartping/releases下载最新版本的smartping
wget https://github.com/gy-games/smartping/releases/download/v0.5.0/smartping-v0.5.0.tar.gz
tar zxvf smartping-v0.5.0.tar.gz
./control start

然后可以使用ip:8899打开Web界面查看了,管理界面默认密码为smartping,若需要修改请修改conf/config.jsonconf/config-base.json

#如果你是CentOS系统,且打不开Web页面的,则需要开启防火墙端口
#Centos 6系统
iptables -I INPUT -p tcp --dport 8899 -j ACCEPT
service iptables save
service iptables restart

#CentOS 7系统
firewall-cmd --zone=public --add-port=8899/tcp --permanent 
firewall-cmd --reload

相关命令

./control build|run|start|stop|restart|status
build   : 源码编译,最终构建成至 bin

run     : 直接启动smartping

start   : 以nohup(deamon)形式启动smartping

stop    : 关闭smartping

restart : 执行 stop & start

status  : 查看smartping的运行状态

version : 查看当前smartping版本

pack    : 执行Build并进行二进制包制作

总结

一般我们可以在搭建网站的服务器上安装,然后添加全国各个地区的IP进行监测,如果你找不到很全的IP来源,可以去ipip上找,地址:https://tools.ipip.net/ping.php,先进去ping一下,然后可以看到各个地区的IP地址了,之后就可以很清楚看到网络情况了。

     </div>
posted @   北漂-boy  阅读(4145)  评论(0编辑  收藏  举报
编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 2025年我用 Compose 写了一个 Todo App
· 张高兴的大模型开发实战:(一)使用 Selenium 进行网页爬虫
点击右上角即可分享
微信分享提示