[ixpmanager] Getting IXP Manager Sflow integration up and running

Thorleif Wiik [BCIX] thorleif.wiik at bcix.de
Sun Sep 29 11:49:46 IST 2013


Hi all,

just working on the IXP Manager sflow integration.

Recently, I added a couple (not all) peering ports on some switches to send
sflow data
to the collector (which is currently on the same box as the IXP Manager
installation to see how it all work together).
Mac-Adresses are in the Database via the update-l2database.pl script.
For port-channels I inserted the Mac-Adresses via sql. More config details
see below

Then I started   $app/tools/runtime/sflow/sflow-to-rrd-handler
which is running for a couples of days, now.
I see new files to be generated in /var/www/ixpmatrix directories.

e.g.

/var/www/ixpmatrix/ipv4/bytes/p2p/src-00001/

..
-rw-r--r--  1 root root 185312 Sep 29 11:20
p2p.ipv4.bytes.src-00001.dst-00002.rrd
-rw-r--r--  1 root root 185312 Sep 29 11:20
p2p.ipv4.bytes.src-00001.dst-00003.rrd
-rw-r--r--  1 root root 185312 Sep 29 11:20
p2p.ipv4.bytes.src-00001.dst-00008.rrd
-rw-r--r--  1 root root 185312 Sep 29 11:20
p2p.ipv4.bytes.src-00001.dst-00013.rrd
..


Questions:


 a. P2P Graphs (currently my main issue):

When I look on the  IXP Manager Web Frontend now, I still see
_no_ graphs in the p2p section of each peer. Just looking on these,
which I switched sflow to "on" on the regarding switch ports.


Anything I forgot to install or configure for that ?



 b. PeeringMatrix

There might be a missing sflow BGP listener for that, can I have bit more
information on that?

Currently, when clicking on PeeringMatrix, I receive the following mail:


Message: Invalid VLAN
Line: 67
File: /var/www/ixp/application/Repositories/BGPSessionData.php

Trace:

#0 /var/www/ixp/application/controllers/PeeringMatrixController.php(66):
Repositories\BGPSessionData->getPeers('100', 4)
#1 /var/www/ixp/library/Zend/Controller/Action.php(516):
PeeringMatrixController->indexAction()
#2 /var/www/ixp/library/Zend/Controller/Dispatcher/Standard.php(308):
Zend_Controller_Action->dispatch('indexAction')
#3 /var/www/ixp/library/Zend/Controller/Front.php(954):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http))
#4 /var/www/ixp/library/Zend/Application/Bootstrap/Bootstrap.php(97):
Zend_Controller_Front->dispatch()
#5 /var/www/ixp/library/Zend/Application.php(366):
Zend_Application_Bootstrap_Bootstrap->run()
#6 /var/www/ixp/public/index.php(67): Zend_Application->run()
#7 {main}

Array
(
    [0] => Array
        (
            [file] =>
/var/www/ixp/library/OSS-Framework.git/OSS/Controller/Trait/Error.php
            [line] => 78
            [function] => compact_debug_backtrace
            [class] => OSS_Debug
        )

    [1] => Array
        (
            [file] => /var/www/ixp/library/Zend/Controller/Action.php
            [line] => 516
            [function] => errorAction
            [class] => ErrorController
        )

    [2] => Array
        (
            [file] =>
/var/www/ixp/library/Zend/Controller/Dispatcher/Standard.php
            [line] => 308
            [function] => dispatch
            [class] => Zend_Controller_Action
        )

    [3] => Array
        (
            [file] => /var/www/ixp/library/Zend/Controller/Front.php
            [line] => 954
            [function] => dispatch
            [class] => Zend_Controller_Dispatcher_Standard
        )

    [4] => Array
        (
            [file] =>
/var/www/ixp/library/Zend/Application/Bootstrap/Bootstrap.php
            [line] => 97
            [function] => dispatch
            [class] => Zend_Controller_Front
        )

    [5] => Array
        (
            [file] => /var/www/ixp/library/Zend/Application.php
            [line] => 366
            [function] => run
            [class] => Zend_Application_Bootstrap_Bootstrap
        )

    [6] => Array
        (
            [file] => /var/www/ixp/public/index.php
            [line] => 67
            [function] => run
            [class] => Zend_Application
        )

)

#####################################################
My /usr/local/etc/ixpmanager.conf looks like this

<sql>
dbase_type = mysql
dbase_host = localhost
dbase_database = ixp
dbase_username = secret
dbase_password = evenmoresecret
dbase_hostname = localhost
#dbase_portname = /tmp/mysql.sock
</sql>
<ixp>
rs_asn = 16374
rs_peval_bird = /var/www/ixp/tools/runtime/peval-output-to-csv.sh
rs_identity = 1
sflow_rrdcached = 0
sflowtool = /usr/local/bin/sflowtool
sflowtool_opts = -4 -p 6343 -l
sflow_rrddir = /var/www/ixpmatrix
# debug = 1
</ixp>

The sflow part of the application.ini like tis:

; sflow parameters (peer to peer graphs)
sflow.enabled = true
sflow.rootdir = /var/www/ixpmatrix
sflow.rrd.rrdtool = /usr/bin/rrdtool
sflow.rrd.rrdcached.sock = unix:/var/run/rrdcached.sock




Thanks, Thorleif

-- 
Thorleif Wiik, Vorstand Technik
thorleif.wiik at bcix.de

 Tel: +49 160 90378641

BCIX Management GmbH / BCIX e.V.
Stromstrasse 5
10555 Berlin - Germany

http://www.bcix.de/
http://twitter.com/bcix
https://www.facebook.com/BCIX.Internet.Exchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20130929/4ba8a877/attachment.html>


More information about the ixpmanager mailing list