从tin统计信息创建图形
项目描述
从tinc生成图形
待办事项
- 目前,在
tinc_graphs/static/map.html
中硬编码了Maps API密钥,如果您想使用此功能,您需要手动替换此密钥
安装
Nix
# tinc_pre is required:
nix-env -i -f tinc_graphs.nix
## e.g. in Retiolum:
## krebs.retiolum.tinc = pkgs.tinc_pre
本地
python setup.py install
# also install graphviz,imagemagic for building graphs
使用
查看2个构建脚本的源代码
#all-around-builder
# env: EXTERNAL_FOLDER, INTERNAL_FOLDER, GEODB, TINC_HOSTPATH
all-the-graphs
# build actual graphs
build-graph
# exported py scripts
tinc-stats2json # - parses tinc current state into json
tinc-build-graph # - transfers json to graph
copy-map # - copies map.html into $1
add-geodata # - adds geodata to json
tinc-availability-stats # adds availability data to json
Geodb信息
- http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
- nix-env -iA geolite-legacy
上传到pypi
python setup.py sdist
twine upload dist/*
项目详情
关闭
tinc_graphs-0.3.11.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | ea3a2462d2417feab7b54bc1295a6793448eb0d6f0a5451a1bde629eb5887b2a |
|
MD5 | 7e59a0a36b893c7b20400e9b74423b5c |
|
BLAKE2b-256 | 01e2bfed6d417b44d26844ddb9011921c94e73b5a89b327937f8e9101afa3603 |