fastnetmon-ng/docs/GRAPHITE_INTEGRATION.md
2015-05-10 21:51:28 +03:00

1.3 KiB

Graphite integration

Example screen: Graphite

We could store pps/bps/flow number for top 7 (could be configured) host in incoming and outgoung directions. In addition to this we export total pps/bps/flow number which flow over FastNetMon.

Configuration from FastNetMon side is very simple, please put following fields to /etc/fastnetmon.conf:

graphite = off
graphite_host = 127.0.0.1
graphite_port = 2003

Install Graphite Debian 8 Jessie

First of all, please install all packages: apt-get install python-whisper graphite-carbon

Whisper - it's database for data. Graphite - service for storing and retrieving data from database.

Install web frontend: apt-get install: graphite-web

Create database, specify login/password and email here: graphite-manage syncdb

Change owner: chown _graphite:_graphite /var/lib/graphite/graphite.db

Run it with apache:

apt-get install libapache2-mod-wsgi
cp /usr/share/graphite-web/apache2-graphite.conf  /etc/apache2/sites-available/graphite-web.conf
a2dissite 000-default.conf
a2ensite graphite-web

Enable load on startup:

systemctl enable apache2.service
systemctl restart apache2.service

Open site: http://10.0.3.114

Put test data to Graphite: echo "test.bash.stats 42 `date +%s`" | nc 127.0.0.1 2003