Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
adv_graphgen: finish packaging
- Loading branch information
makefu
committed
Sep 10, 2015
1 parent
7ba002c
commit 219fab9
Showing
9 changed files
with
130 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
The folder contains a number of scripts which provide a convenient way to | ||
generate advanced graphs from the SIGUSR2 output of tinc. | ||
|
||
it currently contains the following files: | ||
|
||
sanitize.sh: | ||
wrapper arond parse.py which filters the syslog file for all tinc | ||
related lines and removes the status informations: | ||
this means that | ||
<code> | ||
May 19 20:40:44 servarch dnsmasq[5382]: reading /etc/resolv.conf | ||
May 19 20:41:38 servarch tinc.retiolum[4780]: Error looking up pa-sharepoint.informatik.ba-stuttgart.de port 655: Name or service not known | ||
</code> | ||
becomes | ||
<code> | ||
Error looking up pa-sharepoint.informatik.ba-stuttgart.de port 655: Name or service not known | ||
</code> | ||
and so on. | ||
It also provides a wrapper around graphviz which automagically | ||
generates graphs from the produced graph file | ||
|
||
parse.py: | ||
reads from stdin the sanitized syslog file and prints a valid dot file | ||
from the given output. | ||
The parser module may also produce any other output (e.g. for dns | ||
entries and so on) you will need to actually read and modify the source | ||
in order to be able to do this. ~May the source be with you~ | ||
|
||
# Generate Graphs from tinc | ||
|
||
## Install | ||
### Nix | ||
|
||
# tinc_pre is required: | ||
nix-env -i -f tinc_graphs.nix | ||
|
||
## e.g. in Retiolum: | ||
## krebs.retiolum.tinc = pkgs.tinc_pre | ||
### Local | ||
|
||
python setup.py install | ||
# also install graphviz,imagemagic for building graphs | ||
|
||
|
||
### Usage: | ||
|
||
see source of the 2 builder scripts: | ||
|
||
#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 infos | ||
|
||
- http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz | ||
- nix-env -iA geolite-legacy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters