监测你的Network状态并绘制图表
monitor your network status with graph
- 配置文件热更新 Hot config update
- 可配置的数据刷新间隔
- 可用性监测
- SSH
- Command
- SFTP (模板式语法)
- RouterOS API
- HTTP
- Telnet
- OSPF Broadcast
- Bird
- MRT
- RouterOS
- Quagga
- OSPF Broadcast
- RouterID
- AreaID
- Cost
- 自定义额外标识 Custom appended data (metadata)
- 子网 Subnet
- ASN
/backend/config/sample.yaml
为配置文件模板,将其复制为 config.yaml
并修改其中的配置即可。
NetworkMonitor 具有灵活的探针配置方案,一个探针由 Fetch 和 Parse 两个部分组成,Fetch 负责获取数据,Parse 负责解析数据,两者可以自由组合,也可以fork之后自定义。
/backend/config/sample.yaml
is the template of config file, copy it to config.yaml
and modify the config.
NetworkMonitor has a flexible probe configuration scheme, a probe consists of Fetch and Parse, Fetch is responsible for getting data, Parse is responsible for parsing data, the two can be freely combined, or fork and customize.
-
前端打包(如果需要) pack frontend (if needed)
cd 到 fronted目录下,执行
pnpm build
,构建好的文件会出现在backend/static
目录下cd to fronted directory, run
pnpm build
,the built files will appear inbackend/static
directory -
构建后端 build backend
cd 到 backend 目录下,执行
go build
cd to backend directory, run
go build
将config.yaml
和构建好的二进制文件放在同一目录下,执行程序即可
put config.yaml
and the built binary in the same dir and run it