# Nping
**Repository Path**: mirrors/Nping
## Basic Information
- **Project Name**: Nping
- **Description**: Nping 是基于 Rust 开发使用 ICMP 协议的 Ping 工具,支持多地址并发 Ping,可视化图表展示,数据实时更新等特性
- **Primary Language**: Rust
- **License**: MIT
- **Default Branch**: main
- **Homepage**: https://www.oschina.net/p/nping
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2025-02-18
- **Last Updated**: 2026-02-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
🏎 NBping
NBping 是一个基于 Rust 开发的终端可视化 Ping 工具, 支持多地址并发 Ping, 可视化图表展示, 数据实时更新等特性
📢 **Nping 现在已经更名为 NBPing(nbping)**
> [!IMPORTANT]
> **更名通知**
>
> 本项目已从 **Nping** 正式更名为 **NBPing**。
>
> 请相应更新您的书签、依赖项和安装脚本。旧名称现已弃用,不再维护。
> ```bash
> nbping --help
> ```
**[新功能] 🛰️Exporter 模式**
现在 NBping 支持通过将 Ping 指标数据通过 Prometheus 格式导出,你可以使用 Grafana 等工具进行可视化展示。
```bash
nbping exporter www.baidu.com www.google.com -i 1 -p 9100
```
Then, you can scrape the metrics from `http://localhost:9100/metrics`
**图表视图**
**表格视图**
**点视图**
**Sparkline 视图**
** Exporter 模式 **
现在 NBping 支持通过将 Ping 指标数据通过 Prometheus 格式导出,你可以使用 Grafana 等工具进行可视化展示。
```bash
nbping exporter www.baidu.com www.google.com -i 1 -p 9100
```
然后你可以访问获取这些数据 `http://localhost:9100/metrics`
你可以通过 Grafana 来可视化这些数据
## Installation
#### MacOS Homebrew
```bash
brew install nbping
nbping --help
```
## Feature:
- TCP Ping 支持
- IP 段 Ping 支持
## 后续的计划:
- UI 界面优化, 增加更多的动态效果
## Usage
```bash
nbping www.baidu.com www.google.com www.apple.com www.sina.com -c 20 -i 2
nbping --help
🏎 NBping mean NB Ping, A Ping Tool in Rust with Real-Time Data and Visualizations
Usage: nbping [OPTIONS] ...
Arguments:
... target IP address or hostname to ping
Options:
-c, --count Number of pings to send [default: 65535]
-i, --interval Interval in seconds between pings [default: 0]
-6, --force_ipv6 Force using IPv6
-m, --multiple Specify the maximum number of target addresses, Only works on one target address [default: 0]
-v, --view-type View mode graph/table/point/sparkline [default: graph]
-o, --output