[ixpmanager] peer-to-peer statistics | sFlow
Vladislav Leontjev
vladislav.leontjev at gmail.com
Wed Mar 20 14:29:38 GMT 2019
Hello,
I'm back with some results (had to change IP and *.rrd files dir location):
latest log: http://p.ip.fi/FlLd
visual prnt-src:of vlan graph: https://prnt.sc/n0im4x
----------------------------------------------------------------------------
/srv/ixpmanager/config/grapher.php
-----------------------------------------------------------------------------
'sflow' => [
// show sflow / p2p links on the frontend
'enabled' => env( 'GRAPHER_BACKEND_SFLOW_ENABLED', false ),
// for larger IXPs, it's quite intensive to display all the
graphs
'show_graphs_on_index_page' => env(
'GRAPHER_BACKEND_SFLOW_SHOW_ON_INDEX', false ),
// where to find the MRTG rrd files
'root' => env( 'GRAPHER_BACKEND_SFLOW_ROOT', '
http://10.81.7.10/grapher-sflow/' ),
],
------------------------------------------------------------------------
/srv/ixpmanager/.env
------------------------------------------------------------------------
GRAPHER_BACKENDS="mrtg|sflow"
GRAPHER_BACKEND_SFLOW_ENABLED=true
GRAPHER_BACKEND_SFLOW_ROOT="http://10.81.7.10/grapher-sflow"
GRAPHER_ACCESS_CUSTOMER=0
GRAPHER_ACCESS_P2P=1
----------------------------------------------------------------
Files have been gathered as it should be;
#/var/www/ixp_p2p/ipv4/bytes/p2p/src-00001$ ls
p2p.ipv4.bytes.src-00001.dst-00003.rrd
I have got 2 peering ports UP and till now 2 rrd files accordingly;
will leave "./sflow-to-rrd-handler --macdbtype=configured" for sometime
to gather more of them;
------------------------------------------------------------------
local install of apache: added lines (used apache the same which was
installed with IXP manager)
------------------------------------------------------------------
/etc/apache2/apache2.conf
Alias /grapher-sflow /var/www/ixp_p2p
<Directory "/data/ixpmatrix">
Options None
AllowOverride None
</Directory>
----------------------------------------------------------------
shows the content of /var/www/ixp_p2p with all of its subdirs
http://10.81.7.10/grapher-sflow/
visual prtn-src:of apache https://prnt.sc/n0ijkk
-------------------------------------------------------------
/usr/local/etc/ixpmanager.conf
-------------------------------------------------------------
<sql>
dbase_type = mysql
dbase_database = ixpmanager
dbase_username = ixpmanager
dbase_password = *
dbase_hostname = 127.0.0.1
#dbase_portname = /tmp/mysql.sock
</sql>
<ixp>
sflow_rrdcached = 0
sflowtool = /usr/local/bin/sflowtool
sflowtool_opts = -4 -p 6343 -l
sflow_rrddir = /var/www/ixp_p2p
# debug = 1
apikey = *
apibaseurl = http://10.81.7.10/api/v4
macdbtype = configured
</ixp>
Do I understand wright:
1. If I see some page NOT with "dummy" and NOT with "no image found" it
means it's normally tries to interpreter sflow
converted *.rrd's? -> visual prtn-src:of vlan graph: https://prnt.sc/n0im4x
2. As far as there will be enough *.rrd files the graph
visual prtn-src:of vlan graph: https://prnt.sc/n0im4x
will be shown with in/out statistics at the bottom as it should be?
3. GRAPHER_BACKENDS="mrtg|sflow" - tries to use mrtg -> failed -> then
sflow?
4. from log means: production.ERROR: No backend available to process this
graph
It's because of mrtg is not installed?
5. Do I understand documentation in a wright way: Overall peering graph is
available only by mrtg? I need to implement it too them?
Thank you.
Vladislav.
ср, 20 мар. 2019 г. в 11:00, Nick Hilliard <nick at foobar.org>:
> Vladislav Leontjev wrote on 20/03/2019 06:42:
> > ./sflow-to-rrd-handler --macdbtype=configured
> >
> > runs whitout any error output; In my understanding I should then get
> > rrd files into my mentioned dir in cfg?
> >
>
> Yes, if there are MAC addresses defined in the database, you should see
> .rrd files in a bunch of subdirectories in /var/www.
>
> If you're not seeing any files in there, then you need to use "--debug"
> to see what's happening.
>
> > I'm using V4.9.2; In my situation (till next bug-fix) the way to get
> > *.rrd is ./sflow-to-rrd-handler --macdbtype=configured ? or did I
> > mess up something?
> Just stick with v4.9.2 for the moment.
>
> Nick
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20190320/b8fbcf70/attachment.html>
More information about the ixpmanager
mailing list